Update infotype from user exit

Hi,
My requirement is to update a infotype from a user exit. I have a internal table with some records created in the user exit pbas0001. Now i need to update these records in the infotype 2001(absences). I tried using HR
INFOTYPEOPERATIONS directly from the user exit and it didn't work. If i create a include program and create a subroutine within the include program and call it in the user exit still i am getting a error message. How can update the infotype from the user exit.
Can someone send the example code for how to export the internal table from the user exit and import it in another program and update the infotype from that prgm.

Put the entire code in another Report & SUBMIT that report from the User exit.. this will isolate the two work processes & the Z table should get updated..
~Suresh

Similar Messages

  • Table for Valuation Price from USER EXIT - Cost Estimation

    Hi All,
    Can you let us know from where the system picks the price for VALUATION PRICE from USER EXIT when we have following setting in valuation variant
    1.Valuation Price from USER EXIT
    2.Price from Purchasing Info Records
    3. Planned Price 1
    Sub Stratergy.
    1.Effective Price from Purchase Order
    2. Net Quotation Price
    3. Gross Quotation Price.
    Now when we execute CK11N for a material, the system displays a cost price as 316 Euro/ unit.
    But Standard price is 290 euros, info record price is 294 euros & planned price 304 euros.
    Our previous cost estimation ( period 1, current period is 5) was 316 euro/unit (which was not correct), so deleted the cost estimation with CKR1 and try to rerun the cost estimation to update the value (new price), but still the system is picking the old price.
    Can you let us know from where does(transaction code & table) the system is picking the old values.
    In CK11N Material valuation (Valuation tab) its showing as Valuation Price from USER EXIT.
    We have activated Material Ledger with price control "s"and we in ECC 6.0.
    Do suggest.

    Hi,
    Where & how can i find the exit.
    Do suggest.
    Regards,

  • Client proxy from user exit

    I am invoking a client proxy from user exit (user exit is invoked in update task). Is there any red flags I need to be aware of.
    Proxy takes a while to execute and till that time, My original document does not get updated.

    Hi Kris,
    If it gives u Timeout error then only data will not be posted and it will  be an issue.
    If data posted from proxy then check in SXMB_MONI in Ecc side.
    Regards,
    Phani

  • Sending mail to external mailid from user exit EXIT_SAPLEBNF_005

    Hai ALL,
    iam facing problem with sending mail to external id from user exit exit_saplebnf_005 , this user exit for ROLE Determination of releasing of PO .
    in this user exit i passed a user name for this role from one z table.
    through workflow the mails are send to workplace of resposible person maintained in ztable.
    now user requirement is they want some intimation in their outlook for they got mail in workplace .
    can anybody help me.
    Thanks .
    sushmita.k

    they can either define automatic forwarding in their SAP office to external e-mail OR they can set their external e-mail as preferred method of communication and they should receive mail to their external mailbox assuming that sending to external mail is supported in your system (check with BASIS folks).

  • How does the production system take the benefit from user-exits.

    How does the production system take the benefit from user-exits.

    and it is not the production system that benefits. its the company and the people working with SAP that benefits from the user exits which allow SAP to be altered for the company specific situations.

  • IDoc from User Exit

    Hi,
    Can you please give some idea or some useful links for information on generating IDocs from User Exits.
    For example, while creating a Sales Order I need to trigger an IDoc with the document number, plant, partner functions, and netvalue to the PI system. Please give some inputs for the same.
    Regards,
    Renjith

    Make the settings for IDoc processing (partner profiles, ports, destination, etc) fill the IDoc structure and call function module master_idoc_distribute  
    Also have a look at documentation:
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/78/21783151ce11d189570000e829fbbd/frameset.htm

  • How to call custom screen from User exit?

    Hai,
    I have to call a custom screen from user exit include after the delivery save.
    Depends on the data in the delivery,
    if the data satisfies certain conditions I will call the screen otherwise no.
    Could any one please tell me how to do this?where to create screen & how to link it here?
    Regards,
    Bhaskar.

    Hi,
    Please check with the following Enhancements -
    V50PSTAT  - Delivery: Item Status Calculation 
    V50Q0001   - Delivery Monitor: User Exits for Filling Display Fields
    Rewards if it helps
    Regard
    Goutham

  • Update vbup/vbuk from user-exit for sales document

    Dear All.
    Is it possible to update the sales document status for an item (vbup) from a user exit , customer function, badi, or other, in the billing document?
    We'd like to make the control of updating the status tables dynamic, rather than based on the confiuration for an exception process.
    For example, when service item (order related billing) is partially billed, depending on some conditions we would set the sales order service item to fully invoiced. 
    In this case vbup-FKSAA = C.
    Many thanks!

    There is a BAdI LE_SHP_ITEM_STATUS that can change the item status in VBUP. Be sure to read the documentation first. It states
    If you use this BAdI to change the delivery item status that was set in delivery
    processing, it can affect further processing of the delivery extensively, and
    lead to data inconsistencies. Therefore, SAP recommends that you only use
    the BAdI to modify your own status fields.
    Regards,
    Brenda

  • Inbound idoc values when updated from user exit not saved

    I'm trying to process some user exits of an inbound idoc from WE19.
    The values get correctly populated to IDOC_DATA internal tables of IDOC_INPUT_ORDRSP function module in debug kode
    but when the new idoc is generated from WE19 , those segment values (populated by exit) are not shown/saved.
    The user exit is EXIT_SAPLEINM_007.
    Is it not possible to populate segment values of inbound idocs from using user exits. If yes , then during testing using WE19 , every time a new idoc is created it should display those values into the concerned segments. Please help.

    Hello,
    yes is possible it ...
    I think the problem is:
    or
    you have something wrong when to append the new line on internal table
    or
    the exit used is not correct: read the documentation on EXIT_SAPLEINM_0**

  • Update task in user exit

    Hi all,
    I am maintaining a Z-table for storing the logs of deleted entries for some infotypes such as 0002,0021,0022,0023 etc
    i wrote a function module in update mode and called it in the user exit for PA30(PBAS0001)-PAI part.
    I am facing problem while calling this fun. module in update task.
    can anybody help me out??
    regards,
    Deepak

    Put the entire code in another Report & SUBMIT that report from the User exit.. this will isolate the two work processes & the Z table should get updated..
    ~Suresh

  • Infotype 0008 - User Exit Validation

    Hi Gurus,
    I have to validate infotype 0008 amount fields  in PAI user exit ZXPADU02 .
    For a scenario, if the amounts are not equal  ( BET01 <> BET02) then  I have to geneate error message.
    Then the user is supposed to correct / re-enter  the amounts .
    The problem is , when I generate error message , the amount fields are grayed out.
    I think this is happeneing cause of standard SAP code (  in flow logic for program MP000800  ) .
    Is there any way to generate error message in the user exit and
    Give the users an option to update the amount correctly ??
    Core mod is the last option.
    Appreciate your inputs .
    Thanks

    I solved this problem with:
    if BET01 <> BET02.
            message 'tekst' type 'S'.
            LEAVE SCREEN.
    endif.

  • Infotype 0416 User exit

    Hi,
    I am using PA30 with infotype 416. While displaying, I am getting two radio buttons namely  - Automatic and manual compensation. But while creating, i do not see this two radio buttons.
    Is there any user exit which can be used to remove / make invisible the radio buttons while displaying?
    Regards,
    Naba.
    Edited by: Naba Kumar Saha on Jul 14, 2009 2:30 PM

    Hi
    I am following code
    WHEN '0416'.
    CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
          EXPORTING
            prelp = innnn
          IMPORTING
            pnnnn = i0416.
         i0416-wgtyp = '5004'.
    I moved the value wgtyp field, but the screen field not updated.
    regards

  • Infotype 0102 - user exit EXIT_SAPFP50M_002

    Hi all,
    I have  a requirement where i have to put a check on infotype 0102 - greivence NA through user exit  EXIT_SAPFP50M_002 .
    The check is  that if the user enters a personnel number , grievence number and a stage for which the record alreday exist in the table for the same personnel number , then system should pp up an error message.
    I wrote the below code in EXIT_SAPFP50M_002 :-
    data : i0102 like p0102 occurs 3 with header line,
    begin of fs2,
    pernr like p0102-pernr, grnum like p0102-grnum, grstg like p0102-grstg,
    end of fs2.
    CASE INNNN-INFTY.
    WHEN '0102'.
    MOVE INNNN TO I0102.
    LOOP AT SCREEN.
    SELECT PERNR GRNUM GRSTG FROM PA0102 INTO corresponding fields of fs2 WHERE PERNR = I0102-PERNR.
    IF fs2-GRNUM = I0102-GRNUM ANd fs2-GRSTG = I0102-GRSTG.
    MESSAGE 'A record already exist for selected combination of Grievence Number and Stage' type 'e'.
    endif.
    ENDLOOP.
    ENDCASE.
    Here system is throwing an error as " i0102 and innnn are not mutually convertible".
    Please advice me where i am wrong. Its urgent!
    Thanks & Reagrds,
    Preeti

    Hi Preeti,
    The method call replaces the move statement so you do not need the line
    MOVE INNNN TO I0102.
    Also make sure that I0102 is declared as a structure rather than an internal table.
    The code should be something like:
    data: I0102 type p0102,     "Structure NOT itab
            lv_pa0102 type pa0102.
    WHEN '0102'.
    call method cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
    exporting
    prelp = innnn
    importing
    pnnnn = i0102.
    *******MOVE INNNN TO I0102.    "<<<<DELETE THIS LINE>>>
    SELECT SINGLE PERNR GRNUM GRSTG
        FROM PA0102 into LV_PA0102
        WHERE PERNR = I0102-PERNR.
    IF LV_PA0102-GRNUM = I0102-GRNUM AND
        LV_PA0102-GRSTG = I0102-GRSTG.
    MESSAGE 'A record already exist for selected combination of Grievence Number and Stage' type 'e'.
    endif.
    Cheers,
    Darren

  • Vendor name should be updated in F110 (User exit by substituion)

    Hello all,
    I am  doing payments for RTGS/NEFT through F110, BSEG-SGTXT should be filled with vendor name.
    I tried this by substitution at acll up point 2 in OBBH by using User Exit. In user Exit we have written coading as Take BSEG-LIFNR where Account Type = K, go to LFA1 where BSEG-LIFNR=LFA1-LIFNR, Pick NAME1 for that LIFNR, & print that NAME1 in BSEG-SGTXT.
    Now problem is, substitution is trigring but it is substituting BSEG-SGTXT by LFA1-NAME1 only for 1st line where account type = K (i.e Vendor Line item). System is not printing same NAME1 to the corresponding line item (i.e Bank Line item).
    We want NAME1 at Bank Line.. Problem F110 runs at background, due to which we are not able to set any breakpoints & not able to do debuging also.
    Regards,
    Sagar

    Here is what you can do..
    In line item only one line will have vendor line item which will contain vendor number...In substituion it processes line by line...So for second line you need to store the vendor number of first line may be by import/export and than update second line... ?You can also process this in foreground by not doing the payment run in F110 and porcess it individually via the program.
    Thanks
    Nabheet

  • Passing data from user exit to workflow.

    HI,
    Please consider the below scenario.
    In the user exit 'MV50AFZ1' I have created an include in the form 'USEREXIT_SAVE_DOCUMENT_PREPARE.'.
    In this include based on some certain conditions a workflow is triggered.
    I am using the function module 'SWE_EVENT_CREATE' to trigger the workflow.
    Now the requirement is to pass some data from this user exit ('USEREXIT_SAVE_DOCUMENT_PREPARE') into the workflow.
    Could someone please explain me how to pass this data from the user exit into the workflow ?
    Thanks in advance.
    With regards
    Abhishek

    Hello everybody,
    Thanks a lot for your responses.
    I am using the fuction module 'SAP_WAPI_CREATE_EVENT' to trigger the workflow, I am also able to pass the delivery number through the paramater 'OBJECT_KEY' of the function module in to the workflow container.
    But I am unable to pass the line item number and the material number into the workflow.
    I am following the below process:
    I have defined a stucture ZST_DELIVERY containing the POSNR and MATNR in the data dictionnary.
    I have pouplated the internal table of this structure inside my user exit.
    Then I m passing the values of the above internal table into another internal table - 'Container''which is of structure type 'SWR_CONT'.
    And I am passing the internal table 'Container' into the paramater 'INPUT_CONTAINER' of the function module 'SAP_WAPI_CREATE_EVENT'.
    And in the workflow I have created a container 'ST_DELIVERY' which is of the structure ZST_DELIVERY and I have made it 'import', 'export.'
    And in my business object ZLIKP in the custom event CheckPrice I have defined a paramater 'ST_DELIVERY' of the structure  ZST_DELIVERY and I have made it multiline.
    And in I have binded my workflow container 'ST_DELIVERY' and the ZLIKP paramater with the same name.
    Please do let me know if the above steps that I have followed is correct.
    Please do let me know if any further information is required.
    Thanks in advance,
    ~Regards
    Abhishek

Maybe you are looking for

  • Wacom tablet pressure sensitivity, dont work outside canvas

    Hi. I wonder, if i'm the only one, who are having problems to start a stroke outside the canvas and follow it on the canvas, without the pressure sensitivity is all on max. seems the same is happing, if you have marked an area and start at stroke out

  • Wlan cracks when mac mini is running

    my wlan does not work anymore when the mac mini in the network is running. as soon as i turn the mac mini off, the network works perfectly. this issue came up suddenly, before that the exactly same network-configuration worked without any problems fo

  • Creating quotation from purchase order

    Can any one tell me how to create SD quotation from the purchase order using the IDOC?

  • Can i transfer whole albums to playlist for synching to iPad

    I have many classical music CDs that I have loaded to iTunes.  I want to move them to iPad.  I have worked out how to create a playlist and sycn it (not easy!) but its very long wonded to trasnfer 30 separate tracks for one opera and to keep them tog

  • Associate a File Type with a JAR

    How do I get XP to associate a file type with a JAR application? Since the extension on the application is JAR, I get a message from XP that I can't associate with it since it is not exe.