‎2008 Mar 15 7:33 AM
Hi all,
can i read some sale order data through BDC?
i am using BDC to create sale order.i need to change the net price when the condtion type is ZUR1.so i want to read the cond type.if it is ZUR1 , then only i will change the price.
how can i achieve this thing?
Regards
pabitra
‎2008 Mar 15 11:02 AM
Hello Pabitra,
you have to check it before filling the data for the BDC. It's impossible to do it when you create the sales order.
Best regards
Stephan
‎2008 Mar 15 11:02 AM
Hello Pabitra,
you have to check it before filling the data for the BDC. It's impossible to do it when you create the sales order.
Best regards
Stephan
‎2008 Mar 15 11:09 AM
while recording you can capture the condition type before net price.
and after the perform stament where internal table say record has condition type value,you can validate
PERFORM bdc_field USING 'xyz'
record-j_condition_type.
if record-condition_type = 'ZUR1'.
net_price = '999999'
PERFORM bdc_field USING 'abc'
record-net_price.
endif.regards,
pankaj
Edited by: Pankaj Singh on Mar 15, 2008 4:42 PM
‎2008 Mar 15 11:53 AM
Hi,
U can use the bapi: BAPI_SALESORDER_CHANGE for changing the sales order.
See the documentation of the bapi for understanding.
Regards
Pratap.M