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_CREATEFROMDAT2

Former Member
0 Likes
1,308

Hi All,

I am able to create the sales order using the bapi

BAPI_SALESORDER_CREATEFROMDAT2 and bapi_transaction commit.

The item level field WBS Element value is not populating by creating the sales order using above bapi.

If i create the sales order in VA01 manually, the WBS Element value populating automatically.

Please let me know how to use any bapi and need to have the value "WBS element" automatically.

Can you pl suggest any clues to resolve this issue.

Regards

Badari

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Feb 18, 2008 11:02 AM

4 REPLIES 4
Read only

Former Member
0 Likes
841

Hi,

Pass the WBS element to the item table.

item_tab-WBS_ELEM = P_POSID.

Cheers,

Vasanth

Read only

Former Member
0 Likes
841

Hi,

You need to pass the value externally in the variable WBS_ELEM in the parameter ORDER_HEADER_IN.

There can be 2 reasons why it is being populated in the foreground creation. one is that there may be any user exit that is populating the value. the other possibility is that the field is defaulted by the customizing.

If it is the second option, then it should appear eventhough it is created through BAPI. So most probably a user exit is populating the value, if you could find the exit then assoicate the same logic and find the value for WBS_ELEM and pass it to the BAPI.

Hope this helps..

Thanks in advance,

Harikrishna.

Read only

Former Member
0 Likes
841

Hi badari,

Did you find a solution to this? can you share how you resolved this issue?

you see i am currently facing the same problem.......

Read only

madhu_vadlamani
Active Contributor
0 Likes
841

Hi Badri and Aksahy,

Please check in ORDER_HEADER_IN field WBS_ELEM.

Regards,

Madhu.