MM PO - New Pricing Routine / user exit / at Line item

Hi
When ever a line item data gets chnaged, we need to do the Update Pricing / New pricing Automatically.
Currently we are doing this manually and would prefer to automate -
request for possible suggestions / solutions OSS notes for this functionality.
cheers
Nandu

Hi
Look at using BADI ME_DEFINE_CALCTYPE  to select the pricing type B (carry out new pricing) whenever you make a change to PO item.
You need to go through the documentation of this BADI before you use it to make the correct program changes.
Hope this helps.
PP

Similar Messages

  • User Exit at line item level

    Hi all....
    I need a user exit which is applicable at line item level.
    The field 'first date' in line item, is same as first line in scehdule line.If i update 'first date in line item, the schedule line gets updated automatially. According to my requirement, i need a user exit at line item for date field.
    Thaks
    Aleem

    Hi,
    You can try this.
    USEREXIT_MOVE_FIELD_TO_VBEP                                      
    Use this user exit to assign values to new fields at the level of
    the sales document schedule lines.                               
    The user exit is called up at the end of the FORM routine        
    VBEP_FUELLEN.                                                    
    Thanks
    Krishna.

  • User Exit for line item query

    HI There,
    I'm not good at ABAP coding and need some help from experts.
    Working on Line Items Query and enhanced the 0FI_AP_4 to include fields from BSEG table, the fields are:
    GEBER - Funds
    FISTAL - Funds Center
    KOSTL - Cost Center
    GSBER - Business Area.
    I used the below code to enhance the datasource 0FI_AP_4, and its taking toooo long to load the data, but its pulling the line item data into BW.
    Please find another code after this....its very quick, either in extract checker or loading into BW, however its not loading all fields into BW. Specially line items like Cost Center, Fund center and Fund fields.
    Please go through the below codes and suggest me what changes i have to make to work as it should be.
    DATA: L_TABIX LIKE SY-TABIX.
    DATA: ZADTFIAP_3 LIKE DTFIAP_3.
    CASE I_DATASOURCE.
    WHEN '0FI_AP_4'.
    LOOP AT C_T_DATA INTO ZADTFIAP_3.
    L_TABIX = SY-TABIX.
    SELECT SINGLE GEBER FROM BSEG INTO ZADTFIAP_3-GEBER
    WHERE BUKRS = ZADTFIAP_3-BUKRS AND GJAHR = ZADTFIAP_3-FISCPER+0(4).
    SELECT SINGLE FISTL FROM BSEG INTO ZADTFIAP_3-FISTL
    WHERE BUKRS = ZADTFIAP_3-BUKRS AND GJAHR = ZADTFIAP_3-FISCPER+0(4).
    SELECT SINGLE KOSTL FROM BSEG INTO ZADTFIAP_3-KOSTL
    WHERE BUKRS = ZADTFIAP_3-BUKRS AND GJAHR = ZADTFIAP_3-FISCPER+0(4).
    MODIFY C_T_DATA FROM ZADTFIAP_3 INDEX L_TABIX.
    ENDLOOP.
    ENDCASE.
    Below code is extracting data very quickly but not bringing data for all fields specially line items like Fund Center, Cost center and Fund fields.
    DATA: L_TABIX LIKE SY-TABIX.
    DATA: ZADTFIAP_3 LIKE DTFIAP_3,
    wa_bseg Like bseg.
    CASE I_DATASOURCE.
    WHEN '0FI_AP_4'.
    LOOP AT C_T_DATA INTO ZADTFIAP_3.
    L_TABIX = SY-TABIX.
    Select single * from
    bseg into wa_bseg
    where BUKRS = ZADTFIAP_3-BUKRS
    and GJAHR = ZADTFIAP_3-FISCPER+0(4)
    and BELNR = ZADTFIAP_3-BELNR
    and BUZEI = ZADTFIAP_3-BUZEI.
    IF SY-SUBRC = 0.
    Move: wa_BSEG-GEBER to ZADTFIAP_3-GEBER,
    wa_BSEG-FISTL to ZADTFIAP_3-FISTL,
    wa_BSEG-KOSTL to ZADTFIAP_3-KOSTL,
    wa_bseg-GSBER to ZADTFIAP_3-GSBER.
    ENDIF.
    MODIFY C_T_DATA FROM ZADTFIAP_3 INDEX L_TABIX.
    ENDLOOP.
    ENDCASE
    Thanks
    Vandana

    Hi,
    You can try this.
    USEREXIT_MOVE_FIELD_TO_VBEP                                      
    Use this user exit to assign values to new fields at the level of
    the sales document schedule lines.                               
    The user exit is called up at the end of the FORM routine        
    VBEP_FUELLEN.                                                    
    Thanks
    Krishna.

  • VA01 user exit at line item with partner address

    I need a user exit for VA01 that is at the line item level.  The catch is I also need access to the partner address data.  I have found userexit_pricing_prepare_tkomk (include MV45AFZZ) but that doesn't give you the "instance" address information (the address data that is specific to that order, after being changed).  It only gives you the address number for the partner's default address.
    Does anybody know if such an exit exists?
    Regards,
    Aaron

    Hi Aaron,
    I had a similar requirement Long back & This was my code I written. Hope this helps you.
    *  Extract and Update field for partner-id - Goods Supplying vendor
      CLEAR TKOMK-Y_GSVN.
      PERFORM XVBPA_LESEN(SAPFV45K) USING 'WL'  VBAP-POSNR SY-TABIX.
      IF XVBPA-UPDKZ <> 'D'.
        TKOMK-Y_GSVN = XVBPA-LIFNR.
      ENDIF.
      PERFORM XVBPA_LESEN(SAPFV45K) USING 'ZP'  VBAP-POSNR SY-TABIX.
      IF XVBPA-UPDKZ <> 'D'.
        TKOMK-BSART = 'ZIN'.
        SELECT SINGLE LAND1 FROM LFA1 INTO TKOMK-Y_COMM_CTY  WHERE LIFNR = XVBPA-LIFNR.
      ENDIF.
    FORM XVBPA_LESEN USING US_PARVW US_POSNR US_TABIX.
    DATA: DA_VBADR   TYPE   VBADR.
    DATA: DA_VBPA    LIKE   XVBPA.
    CLEAR DA_VBPA.
    READ TABLE XVBPA INDEX 1 INTO DA_VBPA TRANSPORTING VBELN.
    XVBPAKEY-MANDT = VBAK-MANDT.
    XVBPAKEY-VBELN = DA_VBPA-VBELN.
    XVBPAKEY-PARVW = US_PARVW.
    XVBPAKEY-POSNR = US_POSNR.
    READ TABLE XVBPA WITH KEY XVBPAKEY.
    IF SY-SUBRC > 0.
       XVBPAKEY-POSNR = POSNR_LOW.
       READ TABLE XVBPA WITH KEY XVBPAKEY.
    ENDIF.
    IF SY-SUBRC > 0.
      CLEAR XVBPA.
      IF  US_PARVW = 'WE'.
        CLEAR KUWEV.
      ENDIF.
      IF  US_PARVW = 'RG'.
        CLEAR KURGV.
      ENDIF.
    ENDIF.
    US_TABIX = SY-TABIX.
    * CAM is not activated
    IF ZAV_FLAG IS INITIAL.
      IF NOT XVBPA-ADRNR IS INITIAL.
        CLEAR XVBADR.
        XVBADR-ADRNR = XVBPA-ADRNR.
        READ TABLE XVBADR.
        IF SY-SUBRC > 0.
          CLEAR XVBADR.
        ENDIF.
      ENDIF.
    * CAM is activated
      ELSE.
    *if there is an address
        IF NOT XVBPA-ADRNR IS INITIAL.
    *clear address data
          CLEAR XVBADR.
    *try to read address in internal table XVBADR
          READ TABLE XVBADR WITH KEY ADRNR = XVBPA-ADRNR  ADRNP = XVBPA-ADRNP.
    *if address is not in internal table XVBADR
          IF SY-SUBRC NE 0.
    *read address in CAM tables
       CALL FUNCTION 'SD_ADDRESS_GET'
          EXPORTING
            FIF_ADDRESS_NUMBER    = XVBPA-ADRNR
            FIF_PERSONAL_NUMBER   = XVBPA-ADRNP
            FIF_ADDRESS_INDICATOR = XVBPA-ADRDA
          IMPORTING
            FES_ADDRESS           = DA_VBADR
          EXCEPTIONS
            OTHERS                = 4.
            IF SY-SUBRC EQ 0.
              MOVE-CORRESPONDING DA_VBADR TO XVBADR.
              APPEND XVBADR.
            ELSE.
              CLEAR XVBADR.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDFORM.
    Thanks & Regards,
    Dileep .C

  • Routine / User exit in SD to create an Accounting Document

    Hi Everybody,
    Anybody please tell me the Routine / User exit in SD to create Accounting Document from an SD billing document.
    Also need the user exit that will split the accounting document into as many documents as required.
    The problem I am facing is like the splitter program fails to copy the document header text into all the accounting documents produced as a result of the splitter program. Appreciate your help.
    Thanks,
    Neethu.

    Hi Neethu,
    Sorry, I don't understand very well your requirements.
    Do you have problems with splitting in billing? If yes, see SAP Note 11162 - Invoice split criteria in billing document and search posts with the string ZUKRI.
    To change data in the interface to FI from billing, see Note 301077 - User exits for the interface to accounting, but I think that you cannot create new FI documents with these enhancements.
    Other question, see SAP Note 36353 - AC interface: Summarizing FI documents, perhaps your problem can be solved with the advices of this note.
    I hope this helps you
    Regards
    Eduardo

  • User exit to change item level data in purchase order

    Hi,
    Can anyone let me know the user exit to change item level data in purchase order . there is a badi ME_PROCESS_PO_CUST for this but the issue is its method process_item gets triggered only when the item is changed. My requirment is
    For purchase order document types u201CZSOu201D and u201CZCOu201D, where the purchase order is a u201CLimits Orderu201D only i.e. no materials or services on the purchase order, the print price indicator field should be set to u201Cblanku201D (unchecked).   now i cant use ME_PROCESS_PO_CUST  because process_item wont get triggered if there is no change in itemlevel data.
    Regards,
    Rahul

    Hi Rahul,
    Probably EXIT_SAPLMEKO_002.
    hope it helps,
    Edgar

  • Help - User exit to change item level data in Purchase Order

    Hi,
    Can anyone let me know the user exit to change item level data in purchase order . there is a badi ME_PROCESS_PO_CUST for this but the issue is its method process_item gets triggered only when the item is changed. My requirement is For purchase order document types u201CZSOu201D and u201CZCOu201D, where the purchase order is a u201CLimits Orderu201D only i.e. no materials or services on the purchase order, the print price indicator field should be set to u201Cblanku201D (unchecked).   now i cant use ME_PROCESS_PO_CUST  because process_item wont get triggered if there is no change in item level data.
    Thanks,
    Rahul

    Hi Rahul,
    Probably EXIT_SAPLMEKO_002.
    hope it helps,
    Edgar

  • Prevent user from view line item details in KSB1 report

    Hi,
    how to restricting user from view line item details by double-click on it or highlight an item click on Document?
    Regards,
    Kelvin

    Hi,
    This issue got resolved.
    SAP suggested to execute the program "FAGL_CORR_0001" for company code wise.
    In ECC 5.00 from support pack 10 onwards two new fields has been added to table FAGLFLEXA.  (earlier we are on support pack 9, recently we applied the latest support pack)
    If we can execute the above program FAGL_CORR_0001, the two new fields will filled with relevant data and then we can able to use drill down option.
    This is for your information.
    Message was edited by:
            prasad naga

  • System status and user status in Line Item Reports

    Dear PS-friends,
    I have to extend the CI CI_PROJ with some new fields. These fields should be shown in diverse Line Item Reports (CJI3 u2026).
    I know how to get these customer fields into the field catalog for the reports (maintain include table CI_RKPOS, EXIT_SAPLKAEP_001 and ViewCluster V_TKALV).
    Now our customer wishes that 2 of the new fields are: system status and user status. The status should be shown in CJI3 as a concatenated field as you see it in CJ20N.
    In CN42 there is the column system status as a standard column. But I cannot find the structure CNJ_STAT included in V_TKALV for Line Item Report Object=PD.
    Has anybody an idea how it works to show the system status and user status in Line Item Reports.
    Thanks in advance!

    Problem is solved.
    I wrote a function module using FM 'STATUS_TEXT_EDIT' and concatenated line and user_line.

  • New include proram -user exit- sales order

    hi
    i have to create a new screen which has to be displayed as a pop up
    from the user exit "<u>userexit_save_document_prepare"</u> which is present in MV45AFZZ
    the processing logic for the screen should be written in include program which is to be included in the specified userexit.
    the include program which i created while syntax checking shows
    "include <u>prg-name</u> is not accesible".
    why this is occuring.
    Another question is whether can i write the modules for pbo,pai and the subroutines i.e form & end-form all in the include program which iam creating.
    It is showing incorrect nesting. write end-form for the form before moduele.
    whether i have to write PBO,PAI,subroutines in independent include programs.
    Please give reply ASAP.

    in that case then
    call like this
    perform check (in program).
    <b>what i am thinking is THIS program in Update Mode may be bcos of that.</b>
    Regards
    prabhu
    Message was edited by:
            Prabhu Peram

  • Create new form in user exit ZRGGBR000

    Hi everybody
    I wanted to know if we can add a new form in the user exit ZRGGBR000 or we have to use the existing ones?
    Its the first time im using that user exit and I dont quite know how to proceed
    Thanks

    sorry, may be i wrongly posted this question
    theres a form called get_exit_titles in which all the exits are listed
    I wanted to know if we can add new exits or we have to use the existing ones
    Sorry for the inconvenience

  • User Exit at PO Item level - MM06E005

    Hi
          We have requirement like we want to update 2-3 standard fields from ekpo - Purchase order item level in user exit if certain criteria met .
    I used EXIT_SAPMM06E_012 function module exit but by using this I can only check the required conditon but can not able to update data in ekpo .
    Thanks,
    Suhas

    Hi,
    You can try this.
    USEREXIT_MOVE_FIELD_TO_VBEP                                      
    Use this user exit to assign values to new fields at the level of
    the sales document schedule lines.                               
    The user exit is called up at the end of the FORM routine        
    VBEP_FUELLEN.                                                    
    Thanks
    Krishna.

  • User exit about change item's goods issue day in transaction code VA01

    Hi everyone.
    Can someone give me some advice how to change item's
    goods issue by user exit?
    thank you in advanced.
    Regards.
    Eric xu.

    Can u be more clear.
    This are the exits used for the VA01
    SDTRM001            Reschedule schedule lines without a new ATP check
    V45A0002            Predefine sold-to party in sales document
    V45A0003            Collector for customer function modulpool MV45A
    V45A0004            Copy packing proposal
    V45E0001            Update the purchase order from the sales order
    V45E0002            Data transfer in procurement elements (PRreq., assembly)
    V45L0001            SD component supplier processing (customer enhancements)
    V45P0001            SD customer function for cross-company code sales
    V45S0001            Update sales document from configuration
    V45S0003            MRP-relevance for incomplete configuration
    V45S0004            Effectivity type in sales order
    V45W0001            SD Service Management: Forward Contract Data to Item
    V46H0001            SD Customer functions for resource-related billing
    V60F0001            SD Billing plan (customer enhancement) diff. to billing
    SDAPO001            Activating Sourcing Subitem Quantity Propagation
    V45A0001            Determine alternative materials for product selection
    Regards

  • User exits/Badi PO Item category type L

    Hi,
    My requirement is when ever a PO is created with some specific Order Type (Ex: ZPOG), items with item category as L (subcontracting), in the material BOM component the Plant should be changed from AAAA  to BBBB.
    Pls suggest some user exits or badi's to implement the logic to change the plant.
    Thanks...
    Cheers!!
    Anand

    i used this for approach for ASN only, i used this from ITS. so first i create the delivery using the VL31N with the PO, after success i deleted the items which i don't want using the VL32N and save the delivery with the items what ever i want. after a long analysis i followed this approach, since i have no option to pass the items to VL31N .
    But you have another option here
    see the include:
    MV50AFZ1
    here you can exclude the items which you don;t want , place the code in the routine
    USEREXIT_SAVE_DOCUMENT_PREPARE

  • User exit to check item text in VA01

    I want to valicate and create hard error when user create order and did not input certain item text in the order depending on order type.
    The text object is VBBP with textname as order number and item posnr.
    I tried userexit_save_document_prepare but at that time, there is no sales order number created yet, therefore I cannot call function read_text with the text object to check for item text.
    I also tried userexit_save_document, I got order number and item posnr but still function call always return text not found even I input item text during the order creation.
    Does anyone know where to put this exit or any enhancement point to check for item text?
    Thanks

    Hi Brad Bohn,
    I have quite the same issue,
    I have add a new subroutine to be able to change the KUNNR/goods receipt.
    every goods-receipt has a specific text, how can I change the item text when there is no VBELN/doc number based on the new kunnr ?
    Is that also applicable in the user-exit that you mentioned?
    Best Regards,
    Robert

