‎2008 Feb 18 3:37 PM
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
‎2008 Feb 18 4:01 PM
Hi,
Pass the WBS element to the item table.
item_tab-WBS_ELEM = P_POSID.
Cheers,
Vasanth
‎2008 Feb 18 4:07 PM
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.
‎2011 Dec 01 5:55 AM
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.......
‎2011 Dec 01 6:36 AM
Hi Badri and Aksahy,
Please check in ORDER_HEADER_IN field WBS_ELEM.
Regards,
Madhu.