Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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

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....

Tags:
Former Member
Former Member replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question