cancel
Showing results for 
Search instead for 
Did you mean: 

Change Batch Status in Receving Plant

Former Member
0 Kudos

Hello Experts

We are setting up process to Change the Batch Status in Recieving plant through Posting Usage Decision for Inspection Lot.

System is giving error as

" Error 3 in posting for Status Change "

Diagnosis : When posting the status change, an error occured,  Return Code 3.

For description of Return Code Please see the documentation of the function module " MB_Create_Goods_movement"

Function Module "BAPI_BATCH_SAVE_REPLICA'  is used in background with below input parameters, to change the status the plant.

          material                   = wa_shadow-matnr

          batch                      = wa_shadow-charg

          plant                      = wa_shadow-werks

          batchattributes            = wa_bapibatchatt  "req. but blank  ... This is blank

          batchattributesx           = wa_bapibatchattx "req. but blank ... This is also blank

          batchstatus                = lv_zustd_source   ... being passed as Blank  to change the batch status to Unrestricted.

          batchstatusx               = 'X'

Can you please tell me what could be cause of the error ?

Same function module works fine, for Intra-company process,   but for Inter-Company it is not working.

Thanks in advance.

Regards

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

What you mean by Same function module works fine, for Intra-company process,   but for Inter-Company it is not working?

Former Member
0 Kudos

Hello Mallinath,

Batch is being released through function module which is calling BAPI_BATCH_SAVE_REPLICA in the background.

With further testing, found that  Intercompany or Intra-compant process is not the influencing factor.

Error is noticed only when Inspection Lot has reference of Handling unit .

System message is "Error 3 in posting for Status Change"

I will again describe the scenarion,

Plant A manufacture the goods and supply to Plant B.  Both Plants are batch managed.

Batch level is Plant.

When Plant A, post the usage decision, then system calls above function module to change the batch status in plant B.

Using Same material and same plant combination, if Inspection Lot is not reference to Handling Unit then batch status change is successfull.

Please suggest.

Regards

Former Member
0 Kudos


Hello Experts

Please let me know if you have any inputs to resolve the above issue.

Regards

JL23
Active Contributor
0 Kudos

What is your batch level? is it plant level, or material or client level?

In case it is not plant level, then submitting the plant  parameter might be incorrect.

For detailed message about the error you may need to debug, set a breakpoint in the FM MB_CREATE_GOODS_MOVEMENT and check then the message parameters at the end of the function module

Former Member
0 Kudos

Hello

Batch level is Plant.

One more input,

We are facing this issue, in case Storage location is HU managed.

Regards