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: 

Function module or BAPI to get the sales order details.

Former Member
0 Kudos

Hi,

Can any one revert back with the FM or BAPI to get the sales order details.

I tried using BS01_SALESORDER_GETDETAIL, in my driver program of smartform but when i execute the form using VA03 -> Sales Document -> Issue output to -> Print preview, I am getting the required output.

if i see the print preview in the overview of the sales order (enter sales order and press enter), the above specified FM is not populating any data.

Thanks,

Prathap

9 REPLIES 9

Former Member
0 Kudos

Hi,

Try this FM:

SD_SALES_DOCUMENT_READ

Regards,

Shailaja

0 Kudos

Shylaja,

SD_SALES_DOCUMENT_READ, will not return any condition data.

I am looking for a FM or BAPI which returns Specifically ITEM CONDITIONS.

Thanks,

Prathap

0 Kudos

Hello Pratap

Try this : BAPI_SALESORDER_GETLIST

Thanks

0 Kudos

I need the complete information of condition data:

BAPISDCOND structure gives all the required fields.

Pl let me know if any FM returns the table of this type.

Regards,

Prathap

0 Kudos

check this.

BAPISDORDER_GETDETAILEDLIST

0 Kudos

The below specified FM will inturn calls the FM which u specified.

BS01_SALESDOCUMENT_GETDETAIL

But it didn,t work.

Thanks,

Prathap

0 Kudos

hi,

Please check FM 'SD_SALES_DOCUMENT_PREFETCH'.

Pass 'X' to all fields in structure I_SALES_VIEW.

Pass SD number to I_VBAK_KEYTAB table.

Hope this may help.

Regards,

Sravanthi

0 Kudos

Hi Prathap,

The above specified FM BAPISDORDER_GETDETAILEDLIST should work. As you need the item conditions,

Fill the I_BAPI_VIEW with header = 'X', item = 'X' and sdcond = 'X'.

Fill the SALES_DOCUMENTS-vbeln = sales order number.

Regards,

Shylaja

0 Kudos

Solved