‎2010 Apr 12 11:05 AM
Hello
We have developed the user exit ZUE_ZXMGVU03 to send additional material customised field in BD10 when sending idoc from ECC.
the problem is that before the select statement from MARA table we check the follwing condition
IF idoc_cimtype = 'ZAFSMATMAS05'
when I debug the program the value is null
where is this field custmized ? we activated the change pointers already
I tried looking in BD52 but I didnt find it there
thanks
Shai Rosenzweig
‎2010 Apr 12 12:58 PM
Hello ,
guess that your ZUE_ZXMGVU03 code is used in the EXIT_SAPLMV01_002 - at the point, where the icodc is created.
If so, the IDOC_CIMTYPE parameter is an output parameter in that user exit - you may influence that one.
But if you want to know, from where your are coming, it's more the MESSAGE_TYPE and SEGMENT_NAME - parameter.
Regards Wolfgang
‎2010 Apr 12 12:58 PM
Hello ,
guess that your ZUE_ZXMGVU03 code is used in the EXIT_SAPLMV01_002 - at the point, where the icodc is created.
If so, the IDOC_CIMTYPE parameter is an output parameter in that user exit - you may influence that one.
But if you want to know, from where your are coming, it's more the MESSAGE_TYPE and SEGMENT_NAME - parameter.
Regards Wolfgang
‎2010 Apr 12 1:23 PM
yes this parameter is output, you are right
but the SEGMENT_NAME is not the Z SEGMENT
how can I check that ?
thanks
Shai
‎2010 Apr 12 2:30 PM
Hello Shai,
just an example, how it's used here:
DATA: l_edidd TYPE edidd,
l_ze1maram TYPE ze1maram.
CHECK message_type = 'MATMAS'.
IF segment_name = 'E1MARAM'.
<Get Values for L_ze1maram>
....
....
CLEAR l_edidd.
l_edidd-segnam = 'ZE1MARAM'.
l_edidd-sdata = l_ze1maram.
APPEND l_edidd TO idoc_data.
ENDIF.
The ZE1MARAM is an own segment that's just under the E1MARAM-segment in an enhanced Idoc-type .
The enhanced idoc is based on Matmas04.
Regards Wolfgang