Enhance FIDCC1 /FIDCCP01 IDOC using exit to change... - SAP Community
source link: https://community.sap.com/t5/enterprise-resource-planning-q-a/enhance-fidcc1-fidccp01-idoc-using-exit-to-change-the-segment-value/qaq-p/13591876
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
yesterday
Hi I have a situation where when a document is posted in system1 , it reaches system 2. But before the inbound idoc is created in system 1 , I want to change the value of VBUND field of segment E1FISEG .
I wrote a code in EXIT_SAPLF050_004 include ZX050U05 .
loop at idoc_data
where docnum = idoc_contrl-docnum.
case idoc_data-segnam.
when 'E1FISEG'.
xe1fiseg = idoc_data-sdata.
if SY-SYSID+0(2) = 'IE'.
if xe1fiseg-vbund = '1000'.
xe1fiseg-vbund = 'C001'.
endif.
if xe1fiseg-vbund = '2000'.
xe1fiseg-vbund = 'C002'.
endif.
endif.
endcase
But the incoming idoc still holds the vbund value of 1000 or 2000, it does not change. Also the break-point is not triggered. Pls help.
- SAP Managed Tags:
- SAP BTP, ABAP environment
Accepted Solutions (0)
Answers (6)
14m ago
I can see the table being updated but the segment shows the same old value
3 hours ago
@Ryan_crosby
When I try to duplicate the idoc in we 19 , I see the debugger is stopping at the break-point , But again I dont see the value being changed.
loop at idoc_data
where docnum = idoc_contrl-docnum.
move idoc_data-sdata to xe1fiseg.
case idoc_data-segnam.
when 'E1FISEG'.
if xe1fiseg-vbund = '001000'.
xe1fiseg-vbund = 'C001'.
endif.
move xe1fiseg to idoc_data-sdata .
endcase.
The value is written to sdata but when I execute I dont see the new value reflected in Idoc segment,
18 hours ago
@Ryan-Crosby yes that is right. the cmod screen shot is from the receiving system and I see the Idoc is generated in receiving system when I post in source system. However the break point is not triggered.
yesterday
yesterday
Hi Ryan,
I followed that, Created a cmod proj ZXXXX in the destination system and added the enhancement "F050S002" and in the component EXIT_SAPLF050_004 wrote the code . No luck. I am not seeing the new value in the Idoc. I have also break-point statement in the code , and an external breakpoint too , but the debugger does not stop.
yesterday
You want to be sure to create a project in CMOD and assign enhancement 'F050S002', and activate any of the components you plan to use. Once you complete this step and activate the project, then your exit will be processed during runtime.
Regards,
Ryan Crosby
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK