Skip to Content
avatar image
Former Member

Call RFC dynamically

Hi,

I require calling 2 different RFC in the same receiver dynamically based on one of the content in my Message. How can I do this.

Basically, assume i have a message with Create='Y', need to call a one RFC and if Create='N', need to call another RFC.

This is just an example not the actual scenario.

Regards

Unni

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

5 Answers

  • avatar image
    Former Member
    May 06, 2008 at 04:57 AM

    require calling 2 different RFC in the same receiver dynamically based on one of the content in my Message

    You can achieve this using conditional interface determination. No need to go for BPM or conditional receiver determination.

    Create 2 different interface mappings with 2 different RFCs and put a condition in conditional interface detrmination to determine your interface .

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Then you can formulate your expression using conditional editor and substring function.

      Take the substring from that message and check the condition.

      Check this link to forumulate your expression using substring function.

      /people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination

      Get back to me if you still have any doubt

  • avatar image
    Former Member
    May 05, 2008 at 02:37 PM

    Hi,

    you can enter your conditions in the receiver determination (each condition will point to a different interface (RFC) of the same receiver):

    http://help.sap.com/saphelp_nw04/helpdata/en/43/a513f2632c332ce10000000a11466f/frameset.htm

    Regards

    Patrick

    Add comment
    10|10000 characters needed characters exceeded

  • May 05, 2008 at 03:22 PM
    Add comment
    10|10000 characters needed characters exceeded

  • May 06, 2008 at 04:32 AM

    Hi,

    Check this blog http://www.saptechnical.com/Tutorials/XI/RecvDetermination/Enhancement.htm.

    Reward points if found helpful.

    Regards,

    Ramya

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 06, 2008 at 04:47 AM

    Hey,

    we can have two solution for this.

    Solution 1:

    Use a BPM . in that use a switch case.

    based on your condition provided in the switch case(for eg create=y or create=N) choose the interface mapping(using transformation step of BPM). two different RFC's will be having two different interface mappings.

    Solution 2:

    In your configuration you need to create two different services for the same R3. and have two diffent communication channels.

    In your reciever determination give your condition(eg create = y or create=N). Give both the services in the service field.

    Now give the interface mappings(different for the two RFCs) in the interface determination for each reciever.

    I would suggest you to go with solution 1.

    Reward points if helpful.

    Add comment
    10|10000 characters needed characters exceeded