Changing PO item text when material number changed in ME22N

Hi all,
I am facing a problem as described below. Please provide me a concrete solution.
My customer wants me to add a custom item text as Work Authorization Data in ME21N and ME22N. I have created a user exit to implement this requirement. So whenever the user enters a material as a PO Item and saves the PO, my user exit is invoked and the custom data pertaining to that material is displayed as an item text. Later when the user edits the PO and changes the material number from any line item, the system deletes all the item texts corresponding to that line item.
My problem is, after that when my user exit is invoked, the corresponding text is not getting stored. If I change any other data (like quantity or unit) again and saved, then the text gets saved.
Can anyone provide me solution to make this item text get saved at the time of  change in material number itself.
FYI, I am working on SAP R/3 - 4.7 version. If more details are needed then I shall provide them.
Thanks and regards
Abdul Shabeer.

Hi,
it does not matter if the BADI is already implemented. You can add your additional logic there. If you put break points in all methods of BADI implementation and run ME2xN then you will see when is each method called. You are right that here is no BADI method SET_DATA. What I meant is that you get a reference to PO item (type IF_PURCHASE_ORDER_ITEM_MM) in BADI method PROCESS_ITEM. This interface has to methods GET_DATA and SET_DATA. Using these methods you can get current item fields and change them according to your needs.
Cheers

