User exit text issue in va22

I had to display pop up window asking for REASON FOR CHANGE OF PRICE if user changes item level 'amount'.I used popup_get_values.Then that reason should be saved in TEXTS tab.I wrote code for that.But the text does not save into TEXTS tab's text for price change.Here is the code I wrote
data : RETURNCODE(1) TYPE C,  User response
        POPUP_TITLE(30) TYPE C, Text of title line
        V_TDNAME TYPE THEAD-TDNAME,
        zw_komv type komv.
        POPUP_TITLE = 'Change of Price'.
data : T_FIELDS TYPE STANDARD TABLE OF SVAL,
        X_FIELDS TYPE SVAL,  Table fields, values and attributes
        T_LINES TYPE STANDARD TABLE OF TLINE,
        X_LINES TYPE TLINE,
        X_HEADER TYPE THEAD.
read table xkomv into zw_komv
with key kposn = komv-kposn
kschl = komv-kschl.
IF ZW_KOMV-KBETR NE KOMV-KBETR.
X_FIELDS-TABNAME = 'TLINE'.
X_FIELDS-FIELDNAME = 'TDLINE'.
X_FIELDS-FIELD_OBL = 'X'.
X_FIELDS-FIELDTEXT = 'TEXT'.
APPEND X_FIELDS TO T_FIELDS.
CALL FUNCTION 'POPUP_GET_VALUES'
   EXPORTING
   NO_VALUE_CHECK        = ' '
     POPUP_TITLE          = POPUP_TITLE
    START_COLUMN          = '5'
    START_ROW             = '5'
  IMPORTING
    RETURNCODE            = RETURNCODE
   TABLES
     FIELDS                = T_FIELDS[]
  EXCEPTIONS
    ERROR_IN_FIELDS       = 1
    OTHERS                = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CONCATENATE KOMK-BELNR '000' KOMV-KPOSN INTO V_TDNAME.
CALL FUNCTION 'READ_TEXT'
  EXPORTING
   CLIENT                        = SY-MANDT
    ID                            = '9000'
    LANGUAGE                      = SY-LANGU
    NAME                          = V_TDNAME
    OBJECT                        = 'VBBP'
   ARCHIVE_HANDLE                = 0
   LOCAL_CAT                     = ' '
IMPORTING
  HEADER                        =
  TABLES
    LINES                         = T_LINES
EXCEPTIONS
   ID                            = 1
   LANGUAGE                      = 2
   NAME                          = 3
   NOT_FOUND                     = 4
   OBJECT                        = 5
   REFERENCE_CHECK               = 6
   WRONG_ACCESS_TO_ARCHIVE       = 7
   OTHERS                        = 8
IF SY-SUBRC = 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
X_HEADER-TDOBJECT = 'VBBP'.
X_HEADER-TDNAME = V_TDNAME.
X_HEADER-TDID = '9000'.
X_HEADER-TDSPRAS = SY-LANGU.
READ TABLE T_FIELDS INTO X_FIELDS INDEX 1.
IF SY-SUBRC = 0.
X_LINES-TDLINE = X_FIELDS-VALUE.
APPEND X_LINES TO T_LINES.
ENDIF.
CALL FUNCTION 'SAVE_TEXT'
  EXPORTING
   CLIENT                = SY-MANDT
    HEADER                = X_HEADER
   INSERT                = ' '
   SAVEMODE_DIRECT       = 'X'
   OWNER_SPECIFIED       = ' '
   LOCAL_CAT             = ' '
IMPORTING
  FUNCTION              =
  NEWHEADER             =
  TABLES
    LINES                 = T_LINES
EXCEPTIONS
   ID                    = 1
   LANGUAGE              = 2
   NAME                  = 3
   OBJECT                = 4
   OTHERS                = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
Here in T_LINES table , that text is coming...but stilll does not reflect..
can anybody tell me ???

Hi All,
Thank for your reply.
After saving the text using 'SAVE_TEXT' function module and commiting it you need to update the 'ltext' field in AUFK table.
SELECT SINGLE * INTO wa_aufk FROM aufk WHERE aufnr EQ '000012345678'.
wa_aufk-ltext = 'D'.
MODIFY aufk FROM wa_aufk.
It works in Enhancement PPCO0007.
This call can be closed. Thanks.
BR
Qiang

