Function Module to fetch Partner Functions in PM Notification

Hi Expert,
I have one requirement to send mail to M2- Engineering Man in PM Notification after saving.
So I want to fetch all M2 (Engineering Man i.e. Partner Functions) from that Notification at runtime.
Right now I am writing the Logic in BADI "NOTIF_EVENT_POST" and I am not getting those M2: Engineering Man in this BADI.
If anyone know Function Module to fetch Partner Functions at runtime please let me know.
Thanks,
Jay.

Hello,
Did you find any function module for updating the Partner address in the Notificaton
Regards,
sks.

Similar Messages

  • Function module to fetch pdf file from App. Server and print/email?

    Hi all,
    Is there any function module to fetch a PDF file from APPLICATION SERVER and print the PDF file or send it as an attachment in an email?
    Please help..
    Thanks in advance.
    Sandeep.

    Hi Sandeep,
    Is there any function module to fetch a PDF file from APPLICATION SERVER
    1) As far as i know there are no FMs to read a file from App server, you can do the same using *OPEN/READ/CLOSE dataset ABAP statements - There are tons of examples for this on the net.
    and print the PDF file or send it as an attachment in an email?
    You can send the file read from the app server(by the suggested method above) and use CL_BCS to send it as an attachment.
    Again there are many examples on the net on how to use CL_BCS for the same.
    Regards,
    Chen

  • Generic datasource by function module to fetch data from multiple tables?

    I'm writing a function module to fetch price, for generic datasource.
    At first, extract test is OK. But InfoPackage never stop  when loading data to PSA in BW.
    And I find the example codes:
         OPEN CURSOR WITH HOLD S_CURSOR FOR
          SELECT (S_S_IF-T_FIELDS) FROM SFLIGHT
                                   WHERE CARRID  IN L_R_CARRID AND
                                         CONNID  IN L_R_CONNID.
        ENDIF.                             "First data package ?
    * Fetch records into interface table.
    *   named E_T_'Name of extract structure'.
        FETCH NEXT CURSOR S_CURSOR
                   APPENDING CORRESPONDING FIELDS
                   OF TABLE E_T_DATA
                   PACKAGE SIZE S_S_IF-MAXSIZE.
        IF SY-SUBRC <> 0.
          CLOSE CURSOR S_CURSOR.
          RAISE NO_MORE_DATA.
        ENDIF.
        S_COUNTER_DATAPAKID = S_COUNTER_DATAPAKID + 1.
      ENDIF.
    There using Cursor to fetch data package by package, and raise exception NO_MORE_DATA to stop the loading process.
    Now I fetch data from multiple tables, I don't think I can use Cursor.
    Then How can I handle this?  
    Thanks a lot.

    Thanks
    IF IT_999[] IS INITIAL.
        SELECT A~KNUMH A~MATNR A~KSCHL VKORG VTWEG A~DATBI A~DATAB KBETR KMEIN KPEIN C~MTART APPENDING CORRESPONDING FIELDS OF
          TABLE TP_DATA
            FROM A999 AS A
              INNER JOIN KONP AS B
                  ON A~KNUMH = B~KNUMH
              INNER JOIN MARA AS C
                 ON A~MATNR = C~MATNR
    *          FOR ALL ENTRIES IN IT_999
                    WHERE
    *      A~KNUMH = IT_999-KNUMH  AND
           ( ( A~KSCHL = 'ZPRC' AND VKORG = 'Z000' AND VTWEG = 'Z1' ) OR
                          ( A~KSCHL = 'ZPRD' AND VKORG = 'A000' AND VTWEG = 'Y3' ) ) AND
    *                      A~DATBI >= SY-DATUM AND
                          LOEVM_KO = ''.
        SELECT A~KNUMH A~MATNR A~KSCHL VKORG VTWEG A~DATBI A~DATAB KBETR AS KHETR  KMEIN KPEIN C~MTART APPENDING CORRESPONDING FIELDS OF
          TABLE TP_DATA
            FROM A999 AS A
              INNER JOIN KONP AS B
                  ON A~KNUMH = B~KNUMH
              INNER JOIN MARA AS C
                 ON A~MATNR = C~MATNR
    *          FOR ALL ENTRIES IN IT_999
                    WHERE
    *      A~KNUMH = IT_999-KNUMH AND
          A~KSCHL = 'ZPR3' AND A~VKORG = 'I000' AND
    *                      DATBI >= SY-DATUM AND
                          LOEVM_KO = ''.
      ENDIF.
      IF IT_997[] IS INITIAL.
        SELECT A~KNUMH A~MATNR A~KSCHL VTWEG A~DATBI A~DATAB KBETR AS KHETR KMEIN KPEIN C~MTART APPENDING CORRESPONDING FIELDS OF
          TABLE TP_DATA
            FROM A997 AS A
              INNER JOIN KONP AS B
                  ON A~KNUMH = B~KNUMH
              INNER JOIN MARA AS C
                 ON A~MATNR = C~MATNR
    *          FOR ALL ENTRIES IN IT_997
                    WHERE
    *      A~KNUMH = IT_997-KNUMH      AND
          A~KSCHL = 'ZPRA' AND VTWEG = 'Y1' AND
    *                      DATBI >= SY-DATUM AND
                      LOEVM_KO = ''.
      ENDIF.
      IF IT_996[] IS INITIAL.
        SELECT A~KNUMH A~MATNR A~KSCHL A~DATBI A~DATAB KBETR AS KHETR KMEIN KPEIN C~MTART APPENDING CORRESPONDING FIELDS OF
           TABLE TP_DATA
             FROM A996 AS A
               INNER JOIN KONP AS B
                   ON A~KNUMH = B~KNUMH
               INNER JOIN MARA AS C
                  ON A~MATNR = C~MATNR
    *          FOR ALL ENTRIES IN IT_996
                    WHERE
    *      A~KNUMH = IT_996-KNUMH AND
          A~KSCHL = 'ZPRB' AND
    *                       DATBI >= SY-DATUM AND
          LOEVM_KO = ''.
      ENDIF.
      SELECT   MATNR     "u7269u6599u53F7u7801
               MEINH     "u4ED3u50A8u5355u4F4Du7684u5907u7528u8BA1u91CFu5355u4F4D
               UMREZ     "u57FAu672Cu8BA1u91CFu5355u4F4Du8F6Cu6362u5206u5B50
               UMREN     "u8F6Cu6362u4E3Au57FAu672Cu8BA1u91CFu5355u4F4Du7684u5206u6BCD
          FROM MARM
          INTO CORRESPONDING FIELDS OF TABLE IT_MARM
           FOR ALL ENTRIES IN TP_DATA
         WHERE MATNR = TP_DATA-MATNR AND  MEINH = TP_DATA-KMEIN.
      LOOP AT TP_DATA.
        IF TP_DATA-KPEIN NE 0.
          TP_DATA-KBETR =  TP_DATA-KBETR / TP_DATA-KPEIN.
          TP_DATA-KHETR =  TP_DATA-KHETR / TP_DATA-KPEIN.
        ENDIF.
        IF TP_DATA-KSCHL = 'ZPRA'.
    *       TP_DATA-MEINH = 'ZI'.
    *      TP_DATA-KSCHL = 'B4'.
          IF TP_DATA-KMEIN = 'ZI'.
            TP_DATA-KBETR = TP_DATA-KHETR / '1.17'.
          ELSE.
            READ TABLE IT_MARM INTO WA_MARM1 WITH KEY MATNR = TP_DATA-MATNR MEINH = TP_DATA-KMEIN.
    *           READ TABLE IT_MARM INTO WA_MARM2 WITH KEY MATNR = TP_DATA-MATNR MEINH = 'CT'.
            TP_DATA-KHETR = TP_DATA-KHETR * WA_MARM1-UMREN / WA_MARM1-UMREZ.
    *           * WA_MARM2-UMREZ / WA_MARM2-UMREN.
            TP_DATA-KBETR = TP_DATA-KHETR / '1.17'.
          ENDIF.
        ELSEIF TP_DATA-KSCHL = 'ZPRB'.
    *      TP_DATA-KSCHL = 'L0'.
    *       TP_DATA-MEINH = 'ZI'.
          IF TP_DATA-KMEIN = 'ZI'.
            TP_DATA-KBETR = TP_DATA-KHETR / '1.17'.
          ELSE.
            READ TABLE IT_MARM INTO WA_MARM1 WITH KEY MATNR = TP_DATA-MATNR MEINH = TP_DATA-KMEIN.
    *           READ TABLE IT_MARM INTO WA_MARM2 WITH KEY MATNR = TP_DATA-MATNR MEINH = 'BAG'.
            TP_DATA-KHETR = TP_DATA-KHETR * WA_MARM1-UMREN / WA_MARM1-UMREZ.
    *           * WA_MARM2-UMREZ / WA_MARM2-UMREN.
            TP_DATA-KBETR = TP_DATA-KHETR / '1.17'.
          ENDIF.
        ELSEIF TP_DATA-KSCHL = 'ZPRC' OR TP_DATA-KSCHL = 'ZPRD'.
    *       TP_DATA-MEINH = 'ZI'.
          IF TP_DATA-KMEIN = 'ZI'.
            TP_DATA-KHETR = TP_DATA-KBETR * '1.17'.
          ELSE.
            READ TABLE IT_MARM INTO WA_MARM1 WITH KEY MATNR = TP_DATA-MATNR MEINH = TP_DATA-KMEIN.
    *           READ TABLE IT_MARM INTO WA_MARM2 WITH KEY MATNR = TP_DATA-MATNR MEINH = 'WZI'.
            TP_DATA-KBETR = TP_DATA-KBETR * WA_MARM1-UMREN / WA_MARM1-UMREZ.
    *           * WA_MARM2-UMREZ / WA_MARM2-UMREN.
            TP_DATA-KHETR = TP_DATA-KBETR * '1.17'.
          ENDIF.
        ELSEIF TP_DATA-KSCHL = 'ZPR3'.
    *      TP_DATA-KSCHL = 'B2'.
          IF TP_DATA-KMEIN = 'ZI'.
            TP_DATA-KBETR = TP_DATA-KHETR / '1.17'.
          ELSE.
            READ TABLE IT_MARM INTO WA_MARM1 WITH KEY MATNR = TP_DATA-MATNR MEINH = TP_DATA-KMEIN.
    *           READ TABLE IT_MARM INTO WA_MARM2 WITH KEY MATNR = TP_DATA-MATNR MEINH = 'BAG'.
            TP_DATA-KHETR = TP_DATA-KHETR * WA_MARM1-UMREN / WA_MARM1-UMREZ.
    *           * WA_MARM2-UMREZ / WA_MARM2-UMREN.
            TP_DATA-KBETR = TP_DATA-KHETR / '1.17'.
          ENDIF.
        ENDIF.
        TP_DATA-MEINH = '01'.
        MODIFY TP_DATA.
    E_T_DATA-MATNR =   TP_DATA-MATNR.
    E_T_DATA-KSCHL =   TP_DATA-KSCHL.
    E_T_DATA-KHETR =   TP_DATA-KHETR.
    E_T_DATA-KBETR =   TP_DATA-KBETR.
    E_T_DATA-KMEIN =   TP_DATA-KMEIN.
    E_T_DATA-DATAB =   TP_DATA-DATAB.
    E_T_DATA-DATBI =   TP_DATA-DATBI.
    APPEND E_T_DATA.
        CLEAR WA_MARM1.
        CLEAR WA_MARM2.
      ENDLOOP.
    Edited by: Shen Peng on Oct 20, 2010 10:09 AM

  • Function Module to Fetch data of Vendor for Inbound Delivery at runtime

    Hi All,
    I am new to EWM. I am using BADI /SCWM/EX_DLV_DET_PROCTYPE method CHANGE_PROCTYPE to change process type of the inbound delivery as per some logic from a custom table. However the parameter Vendor is not available in IS_ITEM during inbound delivery creation. Vendor is one of the key fields in my table.
    Does anyone know any solution/function modules to fetch vendor data for the inbound delivery at runtime. I know the database tables to fetch vendor but this works only once the inbound delivery is saved.
    Thanks and Regards,
      Vanessa Noronha

    Hi All,
    I am new to EWM. I am using BADI /SCWM/EX_DLV_DET_PROCTYPE method CHANGE_PROCTYPE to change process type of the inbound delivery as per some logic from a custom table. However the parameter Vendor is not available in IS_ITEM during inbound delivery creation. Vendor is one of the key fields in my table.
    Does anyone know any solution/function modules to fetch vendor data for the inbound delivery at runtime. I know the database tables to fetch vendor but this works only once the inbound delivery is saved.
    Thanks and Regards,
      Vanessa Noronha

  • Function module to fetch SOBID field value from hrp1001 table

    Hi,
    Is there any function module, to fetch the value of the SOBID field from hrp1001 table by passing RSIGN,RELAT,OTYPE,SCLAS field values to that function module.
    Regards,
    Shalini.

    Hi Sikindar,
    I am not able to find these function modules.I am getting message as function module not found.Please let me know is there any other function module.
    Thanks,
    Shalini.

  • Reg: function module to fetch the overall taxs for  a sales order

    Hi Experts,
    I need a fuction module which fetches all the taxes for a sales order with the tax values.
    (i.e) i need a function module with displays the overall tax values and not line itemwise..
    Regards,
    Vikram.S

    Hi,
    Check if it works
    POS_SALES_DOCUMENT_HEAD_TAXES

  • Need SMD function module for business partner in SRM

    Hi Gurus,
    I am looking for standard Master Idoc create SMD function module for business partner in SRM.
    I need to send an Idoc from SRM to ECC based on change pointers i.e. whenever a business partner is changed in SRM. So there are standard function modules *smd* available for other data but i am not able to find any FM for busienss partner.
    Please suggest if anyone has came accross such scenario.
    Thanks,
    Ravindra

    Got it

  • RFC enabled FM to fetch partner details of vendor from ECC system

    Hi All,
    I am working on an enhancement in SRM system.the requirement is as follows.
    1.In the current SRM application, the invoicing party partner function does not exist.Because of this, the invoicing party cannot be populated on any external purchasing documents such as RFQ, PO, RO, contracts.
    2.This functionality exists in ECC. In ECC, the user can enter an invoicing party on a vendor master record.The invoicing party functionality will be deployed to SRM so that external purchasing documents are populated with the correct invoicing party.There is a standard vendor replication program for this...
    To accomplish the above said functionality, I have planned to do like this in SRM system....
    1.There is a BADI "BBP_DOC_CHANGE_BADI" with a method "BBP_PO_CHANGE ". This will get triggered when a PO is getting created or changed.
    2.In that there is a table called IT_PARTNERS which will have all the partner details in it.
    3.I will take the partner (vendor number i.e.,partner function is 0000019) and pass that value to an RFC enabled function module which will fetch the invoicing party from ECC system.
    4.Later that Invoicing party number is appended to the IT_PARTNERS so that it will be populated on any external purchasing documents.
    Here I want to know whether any standard RFC enabled function module which fetches the invoice party details from ECC system.
    Awaiting your answers...
    Thanks,
    Ravee..

    Hi. Just use function RFC_READ_TABLE and table WYT3.
    Regards,
    Dave.

  • Standard funtion module to fetch IDOC in xml format

    Hi Experts
    I am not from ABAP background, am working in SAP PI. I have a queay regarding standard function modules in ABAP.
    I am wrote a java code to fetch IDOC by making a call to the ABAP standard functions. (passing an idoc number and fetching the idoc)
    The IDOC that i am receiving is in Flat format, but I want to fetch the IDOC in XML format.
    Is there any Standard fucntion module to fetch the IDOC in xml format?
    regards,
    Osman Abdul Aziz Jabri

    hai ,
                      in SE37 tcode
                      Check with IDOCTOXML u get FM 's
                                                 use sutable ur requirement.
    Moderator message: please do not use SMS speak in these forums.
    Edited by: Thomas Zloch on Jan 5, 2011 6:03 PM

  • Functiom module to fetch MSEG data

    Hi all,
    can any one provide me the function module to fetch data from MSEG by passing
    1) MBLNR
    2) MJAHR
    3) MATNR
    i want the data of selected materials only

    Check out VELO04_READ_MSEG FM also find for the below related thread
    FM to read data from MSEG table

  • Addition of sub-screen for Functional Location / Equipment / Notification

    Hi All,
    Can any one help me on Addition of sub-screen based on config in new tab or sub-screen for objects for Functional Location / Equipment / Notification / Notification Item / Work OrderWork Order Operation.
    If you are designed the above requirement by using ABAP objects please send sample code for the same.
    I am not bothering about addtional fields which you created in your program.
    Thanks a lot.
    -Kalluri

    Thenna,
    QMIH-ILOAN -> ILOA-ILOAN
    ILOA-TPLNR -> IFLOT-TPLNR
    PeteA
    [www.pjas.com]

  • Can we create new partner types for quallity notifications in SAP system?

    Can we create new partner types for quallity notifications in SAP system?
    The business requirement is to limit the available entries for partners  displayed when they search in quality notification. I have already created new partner functions & assigned the relevant partner types, however struggling with defining new partner types.
    Would appreciate help in resolving this.
    Thanks,
    Nilesh

    I know this customisation setting ...It allows us to create the partner functions & assign it to the partner determination procedure.
    Then you can assign the procedure to the notification type.
    This customisation setting does not solve the problem I have.
    I'm looking for the partner type creation process which we assign to the partner function.
    Edited by: NILESH BHAVE on Aug 12, 2010 3:06 PM

  • Err while confrm  Business partner  does not exist (Notification E R1 201)

    I am for the first time into CRM serv implementation.I have 2 issues. Please provide your valuable suggestions at the earliest.
    I raised a serv order, released items, confirmed it and changed the status to complete. now when i try to raise an invoice, in billing due list, serv order num is showin up but not confirmation number. Billing relevance in item category for
    service item in Serv order ---> Order related billing acc to order quantity
    confirmation item category--> Transaction related billing after completion.
    The reason i expect is that i have used a crm employee as employee responsible as HR is not yet in place. At the time of confirmation and data transfer to r/3 system is throwing a message that BP doesnot exist. Long text is as follows
    "Business partner  does not exist (Notification E R1 201)"
    I am unable to trace out which BP is it unable to find. The Sold to i am using is on the other hand available in R/3.
    1) Is service confirmation incomplete and hence is not appearing in Billing due list or is there any other reason?
    2) How can i analyse which BP number is not avilable. i.e.. how can i check the contents of bdoc system is sending and because of which value of BP is the transfer getting stopped
    Regards,
    Kiran

    Hi
    The link is not working.
    The contents of the message is as follows
    follow all the following steps
    Setting up Transfer of Employee (HR Master) from R/3 to CRM
    1. Logical system XXX assigned to R/3 client XXX. Logical system YYY assigned to CRM client YYY – view through SCC4
    2. Create RFC Destination YYY for CRM client YYY in R/3 and
    Server ID with user details and client YYY.
    3. Transaction code SALE : Application Link Enabling (ALE) &#61664; Modelling and Implementing Business Processes &#61664; Maintain Distribution Model and Distribute Views. (Direct transaction code : BD64)
    Go to change mode and select ‘Create Model view’.
    You get a popup. Fill in the details – Technical name, short text and validity
    Select ‘Add message type’ from the application tool bar.
    Fill in the following details
    Model view : HRCRM
    Sender logical system : XXX
    Receiver logical system : YYY
    Message type : HRMD_ABA
    Note : Only this message type works for employee transfer.
    4.Save the model. From the same screen select the distribution model and from the menu Environment &#61664; Generate partner profiles
    Don’t change anything in the next screen. Simply Execute.
    4.Distribute the distribution model HRCRM
    Select the distribution model. From the menu bar, Edit &#61664; Model View &#61664; Distribute
    You get a dialog showing the receiver logical system. Execute.
    You get a log ‘Model view HRCRM has been created in target system YYY
    5.Go to the CRM system and check up whether this model has been created.
    Transaction code BD64
    The model has got copied. No changes can be made in CRM
    6. Generate partner profiles for the distribution model in CRM by selecting
    Environment &#61664; Generate partner profiles.
    In the next screen, do not make any changes and Execute.
    Partner profiles can be seen in transaction WE20
    Delta Download Settings
    7. So far, the above settings will ensure the initial download. However for any changes / new employees to be transferred, i.e delta changes, changes pointers need to be activated.
    In R/3, Transaction code SALE, Application Link Enabling (ALE) &#61664; Modelling and Implementing Business Processes &#61664; Master Data Distribution &#61664; Replication of Modified Data &#61664; Activate Change Pointers – Generally (BD61)
    This activates change pointers globally for all message types.
    8. In R/3, Transaction code SALE, Application Link Enabling (ALE) &#61664; Modelling and Implementing Business Processes &#61664; Master Data Distribution &#61664; Replication of Modified Data &#61664; Activate Change Pointers for Message Types
    Activate change pointer for message type HRMD_ABA
    9. CRM : Number Assignments. Generally, there are 3 types of number assignments (also called switches) when business partners are created.
    1 – The system uses the number from the general internal interval of the number
    range object BU_PARTNER
    2 – The system uses the number from a specific internal interval of the object
    3 – The number is transferred from HR and a prefix is added. In this case, a specific external interval, which must be defined as XX00000000 (upto
    XX99999999), is used (where XX denotes any two letters).
    The number range object for all switch positions is BU_PARTNER, with the interval depending on the switch value.
    For switch value 1, the system uses the internal standard interval, otherwise for switch values 2 and 3 you must also create a grouping (transaction BUC2) for these intervals. For the system to be able to connect the grouping and the number range interval, the name of the grouping must be exactly the same as the name of the corresponding number range interval (the name of the grouping is contained in the first column of the table). If you select 3 (HRALX/PNUMB = 3) for the number assignment of busienss partners of the employee role, create HRALX/PSUBG switch manually in table T77S0.
    In table T77S0, HRALX/ONUMB is used to set the number assignment for organizational units and HRALX/PNUMB is used to set the number assignment for employees.
    Create a number range ZZ
    Transaction code BUC2. Create a grouping of the same ID as that of the number range. Eg. Number range ID : ZZ and grouping ID should also be ZZ
    In table T77S0, maintain the following combinations
    HRALX-PNUMB = 2
    HRALX-PSUBG = ZZ
    10. Make the following customizing changes in CRM
    Transaction code SM30 : Table T77S0
    Group Sem Abbr Value Abbr
    HRALX HRAC X Activate HR Integration with CRM
    HRALX OBPON ON Activate integration between Business partners and Org Units
    HRALX PBPON ON Integration between business partners and employees
    HRALX OPROL BUP004 Role definition for org unit – Business partner
    HRALX PPROL BUP003 Role definition for Employee – Business partner
    HRALX ONUMB 1 Number range assignment for org units
    HRALX PNUMB 2 Number range assignment for Employees
    HRALX PSUBG ZZ Number range grouping only if PNUMB is not 1.
    11. Create Employee Master in R/3. Employee master consists of Infotypes. The mandatory infotypes are Actions, Address, Personal data and Organizational Assignment. You can ignore the remaining. Click on next and dont save the other infotypes.
    Transaction code : PA30
    12. In R/3 Initial Download : SE38 – RHALEINI
    Plan version : 01
    Object type : P – Person (always)
    Object ID : Employee ID eg. 1
    Receiver Partner no. : YYY
    Select further details
    You get all the data transfer details
    13. In CRM, transaction code PP01 – View HR Master objects
    You see that the employee 1 has got transferred. To see the corresponding business partner go to the infotype Relationships (the first row)
    Screen 2 gives you the business partner ID in CRM
    Regards
    Rekha Dadwal

  • Need a function module for fetching description of fields in a table

    Hi experts,
    I have a requirement where i need to fetch the descriptions of all the fields of a given database table.
    I am looking for a function module that gives the descriptions of a field. Please suggest a way.
    Points will be rewarded.
    Thanks in advance.

    Use FM DDIF_FIELDINFO_GET to get information about a field. Pass table name and Fieldname.
    Use FM DDIF_FIELDLABEL_GET if you need only the field label.
    Use FM DDIF_TABL_GET for getting information of all fields of a particular table.
    Regards,
    Lakshmi.
    Edited by: Santhanalakshmi V on Jun 11, 2008 5:26 PM

  • Function module to fetch account details

    Hi Experts,
    Is there any function module to get the account details for the given account name(name_org1) as input
    Thanks,
    Saru

    Hi,
    Can you check if this fits your requirement - BAPI_BUPA_CENTRAL_GETLIST.
    The obligatory input is Business Partner Number.
    Hope this helps.
    Thanks,
    Samantak.

Maybe you are looking for