Skip to Content
0
Former Member
Jun 24, 2007 at 09:44 AM

Problem when creating a sales order with reference by BAPI

44 Views

I am facing one problem when creating Sales Order.

<b>The scenario is like this while creating SO With reference to an Order type, a new SO will be automatically created with a diff order Type</b>.

I am using "BAPI_SALESORDER_CREATEFROMDAT2".

I am calling this BAPI in USEREXIT_REFRESH_DOCUMENT.

Am I using the right exit to call this Bapi ?

<b>Problems are like :

1. Ref Sales Order creating without Sales Unit .

2. "Object Status does not exist" error msg is coming for Header and Item level(when clicking the status tab and then object status pushbutton).</b> But if testing the bapi from SE37 in test sequence....no such problem persists.

As for example in case of sales unit,in the debugging mode i have seen that BAPI uses a perform to fill the values in the VBAP structure.But after that when it come back to the main program VBAP remains blank.This ocuurs when the BAPI is called from the exit whereas if tested from SE37, VBAP retains the value.

Can u suggest in this ? This is very very urgent............

Thx in Adv.........................