on 05-06-2009 5:02 AM
hi abapers ,
iam new to ale technology,
here iam sending material from one system to other system..
here the outbound side is ok.
here inbound side ineed to do some mapping for materials sent by one system to other sytem.
like if material type in sys1 is 'fert'
there in receiving system it should be ''HAWA'
like mapping is required ,so for this where i do coding.
i found one exit EXIT_SAPLMV02_002, here i can put the code?
when this exiot will trigger how can we test in bebugg mode
in my scenario ones material is receicved how this idoc_input_matmas01 is triggerd? and document is posted in appilcation..
can any one explain me..
i got the sol
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
in my case i want send material from ser1 o ser2.
in ser2 i need to mapping logic for example..
fert material type in sending side,in receiving side it should be hawa type..
this my scenario.
in receiving side u need to do mapping as u r req.
for material (idoc_input_matams01)
this function module is responsibel to process inbound idoc and post it into application.
if u want to put mapping code.
there are some exits & badi's available for this fm.
i hope how to find out the exits or badi's ..
in my case i used badi BADI_MATMAS_ALE_IN
in this badi the corresponding mm table are there ..
do the mapping and pass the values to these table,
here tables are changing parametrs,
one exp:
IF wa_data-segnam EQ 'E1MARAM'.
mara-mandt = sy-mandt.
mara-matnr = wa_data-sdata+3(18). "Material Number
IF wa_data-sdata+77(4) = 'FERT'.
mara-mtart = 'HAWA'. "Material Type
ENDIF.
MODIFY mara_ueb INDEX 1 FROM mara TRANSPORTING mtart .
then the correponding values are moved to mara_ueb..
note:when u modify table mara_ueb pass the values which u want to modify,,
in my case i passed mtart(here i want to modify matart).
why becasue there some ctrl infrmation is there for mara_ueb(idoc inforamatiom)
so,be careful when modifying this .
then after mappig this control comes out from badi.
and execute fm 'material_maintain_dark'.
this fm is responsibe for creating material.
so,after executing this fm check status.
if any errors it will be in MERRDAT.
if any doubts let me know.....
Hi Ajay ,
I want to Transfer the Data from 4.7 Server to ECC 6 with some Business Updations like Plant from BP01 to 1000 , Storage Locations etc.. I want to send data like Material Master , BOM , Routing , WorkCenter etc... Can you tell me how to do it with the changes like Plant , SLoc in Receiving System .
Regards,
Bintu
Buddy, the system won't consider the breakpoint in case of Inbound Idoc as it is done automatically in background according to the Message type and process code settings. U can debug it through WE19 only by executing the idoc manually again. Think logically, why would the system stop at ur breakpoint when u didn't intiate a process.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks,
thats clear..
but my issue is stil not cleared..
here i want to add my own code ..so for this i found on exit EXIT_SAPLMV02_002
the importing and exporting parameters are here.
"Lokale Schnittstelle:
*" IMPORTING
*" VALUE(MESSAGE_TYPE) LIKE EDIDC-MESTYP
*" VALUE(F_CUST_SEGMENT) LIKE EDIDD STRUCTURE EDIDD
*" TABLES
*" RES_FIELDS STRUCTURE DELFIELDS
*" CHANGING
*" VALUE(F_MARA_UEB) LIKE MARA_UEB STRUCTURE MARA_UEB
*" OPTIONAL
*" VALUE(F_MAKT_UEB) LIKE MAKT_UEB STRUCTURE MAKT_UEB
*" OPTIONAL
*" VALUE(F_MARC_UEB) LIKE MARC_UEB STRUCTURE MARC_UEB
*" OPTIONAL
*" VALUE(F_MARD_UEB) LIKE MARD_UEB STRUCTURE MARD_UEB
*" OPTIONAL
*" VALUE(F_MFHM_UEB) LIKE MFHM_UEB STRUCTURE MFHM_UEB
*" OPTIONAL
*" VALUE(F_MPGD_UEB) LIKE MPGD_UEB STRUCTURE MPGD_UEB
*" OPTIONAL
*" VALUE(F_MPOP_UEB) LIKE MPOP_UEB STRUCTURE MPOP_UEB
*" OPTIONAL
*" VALUE(F_MPRW_UEB) LIKE MPRW_UEB STRUCTURE MPRW_UEB
*" OPTIONAL
*" VALUE(F_MVEG_UEB) LIKE MVEG_UEB STRUCTURE MVEG_UEB
*" OPTIONAL
*" VALUE(F_MVEU_UEB) LIKE MVEU_UEB STRUCTURE MVEU_UEB
*" OPTIONAL
*" VALUE(F_MARM_UEB) LIKE MARM_UEB STRUCTURE MARM_UEB
*" OPTIONAL
*" VALUE(F_MEAN_UEB) LIKE MEA1_UEB STRUCTURE MEA1_UEB
*" OPTIONAL
*" VALUE(F_MBEW_UEB) LIKE MBEW_UEB STRUCTURE MBEW_UEB
*" OPTIONAL
*" VALUE(F_MLGN_UEB) LIKE MLGN_UEB STRUCTURE MLGN_UEB
*" OPTIONAL
*" VALUE(F_MVKE_UEB) LIKE MVKE_UEB STRUCTURE MVKE_UEB
*" OPTIONAL
*" VALUE(F_MLGT_UEB) LIKE MLGT_UEB STRUCTURE MLGT_UEB
*" OPTIONAL
*" EXCEPTIONS
*" APPLICATION_ERROR
*"----
INCLUDE ZXMGVU04.
when iam executing function module idoc_input_matmas01.and putiing break point in that exit
but for importing parameters F_CUST_SEGMENT it is showing empty..
here iam not passing any values to F_CUST_SEGMENT,because the function module idoc_input_matms01 should call this exit and pass importing parameters..
Hi Ajay,
how this idoc_input_matmas01 is triggerd?
there are 3 steps to assign the Inbound func module
1. BD51- ale attributes( attaching the fm here )
2. WE57- attaching the Message type, Idoc type to the fm
3. WE42- assigning the 4 letter Process code to the fm (the process code points to this fm )
While maintaining partner profiles WE20 add the Inbound parameters ,
here the Process code refering to the fm is assigned and so the Inbound FM gets triggered..
Regards,
Mdi.Deeba
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you created inbound parameters(Message Type) for partner profile(WE20) and assigned a process code to that Message type. With that process code you have to attach an FM which will process your inbound IDoc.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ok,i understood ,
here in receiveing receiving system i want to add some custom code ,
im my case in SENDING SYS material type is FERT and IN RECEIVING SYSTEM material type i HAWA.
i want to do such mapping in receiving side..
i found one exit for it EXIT_SAPLMV02_002.
till now i didn't write any code ,but put a break point in it and i want to test it,but this break point is not triggering,
is that exit is correct ,if than how can we test that exit.
Use WE19 or BD87 transaction.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
104 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.