‎2007 May 31 10:18 AM
Hi ,
I had used BAPI_SALESORDER_CREATEFROMDAT2 to create a seles order.But i need the to pass the header contion recor. for a particular condition pricing i need to pass the condition rate(header discount) in the header level.In
BAPI_SALESORDER_CREATEFROMDAT2 , the structure BAPISDHD1 does'nt contain any field for condtion type and condtion value.could any one help me out in this regard.
Thanks & Regards,
Satish
‎2007 May 31 10:26 AM
bapicond contains conditiontype , is that answering you're question ?
hmmm I will check first if someone else already gave the answer in the time I looked into the problem . pfff it goes quick here
Message was edited by:
A. de Smidt
‎2007 May 31 10:23 AM
Hi
you should check the tables parameter
BAPICOND,it has condition type and condition value.
Thanks
‎2007 May 31 10:28 AM
Hi sreeram
you can also use this fm BAPI_SALESORDER_CREATEFROMDAT1
Here BAPISDHEAD(import parameter).
it has condition value and type.
Check this
Thanks
‎2007 May 31 10:25 AM
Hi
You should check the BAPICONDt ables parameter
whether it has condition type and condition value.
Regards,
Sree
‎2007 May 31 10:26 AM
bapicond contains conditiontype , is that answering you're question ?
hmmm I will check first if someone else already gave the answer in the time I looked into the problem . pfff it goes quick here
Message was edited by:
A. de Smidt
‎2007 May 31 10:41 AM
Hi ,
bapicond contains the condtion type & condition rate at item level,but not header level.
Thanks& Regard
Satish
‎2007 May 31 10:44 AM
Hi
check my before post.
Why dont you another Fm
BAPI_SALESORDER_CREATEFROMDAT1.
Thanks
‎2007 May 31 10:48 AM
Hi,
iam using 4.6c version it is absolute to use BAPI_SALESORDER_CREATEFROMDAT1.
Thanks & Regards,
Satish
‎2007 May 31 10:58 AM
HI,
call function 'BAPI_SALESORDER_CREATEFROMDAT2'
exporting
SALESDOCUMENTIN =
<b> order_header_in = ls_order_header_in
order_header_inx = ls_order_header_inx</b>
SENDER =
BINARY_RELATIONSHIPTYPE =
int_number_assignment = ld_int_number_assignment
BEHAVE_WHEN_ERROR =
LOGIC_SWITCH =
TESTRUN =
CONVERT = ' '
importing
salesdocument = ld_salesdocument
tables
return = it_salesorder_return
order_items_in = it_order_items_in
order_items_inx = it_order_items_inx
order_partners = it_order_partners
order_schedules_in = it_order_schedules_in
order_schedules_inx = it_order_schedules_inx
<b> order_conditions_in = it_order_conditions_in
order_conditions_inx = it_order_conditions_inx</b>
use order_header_in and order_header_inx for header details
use order_conditions_in and order_conditions_inx for cond_type and cond_value
Regards,
Sonesss