‎2010 Apr 13 4:04 PM
Hi,
The standard functionality of the cremas is not handling the Alternative Payee.
So i am planning to extend the Idoc.
I found the process code CRE1, and the function module is IDOC_INPUT_CREDITOR --> ERP_IDOC_INPUT_CREDITOR.
I want to add Alternative Payee (lfza) functionality into the above fm.
For this custom functionality where can I add, is there any exit available for the same.
Pls send me the sample code, if available.
Thanks in advance
Rajan
‎2010 Apr 13 5:45 PM
‎2010 Apr 14 7:08 AM
‎2010 Apr 19 3:59 PM
Hi Thanks for reply,
I have activated the exit EXIT_SAPLKD01_001, when i process the idoc this exit is not getting triggering.
I am bit new in this area, any more suggestions.
Thanks in advance.
Regards
Rajan
‎2010 Apr 20 9:36 AM
if it's for inbound process, use EXIT_SAPLKD02_001. for outbound EXIT_SAPLKD01_001.
--
Reddy
‎2010 Apr 20 11:09 AM
Thanks reddy,
I have created the project
Assigned the component
From the FM EXIT_SAPLKD02_001, created the INCLUDE ZXVSVU04 .and kept break point.
When i am trying to test the IDOC from WE19, this exit is not triggering.
Regards
Rajan
‎2010 Apr 20 11:55 AM
Hi Rajan,
Inorder to trigger the exit (EXIT_SAPLKD02_001)you should have custom segment. so you should also fill exention name in the control record in WE19.
If you see the code in the function module u will know the condition.
Include: LKD02F01
customer exit
IF customer_segment = c_x.
clear sy. "DELETE - NOTE 72047
CLEAR sy-subrc. "INSERT - NOTE 72047
CALL CUSTOMER-FUNCTION '001'
EXPORTING
idoc_control = f_idoc_control
input_method = input_method
IMPORTING
First extend the idoc and maintain extension in control record then test.
--
Reddy
‎2010 Apr 20 4:43 PM
Hi reddy,
Thanks for your quick reply,
I have extended the Idoc with additional segment.
And configured We82 (Assign Messages for IDoc Type) with this extension.
Then from WE19, I am choosing the Inbound FM:ERP_IDOC_INPUT_CREDITOR.
but it's not triggered.
But I identified below logic is getting triggering.
WHEN OTHERS.
*-----Kundensegment--
*
CUSTOMER_SEGMENT = C_X.
ADD_ON-Änderungen - B
PERFORM PASS_NON_STANDARD_SEGMENT
USING T_IDOC_DATA_WA-SEGNAM
T_IDOC_DATA_WA-SDATA
.
ADD_ON-Änderungen - E
DELETE T_IDOC_DATA_WA.
CONTINUE.
I hope I have to implement BADI here.
‎2010 Apr 21 8:11 AM
I am not sure why it's not triggered. If you are familiar with BADI implement VENDOR_ADD_DATA_BI.
--
Reddy
‎2010 Apr 21 11:17 AM
Check the below points,
1. Release your Extension idoc.
2.Activate your custom project that you have created to populate the value in exit.
3.Still not working, then in WE19 start with debug mode and find out the exit funtional module Z include is excuted.
Regards,
Alex.
‎2010 Apr 21 1:21 PM
Exit is called once the trasaction has been saved successfully. Keep break point in exit & run inbound process fore ground. Give suitable values for fields (for successfull trasaction...if required on screen). Then the exit will be called.
B4 this check wheter idoc extention & segment hav been released.
--
Reddy
Edited by: V.V.Reddy on Apr 21, 2010 2:21 PM