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

cremas Inbound process for the custom functionality

Former Member
0 Likes
4,806

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

10 REPLIES 10
Read only

Former Member
0 Likes
2,613

Hi Rajan kumar

Try with enhancement VSV00001

Thanks

Ramesh

Read only

Former Member
0 Likes
2,613

Yes. you can use exit: EXIT_SAPLKD01_001.

--

Reddy

Read only

Former Member
0 Likes
2,613

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

Read only

0 Likes
2,613

if it's for inbound process, use EXIT_SAPLKD02_001. for outbound EXIT_SAPLKD01_001.

--

Reddy

Read only

Former Member
0 Likes
2,613

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

Read only

0 Likes
2,613

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

Read only

Former Member
0 Likes
2,613

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.

Read only

0 Likes
2,613

I am not sure why it's not triggered. If you are familiar with BADI implement VENDOR_ADD_DATA_BI.

--

Reddy

Read only

0 Likes
2,613

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.

Read only

0 Likes
2,613

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