Application Development and Automation 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: 
Read only

BAPI_SALESORDER_GETLIST

Former Member
0 Likes
551

I am not able to get the output, can u pls chek the code and can u give me any idea where's the problem in code ?

points for sure.

regards

vijaya

TABLES : bapi1007,

bapiorders.

DATA : salesorder_itab LIKE bapiorders OCCURS 0 WITH HEADER LINE.

DATA : cust LIKE bapi1007-customer VALUE '1390',

sorg LIKE bapiorders-sales_org VALUE '1000'.

CALL FUNCTION 'BAPI_SALESORDER_GETLIST'

EXPORTING

customer_number = cust

sales_organization = sorg

  • MATERIAL =

  • DOCUMENT_DATE =

  • DOCUMENT_DATE_TO =

  • PURCHASE_ORDER =

  • TRANSACTION_GROUP = 0

  • PURCHASE_ORDER_NUMBER =

  • IMPORTING

  • return = it_return

TABLES

sales_orders = salesorder_itab.

loop at salesorder_itab.

write : salesorder_itab-sd_doc.

endloop.

4 REPLIES 4
Read only

Former Member
0 Likes
496

DATA : cust LIKE bapi1007-customer <b>VALUE '0000001390'</b>,

sorg LIKE bapiorders-sales_org VALUE '1000'.

Make the highlighted change.

Regards,

ravi

Read only

0 Likes
496

thanks ravi, points given

Read only

Former Member
0 Likes
496

hi,

First check if that record exist

check if that record corresponds to that customer number

if still u donot get then add leading zeros.

santhosh

Read only

Former Member
0 Likes
496

Use CONVERSION_EXIT_ALPHA_INPUT

wherein if u pass 1390 it will return 0000001390