Similar Messages

  • When material price changed (sd item conditions)

    Hi all,
    when material price changed in the time that is used in an sd order and when this order's delivery has been created..
    the order's item's material's price has been changed before invoice printed(assume item as 10 and material assume as 600300)
    i need to update that order with the new price of the material.
    Even this can be done backward. I mean you may have an order that amount is 100,000(with different item no's) and send this at 20 times and may print 20 different delivery for this order. And order can be on January and you still send the janu's order at May. Whenever you send the delivery you have to update the respective item's price not others.
    All in all i want to update the order's price item by item...
    please write any way to solve this.
    Thanks..

    Hi,
    it does not matter if the BADI is already implemented. You can add your additional logic there. If you put break points in all methods of BADI implementation and run ME2xN then you will see when is each method called. You are right that here is no BADI method SET_DATA. What I meant is that you get a reference to PO item (type IF_PURCHASE_ORDER_ITEM_MM) in BADI method PROCESS_ITEM. This interface has to methods GET_DATA and SET_DATA. Using these methods you can get current item fields and change them according to your needs.
    Cheers

  • Need help to change line item text for 220 Line items

    Hi Specialists,
    The user has posted a reversal entry ( doc type : Manual Accrual) using TCODE FBS1.
    It has 220 line items.
    Is there a way in SAP he can change the text of All Line Items for a particular document number in one shot ( Mass Change).
    Pls note : Header text remains same . Only the line item text needs to be changed in one shot .
    For Eg :
      1 50 2758000047 Accruals for CAS               Accrl - Dec 08 / Nalini Marketing(Door Mats) - Oth
      2 50 2758000047 Accruals for CAS               Accrl - Dec 08 / SKC - M&E Repair
    Changed Description:
      1 50 2758000047 Accruals for CAS               Accrl - Jan 09 / Nalini Marketing(Door Mats) - Oth
      2 50 2758000047 Accruals for CAS               Accrl - Jan 09 / SKC - M&E Repair
    Thanks,
    Abhinav.

    Hi
    This is possible, please follow as below:
    If it is GL (FBL3N), Customer (FBL5N), Vendor (FBL1N) line item use the TCODE' mentioned.
    In the selection screen, if possible give all the document numbers (it is possible with addition selection).
    Once you get the output with the line item, select all line items and go to the menu options  there you can see the mass change option, it will give one popup screen give the new value in the text field and proceed further.
    VVR

  • ERP - SD Sales orders with billing plan (material number change appear)

    Sales and Distribution.
    Regarding sales orders with billing plan.
    We create the sales order and create billing plan at header or item level.
    We issue down payment request(s) upon receipt of sales order.
    Often during the life time of the sales order one or more of the material numbers are changed after the down payment request(s) has been issued and paid by the client.
    Our issue is that prior to changing the material number in the sales order we have to reverse the payment(s), reverse the down payment request(s) and after the material number change re-issue the down payment request(s) and register the payment again.
    We wish to find a solution avoiding all the reversals.
    If you have a similar situation please inform how to handle material number change in the sales orders with billing plan.
    Best regards
    Lise

    Dear Consultor SD ,
    There is no setting to create the invoice based on schedule line.
    What you can possibly do is create multiple deliveries based on the schedule line and
    then invoice the individual deliveries.
    If you want system to split the deliveries based on schedule line, then you will have to include Schedule line also
    in the COMBINATION REQUIREMENT in VTLA.
    Thanks & Regards,
    Hegal K Charles

  • Display 'item text' and 'material PO text' in a purchase order ?

    hello,
    i am creating a purchase order and i have inputted the 'item text' and 'material PO text' in the ITEM TEXT of the ITEM DETAILS section. I have a smart forms where i am displaying the purchase order by displaying fields from various tables like ekko,ekpo,t024,eket etc ..
    I want ti display the 'item text' and the 'material PO text' on the smartform but i cant find the table or the fields which keep these values(text) ??
    help me on this one ? thanks for yur time...

    c the example below:
    PERFORM read_text USING g_transp 'Z010'.
    FORM read_text USING l_text l_id.
      DATA : lt_text TYPE TABLE OF tline WITH HEADER LINE.
      DATA : l_name LIKE thead-tdname.
      CLEAR l_name.
      l_name = g_delivery.
      CLEAR lt_text.
      REFRESH lt_text.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
      CLIENT                        = SY-MANDT
          id                            = l_id
          language                      = sy-langu
          name                          = l_name
          object                        = 'VBBK'
        TABLES
          lines                         = lt_text
       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.
      CLEAR l_text.
      LOOP AT lt_text.
        CONCATENATE l_text lt_text-tdline INTO l_text.
      ENDLOOP.
    ENDFORM.                    "read_text

  • In ALV  I need to color the records when ever material number changes

    Hi ,
    I need to color the records in alv when ever the material changes.
    for ex : I have 10 records .
    1 to 3 records same material number so yellow color
    4 to 8 records same material numberso blue color
    9 to 10 recrods same material number  so yellow color.
    Please do the favour..
    thank you.
    karthik.

    Hi,
    Have one more column in the final table as
             ROWCOLOR(4),              "reqd only if row is color
    Do the coding like this.
    Keep canging the Row number to get different colors. Like C410 etc.
      LOOP AT T_FINAL.
        IF T_FINAL-NUMBER = 'XXX'. " <b>Do your comparison operation here</b>.
          T_FINAL-ROWCOLOR = 'C510'.
          MODIFY T_FINAL TRANSPORTING ROWCOLOR.
        ENDIF.
      ENDLOOP.
    Also modify the layout giving the field as
    DATA : W_LAYOUT TYPE SLIS_LAYOUT_ALV.
      W_LAYOUT-INFO_FIELDNAME = 'ROWCOLOR'.
    Hope this helps you.
    Regards,
    Subbu.

  • Word Links not updating when row number changes in excel

    Hi,
    I have a huge excel file with employee name,code,dob etc as fields.I linked it to word documents using paste special and macros.Everything works fine and word also updates with changes in excel file, but problem arises when in excel , data is added in the
    middle rather than at the end of the file. This changes the row numbers of all the employees.Hence when I  open corresponding word document, some one else's details open. So now i have to edit links in word...office->prepare->edit links, Here i
    have an option called ITEM IN FILES... this is where the problem occurs...It requires mentioning the row no of the corresponding pasted link...but when i change data in excel and row no changes...this should be automatically detected by Word and row number
    should be updated there.Please help me find a way to resolve this.This is what it looks like....
     Data for VC!R1C2:R2C13
    I want R1 and R2 to change automatically if I change rows in excel file.
    Thank you

    Instead of specifying a cell range in the LINK field, name the range in Excel, then use the range name in the LINK field.
    For example, instead of:
    VC!R1C2:R2C13
    you might have:
    VC!MyRange
    in Word.
    That way, the LINK will point to the named range, regardless of how many rows and/or columns are added/deleted before it. Furthermore, if you expand or contract the range (e.g. by adding/deleting columns between the first & last column), the
    named range and, hence the linked range, will likewise expand/contract.
    Cheers
    Paul Edstein
    [MS MVP - Word]

  • Mass change of PO text in Material Master

    Hi,
    1) Need to find list of materials which has PO text maintained
    2) Need to mass change of the PO text view in material master record.
    Kindly help
    Vengat

    Hi,
    Thanks for your reply.
    However still I could not extract the materials that are maintained with PO Texts.
    In SE16n STXH or STXL to key in material number also we don't know, so how to find the list of materials(preferably for plant specific) that are maintained PO Texts?
    Regards,
    Vengat

  • Changing sales item texts in userexit_save_document

    Hi Learned folk,
    the problem I have concerns a particular type of sales order item text which we wish to use to store text in addition to any entered by the user on VA01.
    In sapmv45a userexit_save_document I have put a call to function module read_text to get the current text lines and then added my extra line and used save_text to apply the cahnges.
    In debug I can see that save_text is dealing with the extra data, it does an 'úpdate' on STXH to indicate that there are the same number of lines in the text that I expect and then it does an 'éxport' to database STXL(TX) to send the text lines themselves. All the data I want is being exported. These commands are executed with 0 subrc. Shortly after leaving the exit the 'commit' occurs but tables STXH and STXL now have values consistent with how they were before my changed text lines were added. VA03 also shows that my additional text is not present.
    The only thing that I can think is that another use of save_text is occurring somewhere between the user exit and the commit but I haven't been able to find it yet.
    Does anybody have any other ideas why the text changes are not being retained?
    Regards
    Neil

    Hi Neil,
    1. U said u have used SAVE_TEXT
       and it saves.
    2. To check if this happens or not, 
        After that write COMMIT Work.
    3. In DEBUG mode,
       execute till the FM and COMMIT Work,
    4. In another session,
       see the table STXH
       to know whether it REALLY Gets
       updated or not!
    regards,
    amit m.

  • Material Number change during unpacking and packing using HU

    Dear Friends,
    Need your help for the below case.
    our client is importing and selling to the domestic and exports. This is typically a trading plant.
    The issue is when we unpack and repack using the HU, the material will be changed or not.
    As per some of the inputs, i heard it will change. Please confirm.
    If it changes how to avoid it.
    Thanks in advance.
    Regards
    Prabhu

    Depends on your design and how you want it to be, you can go either way.
    usually if you repack material  ( e.g. 200 kg drum repacked to 4 x 50 kg ) you have some labor costs and costs for the other packaging material.
    you can design your case with 2 materials , the trading good with 200kg  and a second material master for the trading good in 50 kg.
    here you would use a production order to produce the 50kg material, you would issue the 200kg material and issue 4 smaller empty drums and get 200 kg of the material in 50 kg drums
    This new material would then cost more than the 200 kg material since you added labor and empty drums.
    If you want only work with one material number, then you issue the 4 empty 50kg drums to a cost center and use the packing function in delivery.
    You will never be able to know how much material you have in 200kg drums and 50kg drums in stock this way, as this process is for transport packaging
    If you want show the accurate stock and value situation then I recommend to go with 2 materials

  • E-mail changes to unreadable text when moved to another mailbox folder

    Hi,
    when moving a correct received e-mail to another mailbox folder, the mail and the attachment will change to unreadable text and it looks like the column below.
    On my iPad and iPhone the mail and the attachment is shown correct. If I forward it to my own account again, the mail is also correct shown an my imac27, as long as it resides in the in-box.
    On the other hand, there are lots of mails+attachments with "normal" behavier when moved.
    Any idea about that?
    mackliko
    ------=_NextPart_000_0001_01CCF256.3C7DD310
    Content-Type: multipart/alternative;
              boundary="----=_NextPart_001_0002_01CCF256.3C7DD310"
    ------=_NextPart_001_0002_01CCF256.3C7DD310
    Content-Type: text/plain;
              charset="us-ascii"
    Content-Transfer-Encoding: 7bit
    ------=_NextPart_001_0002_01CCF256.3C7DD310
    Content-Type: text/html;
              charset="us-ascii"
    Content-Transfer-Encoding: quoted-printable
    <html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
    xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
    xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
    xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
    xmlns=3D"http://www.w3.org/TR/REC-html40">
    <head>
    <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
    charset=3Dus-ascii">
    <meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
    <style>
    <!--
    /* Font Definitions */
    @font-face
              {font-family:"Cambria Math";
              panose-1:2 4 5 3 5 4 6 3 2 4;}
    @font-face
              {font-family:Calibri;
              panose-1:2 15 5 2 2 2 4 3 2 4;}
    /* Style Definitions */
    p.MsoNormal, li.MsoNormal, div.MsoNormal
              {margin:0cm;
              margin-bottom:.0001pt;
              font-size:11.0pt;
              font-family:"Calibri","sans-serif";}
    a:link, span.MsoHyperlink
              {mso-style-priority:99;
              color:blue;
              text-decoration:underline;}
    a:visited, span.MsoHyperlinkFollowed
              {mso-style-priority:99;
              color:purple;
              text-decoration:underline;}
    span.E-MailFormatvorlage17
              {mso-style-type:personal-compose;
              font-family:"Calibri","sans-serif";
              color:windowtext;}
    .MsoChpDefault
              {mso-style-type:export-only;}
    @page Section1
              {size:612.0pt 792.0pt;
              margin:70.85pt 70.85pt 2.0cm 70.85pt;}
    div.Section1
              {page:Section1;}
    -->
    </style>
    <!--[if gte mso 9]><xml>
    <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
    </xml><![endif]--><!--[if gte mso 9]><xml>
    <o:shapelayout v:ext=3D"edit">
    <o:idmap v:ext=3D"edit" data=3D"1" />
    </o:shapelayout></xml><![endif]-->
    </head>
    <body lang=3DDE-AT link=3Dblue vlink=3Dpurple>
    <div class="3DSection1">
    <p class="3DMsoNormal">Mfg<o:p></o:p></p>
    <p class="3DMsoNormal">Martin lanzinger<o:p></o:p></p>
    <p class="3DMsoNormal"><o:p> </o:p></p>
    </div>
    </body>
    </html>
    ------=_NextPart_001_0002_01CCF256.3C7DD310--
    ------=_NextPart_000_0001_01CCF256.3C7DD310
    Content-Type: application/pdf;
              name="Test.pdf"
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment;
              filename="Test.pdf"

    Please run /cleanviews switch to check the result.
    (Type "Outlook.exe /cleanviews in Windows search bar and press ENTER.)
    Please also create a new Outlook profile to check if the issue still persists. Thanks.
    Tony Chen
    TechNet Community Support

  • Material number changed after purchase order released

    Hi Experts
    Please we are experiencing this behavior in our system.
    A purchase order for a specific material number is created and released, after this we can change the material number and its plant ¿is this a standard and right be way of SAP?
    Thank for your help
    JM

    Hi,
    You can design your process as the business demand.You can set Release Indicator 1 in designing Release procedure for  PO , where release Indicator 1 is used for purchasing document cannot be changed/Change not allowed after release.
    Regards,
    Biju K

  • Purchase order item text and material valuation class

    Dear Experts,
    A purchase order item text needs to be maintained for a particular material valuation class when the PO is created, is there anyway that this can be customized?

    Hi,
    Maintained Text in Material master record
    patah:Goto material mater change view,select plant view, then go to puchase order text there u
    can maitain material text. same text is automatically comes while creating Purchase order.
    regards,
    Ali

  • PO line item text and material po text

    Hi,
    I want to fetch the text maintained at item po level and print the same with form..
    I am passing following parameters in my Include text in smartforms..
    Text name         &VAR6& ..... concatenated po number and item
                            ( 4700000011 + 00010) = 470000001100010
    Text object       EKKO
    Text ID             F01
    Language          EN
    but its failing to fetch the same....I guess the problem is with var6 value...not sure
    also for material po text i m passing
    Text name         &G_ZEKPO-MATNR&  ..
    Text object       MATERIAL
    Text ID           BEST
    Language          EN
    This is also failing.....
    In both cases text is maintained...  what is the problem??
    Pls help..

    See this sample code
    ABAP READ_TEXT functions to read the SAP Long Text
    You have to used the READ_TEXT functions to read the SAP long text. e.g. Sales Order, Purchase Order Item text etc.
    To check your long text header, go into the long text. Click Goto -> Header
    Example of READ_TEXT functions reading tables PBIM - Independent requirements for material.
    REPORT ZTEXT .
    TABLES: PBIM.
    stxh, stxl, stxb - trans tables for text
    ttxit - text on text-ids
    ttxot - Short texts on text objects
    Transaction MD63
    SELECT-OPTIONS: S_MATNR FOR PBIM-MATNR,
                    S_WERKS FOR PBIM-WERKS.
    DATA: BEGIN OF HTEXT.
            INCLUDE STRUCTURE THEAD.
    DATA: END OF HTEXT.
    DATA: BEGIN OF LTEXT OCCURS 50.
            INCLUDE STRUCTURE TLINE.
    DATA: END OF LTEXT.
    DATA: BEGIN OF DTEXT OCCURS 50.
    DATA:   MATNR LIKE PBIM-MATNR.
            INCLUDE STRUCTURE TLINE.
    DATA: END OF DTEXT.
    DATA: TNAME LIKE THEAD-TDNAME.
    SELECT * FROM PBIM WHERE WERKS IN S_WERKS.
      MOVE PBIM-BDZEI TO TNAME.
      CALL FUNCTION <b>'READ_TEXT'</b>
           EXPORTING
              CLIENT                  = SY-MANDT
              ID                      = 'PB'
              LANGUAGE                = 'E'
              NAME                    = TNAME
              OBJECT                  = 'PBPT'
            ARCHIVE_HANDLE          = 0
         IMPORTING
              HEADER                  = HTEXT
         TABLES
              LINES                   = LTEXT
         EXCEPTIONS
              ID                      = 1
              LANGUAGE                = 2
              NAME                    = 3
              NOT_FOUND               = 4
              OBJECT                  = 5
              REFERENCE_CHECK         = 6
              WRONG_ACCESS_TO_ARCHIVE = 7
              OTHERS                  = 8.
      LOOP AT LTEXT.
        IF LTEXT-TDLINE NE ''.
          MOVE LTEXT-TDLINE TO DTEXT-TDLINE.
          MOVE PBIM-MATNR TO DTEXT-MATNR.
          APPEND DTEXT.
        ENDIF.
      ENDLOOP.
    ENDSELECT.
    LOOP AT DTEXT.
      WRITE:/ DTEXT-MATNR, DTEXT-TDLINE.
    ENDLOOP.
    http://www.sapdevelopment.co.uk/sapscript/sapscript_texts.htm
    Also
    *Internal table to store standard texts
    DATA: IT_TEXTS like T_LINE occurs o with header line.
    CALL FUNCTION 'READ_TEXT'
         EXPORTING
            CLIENT                  = SY-MANDT
              id                      =       "Text ID
              language                =       "Laguage
              name                    =       "Text name
              object                  =       "text object
            ARCHIVE_HANDLE          = 0
       IMPORTING
            HEADER                  =
         tables
              lines                   = IT_TEXTS   "Internal table
       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.

  • Any Way to Update Hyperlink Text When Topic Title Changes?

    Is there any to add a hyperlink "field" to a topic that will update when the title of the hyperlinked topic changes? Thanks in advance. RR

    Hi there
    I'm guessing you are asking this.
    You have topic A that has a link to topic B. The link currently reads topic B. But if you change the Title of topic B to perhaps topic X, you want the hyperlink to also change and reflect topic X?
    Personally I can't think of a way to make it happen. Maybe with a variable, but you would have to update the variable manually.
    Perhaps someone else has a clever solution for you.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

Maybe you are looking for

  • Laptop consuming battery fast and a constant flow of heat from CPU

    Hello to all. I'm having similar problems like this one, here using a Dell Vostro 3460, maybe is just some non-windows OS unfriendly hardware. Battery last like 5 or 6 hours on Windows, and just like 2 or 2 and a half on Arch. Will remove battery unt

  • PC Suite support installation failed error message...

    Every time I start PC Suite and do a sync (of calendar, notes and contacts) with my Nokia N78 phone -  I get the message:- The PC Support installed on your phone must be updated to support new features. Do you want to update PC Suite support on your

  • Where can I report websites that don't function properly on the Touchpad?

    eduphoria ! is widely used by many public schoold across the country. There are apps available for competing OSs.  Once I log in, I find some of the functionality of some school objects' features are not activated when tapped on in the Touchpad's bro

  • Transaction Launcher - TCode Authorization Issue for ERP transaction

    We are trying to implement an ERP transaction in the CRM WebUI via the transaction Launcher.  Everything has been set up properly and the transaction appears in the nav bar.  I am running it to launch a new window.  When i click on it, a new window p

  • Finder Scroll bar issue

    Hi guys, Today, all of the sudden my Logitech Performance MX mouse is no longer scrolling up and down in ALL Apps. I does work fine on Internet Browsers but it doesn't with the Finder and Microsoft Applications. It is very annoying indeed. Since the