Maybe you are looking for

  • How to configure MS Loopback Adapter in Windows 7

    Hello all, I installed SAP NetWeaver 7.02 SP06 ABAP Trial Version mainly to teach myself some WebDynpro Programming for ABAP. Unfortunately this does not work correctly. I created a View in a Web Dynpro Component and the Layout Preview does not work.

  • Firefox 4 displays "Could not launch Acrobat" error when exiting

    Firefox 4 Adobe Reader X installed OS: Win7 Pro Every time I exit Firefox, whether I view a PDF file or not, I get an error message, saying "Could not launch Acrobat." I've manually gone Options, Applications and changed them to use Acrobat Reader, b

  • Investment Order data not picking

    Hi all, I am not able to trace the date of the Investment Order in the Asset master data.... I have made the IO has the optional in the Asset Master data in the Screen layout... eventhough it is not capturing the data..... what could be the reason?..

  • Basic OLS question

    Oracle 11.1.0.7: Couple of questions: 1. All the examples in OLS are using GUI. I am unable to find example using SQL for 11g. 2. If I want to add a hidden "WHERE" clause then is the only way to do this is through own PL/SQL? Or is there any other wa

  • Aseet Explorer"There is no Depriciation"

    Hi All, Kindly note that I have created a depreciation area for reporting purpose with type "0" (area do not post) and it is a real depreciation area. I have assigned the depreciation area to the asset Class and have activated the same .for test purp