Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Logic to get multiple sale orders(VBELN) in a row format

praveenyadav-1
Explorer
0 Kudos

Logic to get multiple sale orders(VBELN) in a row format for a single customer (KUNNR) using Report ??

5 REPLIES 5

thilakan_t
Participant
0 Kudos

1. Fetch list of sales orders for all customers you want

2. Find the maximum count of the number of sales orders for a customer and

3. use CALL METHOD cl_alv_table_create=>create_dynamic_table to create dynamic internal table.

refer blogs of above method to find how to use it.

Don't use cl_alv_table_create=>create_dynamic_table, it's prone to short dumps, slow, obsolete.

And also, the question is not about "dynamic internal table".

NB: if anybody wants to use the method above, instead should use the alternative to CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE | SAP Blogs.

Sandra_Rossi
Active Contributor

I can understand your question in many ways. For instance, "report" doesn't mean if you want to display or print, and it may also mean for some people that it can be used to generate a file.

Nobody can propose a logic with so imprecise requirement.

Please clarify.

praveenyadav-1
Explorer
0 Kudos

Hi Sandra Rossi,
Just to display no need to print.

Sandra_Rossi
Active Contributor

Logic:

  • Screen to select a single customer
  • Get the sales orders
  • Display the list