Similar Messages

  • VA21 and VA22 User Exits

    Hi
    I have built a user exit for VA21 and VA22 in RV61AFZB as an include
    I need to modify the way conditions tab is displayed...
    Its a very simple requirement where I need to sumup the records of XKOMV which have the same KSCHL (say VA000) into one record...
    KSCHL        KWERT  KMPRS
    VA00          5
    VA00          10
    Now I need to show it as
    KSCHL        KWERT  KMPRS
    VA00          5
    VA00          10
    VA00          15           X
    I have done the above successfully for the table XKOMV but the problem is the above summation runs in a kind of loop and the summation gets appended everytime because of some other standard SAP code
    Has anyone faced the problem above... I have tried appending the values only for the last loop but it has other complications

    Hi,
    Here is my suggestion..
    In the pricing procedure add a line after the condition type VA00...
    Then assign a new formula for that line...
    In the new condition value formula (VOFM)...sum up the value based on the entries in XKOMV and assign the value XKWERT...
    It will display the value as per your requirement...
    Hope this what you are looking for...
    Thanks,
    Naren

  • User Exit for MIGO (goods receipt and goods issue)

    Hi all ,
    When i create a cross company goods receipt or goods issue through MIGO,I need to add another line item to the accounting documents posted with the sales tax calculated.For this i need to use a user exit which adds another line item.
    Can someone suggest me the user exit which i need to use ?
    any input would be of great help.
    Thanks,
    nsp.

    Hi
    Available exits for MIGO are
    Transaction Code - MIGO                     Goods Movement
    Exit Name           Description
    MBCF0002            Customer function exit: Segment text in material doc. item
    MBCF0005            Material document item for goods receipt/issue slip
    MBCF0006            Customer function for WBS element
    MBCF0007            Customer function exit: Updating a reservation
    MBCF0009            Filling the storage location field
    MBCF0010            Customer exit: Create reservation BAPI_RESERVATION_CREATE1
    MBCF0011            Read from RESB and RKPF for print list in  MB26
    MB_CF001            Customer Function Exit in the Case of Updating a Mat. Doc.
    No of Exits:          8
    You would hav to search through these.
    Hope this helps to solve ur problem....
    <b>do reward if useful....</b>
    regards
    dinesh

  • 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

  • User Exit for transferring text from delivery -Item note to Accounting doc.

    Hi Experts ,
    I need an user exit where I can transfer the delivery item text (item note )  from outbound deliver to accounting document when the post goods issue (PGI ) is done .
    Please suggest.
    Thanks in advance
    Tanveer Khan

    I have got the function Exit EXIT_SAPMM07M_001. Which resolves the purpose...Thanks for your time..

  • USER-EXIT for post goods issue

    Hi all,
      after the delivery (VL01n)is created, i have to go for post goods issue.there is a push button named 'post goods issue' in VL02n.
    when i will press this button,all my data for this delivery ,should be downloaded to a text file.
    for this thing, i want to use a USER-EXIT.can u plz advice me the correct & specific user-exit for this requirement.it is very urgent. i have to it by today.
    your help is highly appreaciated.
    Regards
    pabitra

    Check the following
    V02V0001            Sales area determination for stock transport order
    V02V0002            User exit for storage location determination
    V02V0003            User exit for gate + matl staging area determination (h
    V02V0004            User Exit for Staging Area Determination (Item)
    V50PSTAT            Delivery: Item Status Calculation
    V50Q0001            Delivery Monitor: User Exits for Filling Display Fields
    V50R0001            Collective processing for delivery creation
    V50R0002            Collective processing for delivery creation
    V50R0004            Calculation of stock for POs for shipping due date list
    V50S0001            User Exits for Delivery Processing
    V53C0001            Rough workload calculation in time per item
    V53C0002            W&S: RWE enhancement - shipping material type/time slot
    V53W0001            User exits for creating picking waves
    VMDE0001            Shipping Interface: Error Handling - Inbound IDoc
    VMDE0002            Shipping Interface: Message PICKSD (Picking, Outbound)
    VMDE0003            Shipping Interface: Message SDPICK (Picking, Inbound)
    VMDE0004            Shipping Interface: Message SDPACK (Packing, Inbound)
    Regards

  • User Exit or BADI for VA02-Text editor Functionality

    Hi experts,
    Can anyone of you please provide me the User exit or BADI name for the tcode VA02 to call the Function Modules related to TEXT Editor?
    **********Issues********
    I have an Order eg.110022345...Under that Order,there are many line items...Say if i select one line item and change its Schedule line date,then that line item will get cancel and in turn an corresponding New line item will get ceated.
    However,the Content of the TEXT fields is not copied to the line item from the parent line item.
    I guess the STD SAP code functions in that way.So i thought of writting an Zcode to apply this functionality by using the Function modules "SAVE_TEXT" and "READ_TEXT_INLINE".
    In order to do this i need to know the User exit or BADI which is suitable for my requirment.
    Requesting you to help me in this case..
    Thanks in advans:)

    Hi
    Try USEREXIT_MOVE_FIELD_TO_VBAP in userexit MV45AFZZ.
    I'm not sure but may be you need to use FM 'CREATE_TEXT' instead of 'SAVE_TEXT'.
    First try with "SAVE_TEXT" if it won't work then use 'CREATE_TEXT'.
    Best Regards,
    Nikhil Patil

  • Need User Exits for Creation of Delivery and for Posting Goods Issue

    Hi,
    I need User Exits for
    Creation of Delivery
    Posting Goods Issue
    I need to make some checks regarding customer license expiration and if checks fail, I need to stop Creation of Delivery and Posting Goods Issue.
    Thanks in advance,
    Will reward,
    Mindaugas

    In the delivery you can use userexit USEREXIT_SAVE_DOCUMENT_PREPARE to make your checks and send an error message to the user in case they fail.
    You can find this user exit (form routine) in include MV50AFZ1.
    Hope that helps,
    Michael

  • User exit or badi for item text in mir7 transaction

    Hi Gurus,
    Please provide me suitable user exit or enhancement or badi for this requirement.
    client enter TEXT fied data in MIGO transaction for material document and purchase order in where tab.
    in MIR7 i entered reference number as material document number and purchase order number after triggering enter button it gives the list of items but IT IS NOT GIVE THE ITEM TEXT DATA which we entered in MIGO transaction.
    Please provide me suitable user exit or enhancement or BADI for this.
    Thanks A lot in Advance.
    With Regards,
    Radhakrishna.

    Hi RadhaKrishna,
    You can find the BADI by yourself just follow the below any methods you will get the appropriate BADI name..
    Method 1:
    Go to Tranaction: SE24.
    open class CL_EXITHANDLER
    Open the method " GetInstance"
    Put Break point in the statement
    call method cl_exithandler=>get_class_name_by_interface
    Now execute the Transaction which you need teh BDC it will automatically stops at the the method. In debugging mode double click on the variable: " exit_name" It will return the BADI Name.
    Method 2:
    find the Package name and go to the tranaction SE84.
    Enter the package name
    inside the left navaigaiton panel there is one option " Enhancements" click on this enhancement and then enter the package name and execute it. you will get hte number of enhancement.
    for your reference I am sending you the list of BADI present in MIRO transaction.
    ARC_MM_MATBEL_CHECK --------Check AddOn-Specific Criteria for MM_MATBEL
    ARC_MM_MATBEL_WRITE ---------- Archive AddOn-Specific Data for MM_MATBEL
    MB_CHECK_LINE_BADI  -------------- BAdI: Check Line Before Copying to the Blocking Tables
    MB_CIN_LMBMBU04     --------------- posting of gr
    MB_CIN_MM07MFB7     ---------------- BAdI for India Version exit in include MM07MFB7
    MB_CIN_MM07MFB7_QTY  ------------Proposal of quantity from Excise invoice in GR
    MB_DOCUMENT_BADI     --------------BAdIs when Creating a Material Document
    MB_DOCUMENT_UPDATE   -----------BADI when updating material document: MSEG and MKPF
    MB_MIGO_BADI        --------------------- BAdI in MIGO for External Detail Subscreens
    MB_MIGO_ITEM_BADI    ----------------BAdI in MIGO for Changing Item Data
    MB_RESERVATION_BADI  --------------MB21/MB22: Check and Complete Dialog Data
    Thanks,
    Chidanand

  • User Exit or BADI for Post Goods Issue (VL02N)

    Hello everyone!
    I have an issue with one of my customers and I would like your help.
    When we do a stock transfer, from one plant to another, if the Material has a serial number set up in Material Master in one of the plants, and haven't for the other one, the system is generating an error message saying they have different serial numbers.
    I need to find a User Exit, or BADI, that can be used to force the system to ignore serial number validation during the goods issue (for one especifc plant), but still require serial numbers in the deliveries from the other plants.
    Any ideas experts?

    Hey Juan Carlos,
    Any ideas on which user-exits I should use?
    And by your answer, did you mean I should make the values look the same, and try to "fool" the system?
    Thanks

  • User exit while doing Goods Issue

    Dear Guru's,
    I have the below requirement from my client,
    They want an warning msg from the system while doing Goods issue, if the stock of certain material is goes below min stock level, so i spoke to my abaper to create user exit, but he is asking for some programs from MM side related MIGO. What programs we need to give him ? is that right ? pls suggest
    Edited by: channabasappa kallapur on Jan 21, 2009 5:29 PM

    I don't believe you need a user exit for this .. USE OMCM and configure the availability check against the appropriate movement type

  • User exit/BADi to change the header text in MIRO transaction

    Hi all,
    I am searching user exit or badi to change the header text in MIRO transaction.
    My requirement is, before post the invoice I need to populate the vendor name in Header text field(MIRO -> Details tab -> header text field ). I have tried all the user exits and BADi's related to MIRO. Doesn't work. If anybody knows please share.
    Thanks,
    Pranav

    Try BADI INVOICE_UPDATE.
    If you are in system version is ECC 6.0, you can find out a Enhancement SPOT (ES_SAPLMRMC) under Function module MRM_FINAL_CHECK, which can be used to perform this requirement
    Hope this helps.
    Thanks,
    Balaji
    Edited by: Balaji Ganapathiraman on Mar 14, 2008 4:43 PM

  • User exit/BADi to populate the header text in MIRO transaction

    Hi all,
    I am searching user exit or badi to populate the header text in MIRO transaction.
    My requirement is, before post the invoice I need to populate the some text in Header text field (MIRO -> Details tab -> header text field). I need to populate this field in the MM document as well as FI document (Accounting Document). I have tried all the user exits and BADi's related to MIRO/MRRL. Doesn't work. If anybody knows please share.
    Thanks,
    Santosh
    Edited by: Santosh Ghonasgi on May 13, 2010 4:48 PM

    Hello santosh,
    I am not sure whether a suitable exit / BADI exists to update the header text in MIRO directly.
    there is one related forum:
    User exit/BADi to change the header text in MIRO transaction
    Hope, it may helpful for you to proceed with some other parallel solution.
    Regards,
    Selva K.
    Edited by: Selvakumar Krishnan on May 13, 2010 5:29 PM

  • User Exit / BADI for Header Text in IW21

    Dear All,
    I have an requirement to update a header text of IW21 (Creating Notification) with some condition, ie., Header Text should be updated with different text (some information along with entered text) depends on Notification type and Functional Location.
    Is there any User Exit / Badi to do this ?
    Could any one help on this regard ?
    Thanks and Regards,

    Hi,
    Below are the exits for the Transaction Code - IW21.
    Exit Name Description
    IWO10026 User check on setting status 'Do not perform'
    IWO10027 User exit: Generate user-defined settlement rule
    IWOC0002 PM/SM notification: Check whether status change is allowed
    IWOC0003 PM/SM authorization check of ref. object and planner group
    IWOC0004 Change single-level list editing PM/QM/SM ALV settings
    IWOC0001 Create PM/SM notification: Determine reference object
    Check each which can server your purpose.
    May be EXIT_SAPMIWO0_020 might suit your purpose.
    Regards,
    Vijay V

  • User Exit: Saving data in Production Order Header Long Text

    Hi PP Gurus,
    Can any one let me know which user exit can be used to save some data in the Long Text of Production Order Header.
    We try PPCO0007, it works well on ECC, but my client's system version is 4.7, it does not work.
    In 4.7 version, is there any other User Exit or BADI can be used to comply with this requirement?
    It's quite common requirement, hope someone can help me. Thanks.
    Best regards,
    Sun Qiang

    Hi All,
    Thank for your reply.
    After saving the text using 'SAVE_TEXT' function module and commiting it you need to update the 'ltext' field in AUFK table.
    SELECT SINGLE * INTO wa_aufk FROM aufk WHERE aufnr EQ '000012345678'.
    wa_aufk-ltext = 'D'.
    MODIFY aufk FROM wa_aufk.
    It works in Enhancement PPCO0007.
    This call can be closed. Thanks.
    BR
    Qiang

Maybe you are looking for