03-17-2009 11:55 AM
Hi Friends,
Please suggest me some BAPI Function module to create info record in ME11 transaction, hence i got some function module but those doesnt help in handling exceptions and error message.
Kindly help me.
Thanks
Lekha
03-17-2009 12:11 PM
03-17-2009 12:12 PM
Not aware of any BAPIs but did you try : WSTN1_INFO_RECORD_BUILD ?
Mathews
03-17-2009 12:54 PM
i guess BDC is better option for ME11. we dont have BAPI or good fm to do so.
Above FM works only under ceratin conditions , check documentation for the same.
We get a list of purchase prices for the prepacks to be created /
*--- changed. From this list, we build the corresponding info records.
*--- We copy part of the logic of material master, function group mgwl,
*--- form reference_after. The routine call must be placed later, when
*--- material data are at least available in the corresponding buffers
*--- of the select modules.
*--- Currently, the module is not very clearly structured. Think about
*--- further modularisation.
*--- Open points:
*--- o Should we read general EINE data (without plant) when no
*--- record for the desired plant exists?
*--- o Which fields should be copied from generic material EINA /
*--- EINE, which ones should be filled according to article master
*--- logic?
03-17-2009 1:10 PM
Hi,
check the below Function modules it may be helpful
MMPUR_EKKN_ARRAY_READ
MMPUR_EKKN_READ_EBELN
MMPUR_EKKN_READ_EBELN_EBELP
MMPUR_EKKN_REFRESH_BUFFER
Thanks & Regards,
Sateesh.
03-17-2009 1:15 PM
Looks like we dont have a BAPI to create.... so option Either a BDC or IDOC method.