Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_SALESORDER_SIMULATE

Former Member
0 Likes
1,740

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

1 ACCEPTED SOLUTION
Read only

former_member156446
Active Contributor
0 Likes
1,273

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.

5 REPLIES 5
Read only

former_member156446
Active Contributor
0 Likes
1,274

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.

Read only

0 Likes
1,273

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.

Read only

0 Likes
1,273

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.

Read only

Former Member
0 Likes
1,273

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".

Read only

0 Likes
1,273

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.