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

RBDMIDOC Program with User Exit?

Former Member
0 Likes
1,888

Hi....

I am a bit puzzle and hope someone could assist me with this please.

I am trying to work on a functional specification to layout an interface between SAP and our outsourced provider. Given that, I've created a reduced message type off HRMD_A06, calling it ZHRMDA06_ORG and change pointers being active.

From my understanding, if I run RBDMIDOC it will extract what is in the change pointers and create an IDOC structure with the data. I need to somehow after that structure is created to go back and add segments or sub-segments to it.

For example:

IF E1PLOGI.OTYPE='S'

IF E1PITYP.INFTY='1001' AND E1PITYP.SUBTY='A003'

If it detect this in the IDOC segment, I will need to find the chief of the org unit this position belongs to and create the E1PITYP.INFTY='1001' and E1PITYP.SUBTY='A002' to that chief position.

Using that as one of the data maniplulation example, I do have other data needing to be added to the segment / sub-segments as well. Like creating a whole new E1PLOGI, etc.

How do I go about doing so?

DO I...

A) Do it as part of the RBDMIDOC extraction run (i.e. modify a function module associated with it)

- OR -

B) Do it as a program that runs after the RBDMIDOC extract run and automatically go in to that IDOC to modify it.

One thing to note is that I will be creating multiple reduced message types against HRMD_A06, one per interface i am dealing with for outbound transfer to XI.

So I could have a ZHRMDA06_ORG and ZHRMDA06_ORG2 and both could share the same infotype tracking from change pointers.

So which ever method used, I would need the ability from the user exit or function module to signify that piece of code is for a particular message type extraction.

Thank you much in advance. Much Appreciated....

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,165

Hi Kevin,

It seems a bit difficult.

But try to look into the FM RH_MASTER_IDOC_DISTRIBUTE_HRMD. Here we have one custom Exit '001'. Try to put the code as per your req.

Actually this will trigger whenever we try to execute the PFAL to send the data to other systems from HR.

Thanks

eswar

3 REPLIES 3
Read only

Former Member
0 Likes
1,166

Hi Kevin,

It seems a bit difficult.

But try to look into the FM RH_MASTER_IDOC_DISTRIBUTE_HRMD. Here we have one custom Exit '001'. Try to put the code as per your req.

Actually this will trigger whenever we try to execute the PFAL to send the data to other systems from HR.

Thanks

eswar

Read only

0 Likes
1,165

I was looking at the RH_MASTER_IDOC_DISTRIBUTE_HRMD originally, but it only seems to be triggered via the PFAL. I need something to trigger via RBDMIDOC.

From what I gathered yesterday...

P633 from the book "ALE, EDI, and IDOC Technologies for SAP", I could use MASTERIDOC_CREATE_SMD_<Message_Type> and that is used during the RBDMIDOC.

I am not sure if that is still valid on the ECC 5.0 system or not. I look at the RBDMIDOC code and I don't see where it specify it will use these function modules.

Read only

0 Likes
1,165

Hi Kevin,

The same FM will trigger even if u run BD21, pass the message tyupe HRMD_A.

Thanks

eswar