Application Development 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: 

IDoc status 51 - LSMW for Creating Purchasing Info Records using IDoc meth

Former Member
0 Kudos

Dear All,

My req is to create a Conversion for Purchasing Info Records. LSMW's IDoc method is used to develop this conversion wherein Message Type "INFREC" and Basic Type "INFRECMASS01" are being used.

In the 14th step (Start IDoc Processing), I 'am getting the IDoc status "51" and Status Text "Application document not posted". If I double click on respective IDoc number, I got its Control record, Data records, and Status records; in the status records I can see "51" in Red color with the message "Function module not allowed: IDOC_INPUT_INFREC". If I double click on this it asks me to check the process code...

Request you guys to resolve the issue....

Solution will b rewarded.. Thanks in advance....

1 ACCEPTED SOLUTION

Former Member
0 Kudos

U should use basic type INFREC01 instead of NFRECMASS01.

Within the FM there is a check for basic type like:

  • check idoc type

if f_idoc_control-idoctp <> c_idoctp_infrec01. " INFREC01

raise wrong_function_called.

endif.

Edited by: Joyjit Ghosh on Sep 15, 2008 4:57 PM

1 REPLY 1

Former Member
0 Kudos

U should use basic type INFREC01 instead of NFRECMASS01.

Within the FM there is a check for basic type like:

  • check idoc type

if f_idoc_control-idoctp <> c_idoctp_infrec01. " INFREC01

raise wrong_function_called.

endif.

Edited by: Joyjit Ghosh on Sep 15, 2008 4:57 PM