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 for Sales Orders items

Former Member
0 Likes
1,631

I'm looking for BAPI, which returns all items for sales order.

Returned items must have included all information, which we can see in transaction va02 on card Item Overview

I'll reward with points for good BAPI.

BR Tomek

11 REPLIES 11
Read only

Former Member
0 Likes
1,252

BAPISDORDER_GETDETAILEDLIST

Read only

0 Likes
1,252

No this is not what i'm looking for

Read only

Former Member
0 Likes
1,252

Hi,

Please check whether the links given below are of any help,

Regards,

Hema.

    • Reward points if it is useful.

Read only

former_member404244
Active Contributor
0 Likes
1,252

hi ,

chek the below bapi's...

BAPI_SALESORDER_CHANGE

BAPI_SALESORDER_CREATEFROMDAT1

BAPI_SALESORDER_CREATEFROMDAT2

Regards,

nagaraj

Read only

Former Member
0 Likes
1,252

hi tom,

try this bapi BAPI_SALESORDER_GETLIST.

regards,

alson.

Read only

Former Member
0 Likes
1,252

hi tom,

u can even use this bapi BAPI_SALESORDER_SIMULATE.

regards,

alson

Read only

0 Likes
1,252

I'll post it again, I think U all read my post to quickly.

I'm looking for BAPI, which <b>returns all items for sales order</b>.

Returned items <b>must have included all information</b>, which we can see in <b>transaction va02 on card Item Overview</b>

BR, Tomek

Read only

0 Likes
1,252

I'm curious what specific piece of information you can't get retrieve from the above referenced BAPISDORDER_GETDETAILEDLIST. Yes, it will pull more than you need, but I don't think a bapi exists that only brings back the item overview. At least I don't see one in my 4.6c system.

Read only

0 Likes
1,252

I'm also courious with BAPI which is in your proposal. This BAPI has interface:

I_BAPI_VIEW

I_MEMORY_READ

where I_BAPI_VIEW is a structure where are only elements that have XFELD

I_MEMORY_READ is ORDER_READ-MEM_ACCESS.

So my question is where I should write SALES ORDER number to receive list I want?

As you see all other BAPI's are useless beacause they did different things I need!

Read only

0 Likes
1,251

In the i_bapi_view structure, populate which tables you would like to have returned by using a value of X.

Use the sales documents table to pass which documents you want information on.

So if you wanted item details:


i_bapi_view-item       = 'X'.
sales_documents-vbeln = '0000012345'.
append sales_documents.

      call function 'BAPISDORDER_GETDETAILEDLIST'
           exporting
                i_bapi_view         = i_bapi_view
           tables
                sales_documents     = sales_documents
                order_items_out     = order_items_out.


Read only

Former Member
0 Likes
1,252

This question has expired