User Exit is required to populate PO type in IDOC

Hi,
My requirement is:
DELVRY03 Idoc presently doesn't carry any field in which we can store a purchase order.
here i need to extend the idoc with a new segment with PO type as field and sales order number field.
I need to get Purchase document type field(BSART). from EKKO table ,
here i need to retrieve the PO number from the line item reference field LIPS-VGBEL., based on the PO number i need to get the EKKO-BSART.
in which exit i need to write the logic for this.
Pls help me on this ASAP.
Thanks,
Satish

Hi
Go to the related Function module for this IDOC type/Message Type/PROCESS CODE which you are using for this purpose
then in that Fun module search for the CUSTOMER-FUNCTION's which are nothing but the user exits where we write code to populate the custom segments and other values.
search for the relavent FUNCTION and write the above code.
Regards
Anji

Similar Messages

  • User exit Used while defining the storage type

    Hi all,
      Can anybody tell me about the user exit Used while defining the storage type.
    or what is the user exit name?
    i want to define my own strategy.
    i.e combine manual sut entry with strategy 'k'

    HI all I Got the Exit     MWMTO003.
    Now  ,
    Following Logic is to be built. (Storage type strategy is K for putaway.)
    u201CManually selection of SUTu201D while Putaway , For Strg -K SUT selection is
    system guided.
    Which componant is required for this. Pls guide.
    Is the above requirement is possible?
    Edited by: dev .. on Feb 19, 2009 1:58 PM

  • How user exit is used to populate the Profit center field in  Sales order?

    Hi All,
    Please let me know :
    How the user exit is used to populate the Profit center field in the Sales order?
    Please gurus answer as quickly as possible as I require this urgently.

    Hi,
    To derive the correct profit center in the Sales Order, you customize in 0KEM.
    Trust this helps much and do encourage our efforts!
    Cheers!

  • User exit/BADI  required for coding for the selection custom fields in RSA3

    Hi,
       I have a requirement  in the Datasource extractor. I need to add custom Z fields  in the Data souce of the  2LIS_02_SCL and need to include in the selection part. So I have added the custom filed in the append structure and include the check in the selection checkbox in the transaction LBWE  under the datasource specified above. For the corresponding custom fields, to be populated in the ALV list, I have written the code in corresponding user exit  ZXRSAU01.
    Now I can view my custom Z fields in the list as well as on the selection fileds  while executing the transaction RSA3. But I need to write code for the selection criteria part.  On entering value in the selection criteria of my custom z field, no  values are selected to the corresponding query. Please let me know where should i write the coding part for the selection criteria of the Z fields for the Datasource.
    On debugging, to my understanding only  the standard fields are alone getting filtered by providnig the values in the selection part of the RSA3 tcode. It is called in Macros : Sel  < Datasorce> .... and  the fetch cursor is included inside the macros.
    Please let me know any user exits or Badi;s available for it.
    Thanks in advance

    Hi shivu,
    you might try the BAdI RSU5_SAPI_BADI. A good introduction can be found in the following document:
    [Enhancing DataSources with BAdI RSU5_SAPI_BADI|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/3001894b-b1fb-2910-77ba-e80b6f2053b7]
    The BAdI is called at the time of extraction, so this would be the right place to populate your additional fields.
    Best,
    Chris

  • User Exit for CO11N to populate the Ref Order in Prod Order when Rework Ord

    HI All,
    I created a Production Order(100023) using TCode CO01 with 10 Qty.
    When i am creating a Production Order confirmation using TCode CO11N, i Confirmed 9 Qty and 1 Qty for Rework Order, it is confirming the 9Qty and creating a new Production Order (100024) for 1Qty.
    As per the requirement it is working fine. While system creating a Production Order (100024) for the Rework Qty, i need to populate the Reference Production Order number (100023) in the field Ref. Order in Control Data tab in the Production Order.
    Can any one suggest me how to populate this field? Is this possible by any USER EXIT or BADI ?
    Or Can we do it by configuration?
    Regards,

    Hey all: I already have solved it. This was solved using a batch input application: before is launched the MIGO transaction, we print the smartorm using ME38 transaction with SHDB.

  • User exit code required for manadatory variable

    we have vendor in rows  and sales in columns, the requirement is there is a mandatory  variable for retrieving the sales between months, that is if
    customer gives calmonth january as <b>from</b> and march as<b> to</b> the sales should be from Jan to March, if the customer only gives <b>from</b> month and nothing for<b> to</b> month, only <b>from</b> month should be calculated, if the customer gives only<b> to</b> month and no <b>from</b> month, the <b>to</b> month should be calculated. Remember the variable is mandatory.

    Hi,
    Let s say
    var1 is from varaible
    var2 is to variable
    var3 is user exit variable
    USe the code like this:
    DATA:
    l_s_range TYPE rsr_s_rangesid,
    l_s_var TYPE rrs0_s_var_range.
    DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
    DATA: LOC_VAR_RANGE2 LIKE RRRANGEEXIT.
    WHEN 'VAR3'.
        IF I_STEP = 2.
          LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
            WHERE VNAM = 'VAR1'.
          LOOP AT I_T_VAR_RANGE2 INTO LOC_VAR_RANGE
            WHERE VNAM = 'VAR2'.
            CLEAR L_S_RANGE.
            L_S_RANGE-LOW = LOC_VAR_RANGE-LOW(8).
            L_S_RANGE-HIGH = LOC_VAR_RANGE2-LOW(8).
    IF LOC_VAR_RANGE2(8) = '00000000'.
            L_S_RANGE-HIGH = LOC_VAR_RANGE-LOW(8).
    ENDIF.
    IF LOC_VAR_RANGE(8) = '00000000'.
            L_S_RANGE-LOW = LOC_VAR_RANGE2-LOW(8).
    ENDIF.
            L_S_RANGE-SIGN = 'I'.
            L_S_RANGE-OPT  = 'BT'.
            APPEND L_S_RANGE TO E_T_RANGE.
          EXIT.
          ENDLOOP.
          EXIT.
          ENDLOOP.
        ENDIF.
    With rgds,
    Anil Kumar Sharma .P

  • Hi user exit code required

    hi all,
          i have one requirement i.e when ever we give tcode xd06 or xd02 if customerno is there it wont accept the same customer again if customer is not there it has to insert the customer into the table. i require code for this requirement i need to write this in include called ZXF04U01and function module name is EXIT_SAPMF02D_001.
    Write below custom code inside the user exit to capture CRSID information in reverse mapping input table ZW2CTREV_MAP to trigger reverse mapping.
    Declare a work area WA_ZW2CTREVMAP of type ZW2CTREV_MAP.
    Assign values from I_KNA1 to work area WA_ZW2CTREVMAP.
    MODIFY TABLE ZW2CTREV_MAP FROM WA_ZW2CTREVMAP.
    above i have shown procedure for code.  send me the actual code what i have to write in include to check customer and insert customer pls reply as early as possible.
    regards
    sagar

    Hi,
    Let s say
    var1 is from varaible
    var2 is to variable
    var3 is user exit variable
    USe the code like this:
    DATA:
    l_s_range TYPE rsr_s_rangesid,
    l_s_var TYPE rrs0_s_var_range.
    DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
    DATA: LOC_VAR_RANGE2 LIKE RRRANGEEXIT.
    WHEN 'VAR3'.
        IF I_STEP = 2.
          LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
            WHERE VNAM = 'VAR1'.
          LOOP AT I_T_VAR_RANGE2 INTO LOC_VAR_RANGE
            WHERE VNAM = 'VAR2'.
            CLEAR L_S_RANGE.
            L_S_RANGE-LOW = LOC_VAR_RANGE-LOW(8).
            L_S_RANGE-HIGH = LOC_VAR_RANGE2-LOW(8).
    IF LOC_VAR_RANGE2(8) = '00000000'.
            L_S_RANGE-HIGH = LOC_VAR_RANGE-LOW(8).
    ENDIF.
    IF LOC_VAR_RANGE(8) = '00000000'.
            L_S_RANGE-LOW = LOC_VAR_RANGE2-LOW(8).
    ENDIF.
            L_S_RANGE-SIGN = 'I'.
            L_S_RANGE-OPT  = 'BT'.
            APPEND L_S_RANGE TO E_T_RANGE.
          EXIT.
          ENDLOOP.
          EXIT.
          ENDLOOP.
        ENDIF.
    With rgds,
    Anil Kumar Sharma .P

  • User exit / BADI to add the condition type in PO

    Hi Friends,
    The scenario is like user will be creating the Sales order & after that user will create the PR & immidiately after that PO will be created from PR no.
    I will be checking for some Z* condition type in sales order & if its present in sales order I have to add that condition type in PO.
    So for this I am searching for user exit or BADI.
    Please help me out with this.
    I have already tried following user exits & bADIs
    1. RV61AFZA - cant use because i dont get the PR no or SO no in this exit.
    2. RV61AFZB - cant use because i dont get the PR no or SO no in this exit.
    3. also tried the enhancement MM06E004 - if I add new condition type in XKOMV table condition type is not getting updated in PO.
    4. MM06E005 - if I add new condition type in XKOMV table condition type is not getting updated in PO.
    5. ME_PURCHDOC_POSTED - this BADI dont allow us to add the new condition type to std internal table.
    If you know anything apart from this then please do let me know.
    Full points will be awarded for the correct answer!!
    Best Regards,
    Aditya
    Edited by: aditya aghor on May 26, 2008 8:59 AM
    Edited by: aditya aghor on May 26, 2008 10:33 AM

    Transaction Code - MIRO                     Enter Invoice                                                                               
    Exit Name           Description                                                                               
    LMR1M001            User exits in Logistics Invoice Verification                   
    LMR1M002            Account grouping for GR/IR account maintenance                 
    LMR1M003            Number assignment in Logistics Invoice Verification            
    LMR1M004            Logistics Invoice Verification: item text for follow-on docs   
    LMR1M005            Logistics Inv. Verification: Release Parked Doc. for Posting   
    LMR1M006            Logistics Invoice Verification: Process XML Invoice            
    MRMH0001            Logistics Invoice Verification: ERS procedure                  
    MRMH0002            Logistics Invoice Verification: EDI inbound                    
    MRMH0003            Logistics Invoice Verification: Revaluation/RAP                
    MRMN0001            Message output and creation: Logistics Invoice Verification    
    kevin

  • User exit/BADI required to assign a pushbutton from transactionVA01 to IW51

    Hello experts,
    I have a requirement wherein the "Create Customer " pushbutton from VA01 Transaction has to be assigned to Tcode: IW51 .
    Our aim is to assign this "Create customer" button in IW51 screen instead of VA01 .
    Here are the details of the Module pool program.
    Standard SAP program: SAPMV45A
    Screen: 4701
    Button name: BT_IAAN
    Is there a standard User Exit/Function exit present for this?
    Please provide a reply at the earliest convenience.
    Thanks,
    Himanshu Limaye

    Himanshu Limaye,
    As far as I know you cannot add a button the the GUI menu without modifying the system..
    However there are user-exits available for menu Goto->Enhancements...
    Have a look [here|http://pjatkin.users.btopenworld.com/documents/PMCSUserExits.pdf] for the user-exits under the Notification section.
    Otherwise its back to the actionbox/QQMA0001 option described above
    PeteA

  • User exit name to validate the Trasactiopn type at t.code ABAON

    Hi,
    we need to validate the Posting date  and Transaction type at transaction code  ABAON (Enter Asset transactions).
    Please help me which user exit can we use to validate this?
    For T.code ABAON i checked the  packeage name as 'AA'
    based on the package, we found the  below User exit names. Which can i use out of the below.
    AAPM0001  Integration of asset accounting and plant maintenance
    AFAR0003  External changeover method
    AFAR0004  Determination of proportional values for retirement
    AINT0004  Change amount posted for certain areas
    AINT0005  Dummy for extended syntax check. Do not use.
    AISA0001  Assign Inventory Number
    AIST0001  Exchange number range in master data maintenance
    AIST0002  Customer fields in asset master
    AMSP0002  Determine relationship type for two company codes
    TRAN0001  User exit for asset transfer
    Please help us .
    Thanks in advance,
    Satya.

    Hi Satyanarayana,
    Why dont you try with Validations & Substitutions using GGB0.
    For more information on Validation & Sustitutions follow below link:
    Re: substitutions & validations
    Regards
    Abhii

  • User Exit for MIRA to default document type

    Is there any user exit in MIRA ,which can change the default document type .Because normally the document type is defaulted in the customization ,all the user exits which are available have the incoming structure (INVFO) in which the document type(INVFO-BLART) is coming as IMPORT parameter (e.g.  EXIT_SAPLFDCB_001),hence it cannot be changed .
    I would like to default the document type based on company codes .
    Please let me know if there is any other way of doing this.

    >
    Rahul Saxena wrote:
    > I have given the condition"BSEG-ZTERM = 'ZTST'" in Prerequisite, and in the Substitutions when I try to assign  constant value '02/16/2009' to the field Baseline Date, I don't see that Baseline date field in Substitute fields for Class '009'.
    >
    > How do I add Baseline date in that popup to select and assign values.
    >
    > Please suggest.
    >
    > Thanks-
    i think your date format and system date format is not suitable.
    give the date format as 20090216 as system format.

  • BADI/USER EXIT information required for CLWF

    hi
    i want to badi/user exit for CLWF,to change its rcords through the BAPI:BAPI_CLASS_CHANGE,i found one badi CACL_CHANGENO_NEEDED for my requiremnet,its working as desired only in TCODE,but when i want to change the record through the BAPI,its not executing.
    Can any one please help me ,how to process in this?
    regds
    vipin

    Hi,
    Let s say
    var1 is from varaible
    var2 is to variable
    var3 is user exit variable
    USe the code like this:
    DATA:
    l_s_range TYPE rsr_s_rangesid,
    l_s_var TYPE rrs0_s_var_range.
    DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
    DATA: LOC_VAR_RANGE2 LIKE RRRANGEEXIT.
    WHEN 'VAR3'.
        IF I_STEP = 2.
          LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
            WHERE VNAM = 'VAR1'.
          LOOP AT I_T_VAR_RANGE2 INTO LOC_VAR_RANGE
            WHERE VNAM = 'VAR2'.
            CLEAR L_S_RANGE.
            L_S_RANGE-LOW = LOC_VAR_RANGE-LOW(8).
            L_S_RANGE-HIGH = LOC_VAR_RANGE2-LOW(8).
    IF LOC_VAR_RANGE2(8) = '00000000'.
            L_S_RANGE-HIGH = LOC_VAR_RANGE-LOW(8).
    ENDIF.
    IF LOC_VAR_RANGE(8) = '00000000'.
            L_S_RANGE-LOW = LOC_VAR_RANGE2-LOW(8).
    ENDIF.
            L_S_RANGE-SIGN = 'I'.
            L_S_RANGE-OPT  = 'BT'.
            APPEND L_S_RANGE TO E_T_RANGE.
          EXIT.
          ENDLOOP.
          EXIT.
          ENDLOOP.
        ENDIF.
    With rgds,
    Anil Kumar Sharma .P

  • PA30 : IT2010 & IT 0015. User exit / BADI required to retrieve BETRG value

    good day to everyone,
    My objective its to retrieve Amount ( BETRG) value in PA30 --> IT2010 and PA30 --> IT0015 screen.
    I have tried using the User exits and Badi below. However, there are no structure to retrieve BETRG value when i am i at the IT2010 and IT0015 screen.
    -EXIT_SAPFP50M_001 in enhancement PBAS0001
    -badi HRPAD00INFTY
    Could anyone let me know is there any way to retrieve the BETRG value or any user exit/badi available?
    hope to hear from you soon.
    Thank you.
    Regards,
    SW

    In PAI of user exit ( ZXPADU02 ) you can get it easily
    data i0015 like p0015.
        if INNNN-INFTY = '0015'.
             call method CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
              exporting
                PRELP = INNNN
              importing
                PNNNN = I0015.  "here you have record of IT0015 so BETRG is also available
          "cast back values to screen fields
            call method CL_HR_PNNNN_TYPE_CAST=>PNNNN_TO_PRELP
              exporting
                PNNNN = I0015
              importing
                PRELP = INNNN.
         endif.
    Similar code can be done for IT2010
    Regards
    Marcin

  • How to find the user exits called at the time of posting the IDOC?

    Hi,
        Could anyone please how to find the user exits while posting a idoc?

    Hi,
    One way to ahive this is by, be ready with IDOC postiong,
    then go to ST05 transaction and activate the trace after checking Table Buffer Trace.
    Now post the IDOC then deactivate the trace.
    Now come back to ST05 and display trace and search for calls starts with EXIT_.
    Regards,
    Manoj Kumar P

  • BEx User Exit on Variable to populate with YTD values.

    Hi All,
    I have a multiple selection option variable on 0CALDAY that I want to prepopulate with the YTD range.
    When the variable screen pops up it should display the range 01/01/2008 to 05/05/2008 (Current Date), however the user shall have the ability to change these populated values.
    Thanks.

    Hey thanks for the quick resposne. I was thinking of using the following code, but have the following questions, how do i know that the I_T_VAR_RANGE contains the current date that the report is on?
    WHEN 'ZCCYTDIN'.
        if i_step = 1.
          read table I_T_VAR_RANGE INTO LOC_VAR_RANGE
          with key VNAM = 'ZRPTDATE'.
          clear l_date1.
          clear l_date2.
          move LOC_VAR_RANGE-LOW to l_date1.
    Move First day of the year to low
          concatenate l_date1+0(4) '0101' into l_date2.
          L_S_RANGE-LOW = l_date2.
    Move Calendar day entered by user to high
          L_S_RANGE-HIGH = LOC_VAR_RANGE-low.
          L_S_RANGE-SIGN =  'I'.
          L_S_RANGE-OPT  =  'BT'.
          APPEND L_S_RANGE TO E_T_RANGE.
        endif.

Maybe you are looking for