Application Development and Automation 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: 
Read only

IDOC_CIMTYPE Empty - Change Pointers

Former Member
0 Likes
876

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

1 ACCEPTED SOLUTION
Read only

Former Member
728

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

3 REPLIES 3
Read only

Former Member
729

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

Read only

0 Likes
728

yes this parameter is output, you are right

but the SEGMENT_NAME is not the Z SEGMENT

how can I check that ?

thanks

Shai

Read only

728

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