‎2007 Jul 19 2:51 PM
E1EDP01
|
|---- E1EDP02
|---- E1EDP03
|---- E1EDP03
|---- E1EDP05
|---- E1EDP20
|---- E1EDP19
table values
10 -
0
20-------10
30-------10
when value eq 10 all the above segments are availble, now when i am in E1EDP02 , it is checking for remain order which are derived from higher level, i.e 20, 30.
i need to insert all segments now, the condition is check in E1EDP02, for that i take,
another case statement
WHEN C_E1EDP02.
then how i will add or insert the all segments for remaining orders (20 and 30 ) in idoc
please give idea , or ant sample code paste here,
‎2007 Jul 20 4:08 AM
‎2007 Jul 20 6:31 AM
Hi,
For inbound IDoc, you can use user exits EXIT_SAPLRHA0_003 of FM IDOC_INPUT_HRMD.
For outbound IDoc, you can use user exits EXIT_SAPLRHA0_001 of FM RH_MASTER_IDOC_DISTRIBUTE_HRMD.
Please try something like this for inbound IDoc.
...
DATA: WA_E1P0105 LIKE E1P0105,
L_IDX TYPE i.
CHECK IDOC_CONTRL-DOCTYP = 'HRMD_A06'.
LOOP AT IDOC_DATA.
CASE IDOC_DATA-SEGNAM.
WHEN ' E1P0105'.
MOVE: IDOC_DATA-SDATA TO WA_E1P0105,
<zfield> TO WA_E1P0105-<segment name>,
WA_E1P0105 TO IDOC_DATA-SDATA.
DESCRIBE TABLE IDOC_DATA LINES L_IDX.
MODIFY IDOC_DATA INDEX L_IDX.
ENDCASE.
ENDLOOP.
...
For outbound IDoc, please replace IDOC_CONTRL with T_COMM_CONTROL and IDOC_DATA with T_IDOC_DATA
<b>Reward points</b>
Regards
‎2007 Jul 20 11:59 AM
Hi i want to crate new parent and all child segments , not modify the content
‎2007 Jul 22 8:48 AM
For clear understanding of my requirement,
Functionally when the Item(POSNR) contains derived lower level items(UEPOS).
Suppose i have items 10,20,30,40,50,60. In this 20,30,40 comes under 10 and
60 comes under 50.
Basic type:ORDER05.
Message type: ORDRSP.
Exit: include: ZXM06U19
Here i have to add the segments by checking Items contain lower level items, If that condition satisfies then i have to insert E1EDP01, E1EDP01 and E1EDP20.