cancel
Showing results for 
Search instead for 
Did you mean: 

FM for outbound IDOC with IDOC type pexr2002 and message type PAYEXT

Former Member
0 Kudos

Hi,

I need FM name which is used for outbound IDOC based on std IDOC TYPE PEXR2002 and Message TYPE PAYEXT or DIRDEB.

If anyone is aware of this FM pls let me know.

Kind Regards,

vtest

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Can anyone tell me FM for outbound IDOC with IDOC type pexr2002 and message type DIRDEB.

Former Member
0 Kudos

Hi,

I hope the requirement should be generating the payment file from SAP R/3.There is no outbound function module availble for this message type.Because SAP does not use message control for FI module.Function module is been linked with outbound process code which in turn associated with message control components which are widely used in MM and SD modules.

For your requirement SAP has given the program RFFOEDI1 to generarate the payment file using this standard report.

This report uses master_idoc_distribute function module to distribute the IDOCs to ALE/EDI layer.

I hope this clarifies your query.

Thank you.

Regards,

Karun M

Former Member
0 Kudos

Hi Karun,

Thanks a lot. U got my query correctly.But my main job is to get the mapping which is used ofr this outbound idoc with idoc type "pexr2002" and message type either "payext" or "DIRDEB".

In my project, I have got a big mapping sheet for populaitng segments into this std outbound idoc ..so I want ot c wether this mappnig is same as of std idoc or different. What u suggest i will get this mapping by derbugging the program and checknig how segments r populated for this std outbound idoc.

In mean while i had got 1 FM named "

FI_EDI_PAYEXT_PEXR2001_OUT". I flet it is used ofr above idoc type and message type as outbound. Also the given program RFFOEDI1 calls this FM in its code.

Well if you have suggestions pls let me know.

Kind Regartds,

VTEST

Former Member
0 Kudos

Hi,

As far as my knowledge concerned,We never got a chance to extend the IDOC PEXR2002.What I am trying to say is the mapping could contain segments same as IDOC.

Anyway you can go to WE60 transaction and refer the IDOC documentation for this IDOC type.

This would facilitate you to do the mapping in a better way.

Thank you.

Regards,

karun M

Former Member
0 Kudos

This thread is was last replied more than a year ago, but I'll add a little just to contribute.

WE60 documentation for the IDocs don't really give much except field / segment

information, but don't talk about where the fields come from.

FI_EDI_PAYEXT_PEXR2001_OUT seems to be the right FM, not sure how it relates to IDoc type pexr2002 as 2001 is the older version, but perhaps it handles the difference somewhere inside.

As to where certain segment fields come from (i.e. the mapping to master data fields...) , I've been debugging and still in progress.

I have not been able to find any straight forward mapping, and my comments at the moment are:

For any particular segment field of PEXR2002, take a look at FM :

FI_EDI_PAYEXT_PEXR2001_OUT

to see how it populates the field. Chances are, the values come from the tables REGUH/REGUP/REGUV.

The payment run process as far as my knowledge is concerned is as follows:

1) Payroll Run -> Stores to table BT

2) Pre DME (e.g. trx PC00_M08_CDTA) picks data frm BT and creates payment data in REGUH / REGUP / and REGUV tables. This gives you an identification feature ID for the next step.

3) RFFOEDI2 changes status field in REGUH for particular payment data record based on ID from step 2.. this enables it to be picked up in the next step.

4) RFFOEDI1 converts the record in REGUH into an IDoc which can be processed in BD87.

I have debugged from step 4 backwards to step 3, i.e. I know that segment field X comes from REGUH field Y. Now I have to debug step 2 to find out how it populates REGUH field Y. If this comes directly from master data, then that makes life easier. But if this REGUH field Y comes from table BT of step 1, then perhaps I have to debug the payroll run somewhere. (Nightmare?

Anyway, if anyone knows better, please advise.

former_member188685
Active Contributor
0 Kudos

Hi,

you can either use <b>BKK_IDOC_PAYEXT_INPUT</b> or

<b>IHC_PI_APPL_PAYEXT_INPUT_FI</b>

depending on your requirement.

regards

vijay

mandar_shete
Active Participant
0 Kudos

Hi,

There is as such no FM. But you can find the exits under enhancment <b>FEDI0003</b>.

<b>EXIT_SAPLIEDP_001 - FI-EDI: Outgoing Pmnt Advice - Save PEXR Segments

EXIT_SAPLIEDP_002 - FI-EDI Outgoing Payments: Save PEXR Segments PAYEXT

EXIT_SAPLIEDP_003 - FI-EDI Outgoing Payments: Save PEXR Segments DIRDEB</b>

hymavathi_oruganti
Active Contributor
0 Kudos

BKK_IDOC_PAYEXT_INPUT IS THE FN MODULE

Former Member
0 Kudos

Did you try to find by the pattern IDOCPAYEXT