Skip to Content
0
Jun 23, 2016 at 09:15 AM

changing sender partner number in idoc of message type PAYEXT for F110

1048 Views

HEllo all,

We have configured the idoc of message type "PAYEXT" for f110 transaction.

Sender and target system is same.

Idoc is genearting successfully.

But clients requirement is to change the sender partner number (SDNPRN) in control records to "INVENDOR".

So we have raise the Issue to SAP.

SAP is saying " The Sender Partner Number in control records is filled in the standards with logical system name ( As maintained in SCC4)]

This is a standard. Expected settings. This can not be changed. In case you need to have an own value, you must use the user exit for changing the content of this field. You can use user exit ALE00001."

As per SAP's suggession, I created a project in CMOD for this Exit and put the break point in Include of this user exit.

Then i am running the F110. Once doument is posted through F110 , i am runnign the program " RSEOUT00".

During this process it is not hitting the debugger which i set in user exit ALE00001.

Please help me where i am going wrong.


Alternatively i tried BTE 2441 which triggers before creating IDOC.

FUNCTION ZSAMPLE_PROCESS_00002441.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" REFERENCE(IM_MESTYP) LIKE EDIDC-MESTYP
*" REFERENCE(IM_REGUH) LIKE REGUH STRUCTURE REGUH
*" REFERENCE(IM_REGUD) LIKE REGUD STRUCTURE REGUD
*" REFERENCE(IM_FLAG_NO_REPLACE) TYPE C
*" EXPORTING
*" REFERENCE(EX_FIMSG) LIKE FIMSG STRUCTURE FIMSG
*" TABLES
*" T_REGUP STRUCTURE REGUP
*" T_EDIDD STRUCTURE EDIDD
*" CHANGING
*" REFERENCE(CH_XAVIS) TYPE C
*" REFERENCE(CH_EDIDC) LIKE EDIDC STRUCTURE EDIDC
*" EXCEPTIONS
*" DONT_CREATE_IDOC

*"----------------------------------------------------------------------

if im_mestyp = 'PAYEXT'.
ch_edidc-sndprn = 'INVENDOR'.

  1. endif.

But after writing this code …idoc is not getting generated.


Please help me.


Regards,

Anuja Dhondge