cancel
Showing results for 
Search instead for 
Did you mean: 

Mov. type 532 is not taking place with BAPI_GOODSMVT_CREATE

former_member242092
Active Participant
0 Kudos

Hi Expert,

I am trying to post movement type 532 with BAPI_GOODSMVT_CREATE with following parameters.

PSTNG_DATE = 18.06.2015

GOODSMVT_CODE = 05

MATERIAL = XXXXXXXXXXXXXX

PLAN = XXXX

STGE = XXXX

BATCH = XXXXXXXX

MOV = 532

S = E

SALES_ORD = XXXXXX

S_ORD_ = XX

ENTRY_QNT = 10

OREDRID = XXXXXXXX

As a result it is showing Enter a sales order for special stock E. I have already gone through below thread but it could not help me out in anyway.

Kindly help..

Regards,

Rampreet Jaiswal

Accepted Solutions (1)

Accepted Solutions (1)

JL23
Active Contributor
0 Kudos

The linked thread has not much to do with your problem, or do you see there the same error that you have?

If you entered a sales order number and SAP says you shall enter a sales order for special stock E

Then 'SAP could probably not find a valid sales order number with the given number and item number e.g. missing leading zeros or it is not a sales order for a MTO process that allows movements made against it.

Did you try to do manually what you want to do by BAPI?

former_member242092
Active Participant
0 Kudos

Hi Jurgen,

I am checking and trying to post it manually through SE37. Document is posting for MTS material but not for MTO.

I am passing all leading zero in my input parameter but same error is showing.

Enter a sales order for special stock E

Regards,

Rampreet Jaiswal

JL23
Active Contributor
0 Kudos

Try it in MIGO and you will at least be certain whether the issue is with your BAPI or with the fact that the sales order is not made for MTO.

Answers (1)

Answers (1)

rupesh_brahmankar3
Active Contributor
0 Kudos

Hello Rampreet.

As you passing the initial numbers 0 for your sales order .

Check the sales order number in VBBE or VBAP table example 0030140001

BAPI_ITEM-SALES_ORD  =  '0030140001'.

BAPI_ITEM-S_ORD_ITEM =  '000010'.

Best Regards,

R.Brahmankar

former_member242092
Active Participant
0 Kudos

Hi Rupesh/Jurgen,

Thanks for your input.

Same has been resolved. I was passing SO/Item into SALES_ORD/S_ORD_ITEM instead of VAL_SALES_ORD/VAL_S_ORD_ITEM.

Now it is working.

Thanks... I am closing the thread.

Regards,

Rampreet Jaiswal