‎2009 Jun 09 9:37 PM
Hi
I am using above BAPI for getting condition item details.
I created FM and used BAPI_SALESORDER_SIMULATE to get condition values, and when I pass the values like SO/DC/Divison/Customer/Shipping condition and material details in the Functiona Module manually, I am getting the output of condition records from the BAPI SALESORDER_SIMULATE.
But when I use my function module in the print program for displaying quotation output using transaction code VA22, I am not getting the condition values for the above BAPI. The value which I am passing are same but I am getting output when I use functional module directly with manual input and not getting the condtion records when I use it in the print program.
If any one faced similar issues, please send the solution ASAP.
With best regards,
Muralikrishna
‎2009 Jun 09 10:10 PM
check if you are passing the required number of characters.... sales order 4566 need to be padded with zeros and then be used to send to BAPI as 000000004566 ...so check if you are sending the correct data and using correct converstions.
‎2009 Jun 09 10:10 PM
check if you are passing the required number of characters.... sales order 4566 need to be padded with zeros and then be used to send to BAPI as 000000004566 ...so check if you are sending the correct data and using correct converstions.
‎2009 Jun 10 2:37 PM
Hi Joy
Thanks.
I am passing only the following values and executing VA22 transaction code to display the quotation output :
kunnr
partner role as 'AG'.
Material No.
Line Item No.
Target Qty.
SO
DC
Division
Shipping Condtion
Pricing Date as system data.
‎2009 Jun 10 5:56 PM
Hi All,
when I use the below code Submit and return the BAPI is wroking fine.. It is not workign with perform and directly using in the print progrm.. Any suggestion please?
export vbdka tvbdpa to DATABASE indx(z3) ID 'ZU3VADOR01'.
submit ztestmk and return.
IMPORT lt_order_conditions_ex FROM DATABASE indx(z3) ID 'ZU3VADOR01'.
BREAK GALIMURA.
If I use above code it is working..
It is user below code it is not working :
*perform f_zu3_fright_cal(ztestmk) tables tvbdpa
using vbdka
changing lt_order_conditions_ex.
‎2009 Jun 10 8:31 PM
To my knowledge, this BAPI function module is not used for retrieving data from already existing orders. If that's what you're trying to do, you should try function module BAPISDORDER_GETDETAILEDLIST. In the parameter I_BAPI_VIEW, you would want to set fields SDCOND and SDCOND_ADD to "X".
‎2009 Jun 10 8:57 PM
HI
Thanks.
No, I am using this BAPI to get condition record details by passing customer, SO/DC/Dvision and shipping condtion ..
to the header.
Customer No. and Partner function to the partner details.
and Material No., line No. and quantity to the line item.
I want to displya frieght values based on the SO simulation using above values.
I am able to get using Submit program and not getting values when I use directly into the print program.