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 type for vendor master update/change

Former Member
0 Kudos

what is the IDoc type used to update vendor master table or change vendor master table(LFA1).or is there any IDoc type to change vendor master table for the inbound vendor update interface please provide me the details and thanks in advance

srini

8 REPLIES 8

Former Member
0 Kudos

Look for the IDOC types CRE*(CRECOR01,CREMAS01, CREMAS02, CREMAS03).

Former Member
0 Kudos

Hi ,

The function module is IDOC_INPUT_CREDITOR.

Message type - CREMAS

Idoc Type - CREMAS03/04 ( depending on your SAP version )

Process Code - CRE1.

Cheers.

( Dont forget to reward if answers were helpful ).

Former Member
0 Kudos

Hi Srinivas/Sanjay

I am satisfied with your answer so I need to use CREMAS03 IDoc type for updating the vendor master table LFA1 using the function module IDOC_INPUT_CREDITOR well I am testing using the transaction we19 where i am updating the address data so when there is no data in the IDoc then the data available in the screen of XK02 is getting deleted and i am using the function 004 (MSGFN)(like for example TELFX data is empty in IDoc but thereis some value in XK02 screen that is getting replaced with spaces) kindly provide me the details.Does MSGFN value makes all changes or what?????

Advance thanks for srinivas/sanjay.

0 Kudos

Hi Srinivas ,

For some IDOC types MSGFN would mean Create / Change / Delete etc.

VALUE '009'. "New

VALUE '004' "Change

VALUE '005'. "Refresh

VALUE '023'. "Synchronisation

VALUE '003'. "Deletion

VALUE '018'. "Reissue

If you use MSGFN '004' or '005' , the system will try to copy whatever is there in IDOC to the vendor master . If a field is blank it will be deleted in Vendor master or if it has a vlaue it will overwrite the value in vendor master . If you do not want to change a field value , just pass a NODATA "/" character in that field ( Without quotes ) . So better pass NODATA in all the fields and give value in only the required fields.

Cheers

( If you problem solved close the thread and reward points if answers were helpful )

Former Member
0 Kudos

Hi Sanjay

Well I am convinced with your answer thanks for the reply(100% appreciated) but i have a potential difficulty here any way i am testing manually using WE19 (So i can put '/' in the fields i dont want)how does this need to be programmed in the real time scenario(as i am goin on for all the standard things)do i need to use the user exit or i need to use the total custom function module or how i should proceed

please provide me the details

Advance thanks

Thanks

srini

0 Kudos

Hi Srinivas,

Are you going to create an inound interface for vendors load . I mean what will trigger a change in vendor master . You can put a "/" in the IDOC fields in a user exit as well as in create conversion rules to do this .

Or if you are generating an IDOC from a custom program then you can well add this mapping there .

But I am not getting you as to where will the idoc be generated / come from. It is better to change at source as at time of loading how will you determine whether the field requires a change or not.

Cheers.

0 Kudos

Hi Sanjay

which User exit i have to use for this? this is only for the vendor change like if address data is changed by the vendor outside SAP then there will be an inbound data to me to update the vendor master table and where should i write the conversion rule for this???i will be getting this idoc from the middleware from the external system.

if there is data in the incomming IDoc then i have to change the vendor master using the cremas03 and through the function module idoc_input_creditor.

well i will explain what is happening, when i am testing using we19 the empty fields in the IDOC is getting populated in the lfa1 so there by deleting the data from the table so in order eliminate what i am supposed to do??

i am not understanding which user exit i have to use ??

advance thanks

srini

0 Kudos

Hi Srinivas ,

There is one user exit EXIT_SAPLKD02_001 , but this is for custom segments and is called after the IDOC has posted

You can create conversion rules for the segments in which you want to convert data .

Transaction SALE -> Modelling & Implementing Business Process -> Converting data Between sender and receiver.

You have to do all the three steps -

Create Rule / Maintain Rule - ( Here you will find the options to convert various fields of a segment ) / Assign Rule to message Type ( Sender + Receiver ).

( this conversion takes place in ALE layer before IDOC is passed to application ) .

In craete rule you will create a rule for the segment you want to convert. In maintain rule you will actually give the logic to individual field which you want to convert .

Cheers.