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

Error creating Idoc using MBGMCR

DarcyMorse
Participant
0 Likes
2,781

I am trying to generate Idocs  using MBGMCR to perform GI on Process orders coming from our external MES system. 

E1BP2017_GM_HEAD_01 Segment: I am filling in the PSTNG_DATE and DOC_DATE

E1BP2017_GM_CODE:  GM_Code = 03

E1BP2017_GM_ITEM_CREATE: 

     MATERIAL:  Filling in the internal version of the article

     PLANT:  8070

     MOVE_TYPE:  261

     ENTRY_QNT: 2

     ENTRY_UOM: LB

     ORDERID: Filling in the internal version of the process order number

     RESERV_NO: Filling in the internal version of the reservation number related to the Process order

     RES_ITEM: filling in internal version of the reservation item related to the Process order / Article number

Configuration should be set up correctly, because Migo works with the same data.

I am getting the following error:  AG021:  No control data maintained for checking group KT and checking rule 03.

Looking at the configuration (OPJJ and OPJK), the checking group is correct (KT), but the checking rule should be PP.  Is there another field in the Idoc that needs to be filled in? 

1 ACCEPTED SOLUTION
Read only

JL23
Active Contributor
0 Likes
2,180

Checking rule 03 is used in MB1A transactions.

see IMG  > MM -> IM -> GI and trfr posting -> Avail. check

And as the message already explains, your ATP customizing is missing this combination of KT and 03

5 REPLIES 5
Read only

JL23
Active Contributor
0 Likes
2,181

Checking rule 03 is used in MB1A transactions.

see IMG  > MM -> IM -> GI and trfr posting -> Avail. check

And as the message already explains, your ATP customizing is missing this combination of KT and 03

Read only

0 Likes
2,180

What I am trying to do is replace a program that is currently doing this with a direct BAPI call BAPI_GOODSMVT_CREATE.  That program is setting the GM code to 03.  That's where I got the code to use for the Idoc.  Should I be using a different GM code? 

Read only

0 Likes
2,180

1.  I am able to do a goods issue thru MIGO

2.  I am able to do a goods issue thru BAP_GOODSMVT_CREATE

3.  This fails sending it to the Idoc with the error above.

4.  MB1A fails with the same error as the idoc.

I am not sure what I am missing.  There is no 03 for the checking rule.  The checking rule is PP.  What change do I need to make to get the Idoc and MB1A to go after PP instead of 03?

Read only

JL23
Active Contributor
0 Likes
2,180

If the BAPI works then the IDoc should work too. I am saying this since the the BAPI makes use of this IDOC if you choose BAPI as import method in LSMW.

That is still pretty old stuff which makes internally use of the old MB transaction names.(it is not calling the transaction, just using the names since there is nothing for MIGO)

03 is good for your purpose but you have to create the combination in your ATP checking rules

Read only

0 Likes
2,180

I made a duplicate of the KT / PP to KT / 03  and the Idocs are being successfully created now.  Thanks for your help!