‎2008 Aug 08 2:55 AM
Hi All ,
How can we add order text at header level to a sales using bapi BAPI_SALESORDER_CREATEFROMDAT2 ,
There is this structure ORDER_TEXT STRUCTURE BAPISDTEXT , But looks like this is used for adding text item level .
Thanks in advance .
Vinay Kolla
‎2008 Aug 08 4:04 AM
If you pass TDOBJECT as VBBK is will maintain the Texts for Header.(if you specify valid Textid).
For header Textname should be the Ordernumber.
If the TDOBJECT is VBBP then it is For Item text(Corresponding Text id should be suppllied).
For Item Textname should be Ordernumber+ Itemnumber.
This BAPI parameter used for Both the purposes.
‎2008 Aug 08 4:04 AM
If you pass TDOBJECT as VBBK is will maintain the Texts for Header.(if you specify valid Textid).
For header Textname should be the Ordernumber.
If the TDOBJECT is VBBP then it is For Item text(Corresponding Text id should be suppllied).
For Item Textname should be Ordernumber+ Itemnumber.
This BAPI parameter used for Both the purposes.
‎2008 Aug 08 6:24 AM
Thanks vijay ,
But I would not know the order number to pass while using BAPI_SALESORDER_CREATEFROMDAT2 as this is internal . should i leave it blank .
Thanks
vinay Kolla
‎2008 Aug 08 6:31 AM
No.we cannot leave blank.otherwise your without sales activity how can we expect SO.
you must fill all sales regarding information in
Sales Document Type
Collective Number
Sales Organization
Distribution Channel
Division
Sales Group
Sales OfficeAmit.
‎2008 Aug 08 6:41 AM
Hi Amit ,
I will be filling that data into structure ORDER_HEADER_IN,
but the field ORDER_TEXT-DOC_NUMBER which i would not know as it is internal generated , will it work if i leave it blank .It doe not work when i leave it blank .
Thanks
Vinay kolla