Skip to Content
0
Former Member
Dec 04, 2006 at 11:38 PM

Early help : BAPI_SALESORDER_SIMULATE- FREE GOODS - ORDER_CONDITION_EX

112 Views

Hi Gurus,

I am using a BAPI : Z_BAPI_SALESORDER_SIMULATE , this Bapi is similar to the BAPI_SALESORDER_SIMULATE . It has customizations that are similar to the customizations done for order in the SAP system at my organization.

In the Output in the MESSAGETABLE I get the message

T ID NUM MESSAGE

W V4 160 Minimum quantity 1 EA of free goods has not been reached

Please help me with : What is the reason for this message? I am able to make a sale order with the same data

I am using exactly the same data in VA01 to create a sale order as I am using to test this BAPI: Z_BAPI_SALESORDER_SIMULATE

Please help me at the earliest to solve this problem

BAPI INPUT :

ORDER_HEADER_IN OR

CONVERT_PARVW_AUART

Tables Value

ORDER_ITEMS_IN 1 Entry

ORDER_PARTNERS 2 Entries

ORDER_SCHEDULE_IN 1 Entry

ORDER_CONDITIONS_IN 0 Entries

ORDER_ITEMS_OUT 0 Entries

ORDER_CFGS_REF 0 Entries

ORDER_CFGS_INST 0 Entries

ORDER_CFGS_PART_OF 0 Entries

ORDER_CFGS_VALUE 0 Entries

ORDER_CFGS_BLOB 0 Entries

ORDER_CCARD 1 Entry

ORDER_CCARD_EX 0 Entries

ORDER_SCHEDULE_EX 0 Entries

ORDER_CONDITION_EX 0 Entries

ORDER_INCOMPLETE 0 Entries

MESSAGETABLE 0 Entries

EXTENSIONIN 0 Entries

PARTNERADDRESSES 1 Entry

WMDVSX 0 Entries

WMDVEX 0 Entries

Z_AVAIL_OUT 0 Entries

ORDER_SCHEDULE_IN2 0 Entries

ORDER_SCHEDULE_EX2 0 Entries

ORDER_ITEMS_IN2 0 Entries

ORDER_PARTNERS2 0 Entries

BAPI Output is :

Import parameters Value

ORDER_HEADER_IN OR I have this filled in

CONVERT_PARVW_AUART

DELAY 0

Export parameters Value

SALESDOCUMENT

ORDER_HEADER_EX OR

SOLD_TO_PARTY

SHIP_TO_PARTY

BILLING_PARTY

RETURN

ORDER_HEADER OR SO500750 00/00/0000 00/00/0000

Tables Value

ORDER_ITEMS_IN 1 Entry

Result: 1 Entry

ORDER_PARTNERS 2 Entries

Result: 2 Entries

ORDER_SCHEDULE_IN 1 Entry

Result: 1 Entry

ORDER_CONDITIONS_IN 0 Entries

Result: 0 Entries

ORDER_ITEMS_OUT 0 Entries

Result: 2 Entries

ORDER_CFGS_REF 0 Entries

Result: 0 Entries

ORDER_CFGS_INST 0 Entries

Result: 0 Entries

ORDER_CFGS_PART_OF 0 Entries

Result: 0 Entries

ORDER_CFGS_VALUE 0 Entries

Result: 0 Entries

ORDER_CFGS_BLOB 0 Entries

Result: 0 Entries

ORDER_CCARD 1 Entry

Result: 1 Entry

ORDER_CCARD_EX 0 Entries

Result: 0 Entries

ORDER_SCHEDULE_EX 0 Entries

Result: 2 Entries

ORDER_CONDITION_EX 0 Entries

Result: 0 Entries

ORDER_INCOMPLETE 0 Entries

Result: 0 Entries

MESSAGETABLE 0 Entries

Result: 1 Entry

EXTENSIONIN 0 Entries

Result: 0 Entries

PARTNERADDRESSES 1 Entry

Result: 3 Entries

WMDVSX 0 Entries

Result: 0 Entries

WMDVEX 0 Entries

Result: 0 Entries

Z_AVAIL_OUT 0 Entries

Result: 0 Entries

ORDER_SCHEDULE_IN2 0 Entries

Result: 0 Entries

ORDER_SCHEDULE_EX2 0 Entries

Result: 0 Entries

ORDER_ITEMS_IN2 0 Entries

Result: 1 Entry

ORDER_PARTNERS2 0 Entries

Result: 2 Entries

Additional Note :

Checking CONDITIONS EX , for free goods

I am using Function module :Z_BAPI_SALESORDER_SIMULATE to simulate pricing conditions.

I am trying to figure out the reason for the function module: Z_BAPI_SALESORDER_SIMULATE not giving values in CONDITIONS EX when I use it to simulate free goods .

It is only not giving ORDER_CONDITION_EX for free goods materials.

BAPI simulates Bill of material, regular orders properly.

Example : one material has on free good .

Should give output in ORDER_CONDITION_EX

It is giving an output in ORDER_ITEMS_OUT - two materials line item 10 , 15 .

However in ORDER_CONDITION_EX it does not return anything , number of entries is zero .

I know my data for input are correct as I can make a sale order with the same data.