Enterprise Resource Planning PortalERPGenie.COMEnterprise Resource Planning Portal

   Advertise | BLOG

Web ERPGenie.COM

Home | Vote for us |

ERPGenie.COM -> mySAP.com -> CRM -> CRM ABAP Tips and Tricks -> Returning your old R/3 structure from CRM (Bob Billings)

FUNCTION ZCRM_RFC_GET_OU_TO_R3_MAP.

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

*"*"Local interface:

*" IMPORTING

*" VALUE(EFDATE) TYPE DATS

*" TABLES

*" ORG_INFO STRUCTURE ZCRMOUTOR3

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

tables: hrv1222a.

refresh: org_info.

 

select otype objid attrib low

    from hrv1222a

    into (hrv1222a-otype, hrv1222a-objid, hrv1222a-attrib, hrv1222a-low)

    where begda <= efdate

        and endda => efdate

        and attrib like 'R3_SA_%'.

 

    org_info-otype = hrv1222a-otype.

    org_info-objid = hrv1222a-objid.

    org_info-r3_type = hrv1222a-attrib.

    org_info-r3_value = hrv1222a-low(10).

    append org_info.

endselect.

 

sort org_info by objid.

 

ENDFUNCTION.

Contact Us | Polls | Add URL | Contribute | About | Privacy | Terms | Feedback | Help!

Message Board | Discussion Forum | BLOG | Consultants: Post your resume | Companies: Advertise on ERPGenie.COM | Post Job