Reading Text in the PO  line item

Hi,
I need to retrieve the Line item Text in the PO (Material PO text). Can anyone Provide me a sample code? i need to display this in a script.
I could not retrive it from the Function Module READ_TEXT.
Can any one help me regarding this?
Regards,
Navaneeth.

DATA: BEGIN OF T_DET OCCURS 0,
       QMNUM LIKE QMEL-QMNUM,
       MBLNR LIKE QMEL-MBLNR,
       LOSMENGE LIKE QALS-LOSMENGE,
      END OF T_DET.
DATA:F_TDOBJECT LIKE THEAD-TDOBJECT,
     F_TDNAME   LIKE THEAD-TDNAME,
     F_TDID     LIKE THEAD-TDID,
     ITAB_LINES LIKE TLINE OCCURS 0 WITH HEADER LINE.
DATA:BEGIN OF ITAB OCCURS 10,
      DESC(72),
     END OF ITAB.
  SELECT QMNUM REFNUM QMDAT QMTXT OBJNR QMGRP QMCOD FROM QMEL
    INTO CORRESPONDING FIELDS OF TABLE T_DET
                              WHERE QMNUM IN S_QMNUM AND
                                    QMART IN S_QMART AND
                                    QMDAT IN S_QMDAT.
LOOP AT T_DET.
   F_TDID     = 'LTQM'.
    F_TDNAME   = T_DET-QMNUM.
    F_TDOBJECT = 'QMEL'.
    F_TDID     = 'LTQM'.
    F_TDNAME   = T_DET-QMNUM.
    F_TDOBJECT = 'QMEL'.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        CLIENT                  = SY-MANDT
        ID                      = F_TDID
        LANGUAGE                = SY-LANGU
        NAME                    = F_TDNAME
        OBJECT                  = F_TDOBJECT
      TABLES
        LINES                   = ITAB_LINES
      EXCEPTIONS
        ID                      = 1
        LANGUAGE                = 2
        NAME                    = 3
        NOT_FOUND               = 4
        OBJECT                  = 5
        REFERENCE_CHECK         = 6
        WRONG_ACCESS_TO_ARCHIVE = 7
        OTHERS                  = 8.
    DESCRIBE TABLE ITAB_LINES LINES SY-TFILL.
    IF SY-TFILL > 0.
      LOOP AT ITAB_LINES.
        ITAB-QMNUM = T_DET-QMNUM.
        ITAB-DESC = ITAB_LINES-TDLINE.
        APPEND ITAB.
        CLEAR ITAB.
      ENDLOOP.
    ENDIF.
ENDLOOP.

Similar Messages

  • How user can get a Sales Text for the any Line Item in the Billing?

    Salute Masters ! !
    How user can get a Sales Text for the any Line Item in the Billing?
    It's coming for other Order (Line Item for Bought out Item at Project Site - Some Item they procure at project site & complete the task).
    Where I can configure in system for all.
    Rgds
    Srivastav
    09973504950

    Hi,
    Sales text can be copied from customer to order , order to delivery and delivery to billing .
    Check the T-code : VOTXN , do the customization as per your requirement.
    check the below link :
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/dd/55f993545a11d1a7020000e829fd11/content.htm

  • How to add the line item text in the Ledger line item report

    Hi SAP Gurus,
    I having one requirement from the user. He wants the line item text which we will enter in FB60/FB70/FB50 has to be shown in the Ledger line item report. Right now this field is not available. Is there any possible we can make this line item text in the ledger line item report i.e. FBL1N/FBL3N/FBL5N?
    advance thanks for the help.
    Regards,
    Deva.

    Hi,
    You can do the below to get this. (You can change the names of the function modules as per your wish/ organization naming convention):-
    Step 1:-
    Create function module Z_GET_SGTXT as below:-
    Import:-
    BELNR LIKE BKPF-BELNR
    BUKRS LIKE BKPF-BUKRS
    BUZEI LIKE BSEG-BUZEI
    GJAHR LIKE BKPF-GJAHR
    Export:-
    PRCTR LIKE BSEG-SGTXT
    FUNCTION Z_GET_SGTXT.
    ""Local Interface:
    *" IMPORTING
    *" VALUE(BELNR) LIKE BKPF-BELNR
    *" VALUE(BUKRS) LIKE BKPF-BUKRS
    *" VALUE(BUZEI) LIKE BSEG-BUZEI
    *" VALUE(GJAHR) LIKE BKPF-GJAHR
    *" EXPORTING
    *" VALUE(SGTXT) LIKE BSEG-SGTXT
    SELECT SINGLE SGTXT FROM BSEG INTO SGTXT WHERE GJAHR = GJAHR
    AND BELNR = BELNR
    AND BUKRS = BUKRS
    AND BUZEI = BUZEI.
    ENDFUNCTION.
    Step 2:-
    Then create the Function Modules as below:-
    Z_LINE_ITEMS_GET_SGTXT (Copy of SAMPLE_INTERFACE_00001650)
    FUNCTION Module Z_LINE_ITEMS_GET_SGTXT.
    ""Local Interface:
    *" IMPORTING
    *" VALUE(I_POSTAB) LIKE RFPOS STRUCTURE RFPOS
    *" EXPORTING
    *" VALUE(E_POSTAB) LIKE RFPOS STRUCTURE RFPOS
    Initialize Output by using the following line
    E_POSTAB = I_POSTAB.
    E_POSTAB = I_POSTAB. "<-- important
    CALL FUNCTION 'Z_GET_SGTXT'
    EXPORTING
    BELNR = I_POSTAB-BELNR
    BUKRS = I_POSTAB-BUKRS
    BUZEI = I_POSTAB-BUZEI
    GJAHR = I_POSTAB-GJAHR
    IMPORTING
    SGTXT = E_POSTAB-SGTXT
    EXCEPTIONS
    OTHERS = 1.
    ENDFUNCTION.
    Step3:-
    Transaction FIBF:-
    Settings -> Products -> of a Customer
    SGTXT Text in Line Item Display Active
    Settings -> P/S Module -> of a Customer
    00001650 SGTXT Z_LINE_ITEMS_GET_SGTXT
    Step 4:-
    Create the layout for FBL*N with display of the TEXT.
    Regards,
    Gaurav

  • Prob with putting text after the Schedule line item in PO Sap script

    Hi Guys,
    I need to include a Text afetr the first schedule line item and that shouldn't print after next onwards, can anyone help me out.
    Thanks,
    Ramesh

    two things
    in this
    activate debugger and check whether the field
    &EKET-J_3ASIZE& is eq ' ' or not
    only then it will come in to else condition
    if its coming into else case check whether &T166P-TXNAM& is getting populated or not
    if it doesnt u need to go to item_text
    define a variable and move the value of &T166P-TXNAM&
    define &TEXT& = &T166P-TXNAM&
    and then
    in item_schedule
    iNCLUDE <b>&TEXT &</b> OBJECT &T166P-TDOBJECT& ID &T166P-TDID& LANGUAGE &EKKO-SPRAS& PARAGRAPH IX
    i think this will resolve the issue.
    Harish
    reward if its useful

  • Text in the document line item

    Hi,
    In COI, I am doing reclassification using document type.
    System has posting the documents correctly, but strange thing is in the document header text, it was giving some text by itself.
    Example of the actual text in the document header is as below:
    "3B586AF9C74AF958DC4EFAB080B180B6D2E90F25"
    Thanks in Advance,
    Richard

    Hi Dan,
    You are correct. The text is coming by itself while doing Reclassification for dividend at PL 30.
    Still confused why it is throwing some text in the document header..
    Regards,
    Richard

  • FB60 - Substitution rule to generate Text in automatic generated line item

    Hello SAP genious,
    While we post vendor invoice ( FB60) and customer invoice (FB70), at this time along with Dr and Cr line items one automatic additional line item is getting generated this is based on Tax type which you select while making invoice.
    now, I want to show some text in this automatically created line items. This might be possible by creating some substitution rule but i am not sure.
    and if it is possible through substitution rule then what could be my prerequisite, and check would be..?????
    can you please tell how can i get Text in this additional line item getting created due to VAT tax code.
    Thanks a Lot for your input.
    your reply will be rewarded with points.
    Thanks
    Jignesh

    Thanks for all your replies.
    I Want the field BSEG- KOBEZ i.e description field in the accounting doc of the offsetting entry to be replaced in the GL account  text field.
    Ex :
    PK    Account        Description                  Amount           Text
    31    100000         Furniture  Vendor             50             Sales
    40    1999             Inter Compy                     50             Furniture Vendor
    I want the description of offsetting entry vendor description i.e Furniture vendor (field BSEG-KOBEZ) to be replaced in GL line item text BSEG-SGTXT.
    I cant find the field BSEG- KOBEZ while i search in the substituion to replace in Text field.
    How do i write in substitution to say that the offsetting entry description should be in text field of GL account.

  • Correct the Marked Line Items

    Hi,
    When  I do F-54 (Clear Vendor Down Paments) after doing entering amount in Transfer posting and when I stimulate and try to save it gives me message saying "Correct the Marked Line Items"  So it shows me on of the line itesm in blue color and when I double click it takes me to Item level and then I entered the Text and save the document. Then in FBL1N its gets clear by one document and the cleared document show its been open.
    Can some one explaing me I am doing some thing wrong .
    Regards,
    Arvind.

    Hi,
    What you are doing is absolutely right.
    When you make a downpayment using special gl indicator, the vendor line time gets posted to SPECIAL RECONCILIATION ACCOUNT instead of normal reconciliation account assigned in vendor master.
    F-54 is used for bringing the vendor line item from special recon account to normal recon account.
    So the same vendor gets debited (spl recon-cleared) and credited (normal recon-Open)
    This new credit items will be cleared with payment.
    Assign Points if useful
    Regards
    Raghu Ram.

  • Tcode FV50: How to find long text in FI Document line item Before Saving.

    Hi,
    How to find long text in FI Document line item.
    During Parking of the FI document through Tcode FV50 i m giving the some text in the long text not in the text field.
    I would like to validate the Long Text Before Saving in user exit "U300" under  the  "Sunstitution" .
    Please anybody can be help me out where exactly this long text is going to be stored or in which internal table or memory id.
    Please give me the answer as soon as possible .
    Note:- Read_Text function module is not useful. Because Read_text useful after saving document.

    Hi Amit,
    In application area FINANCIAL ACCOUNTING , go for node LINE ITEM. Here create a step & maintain the prerequisite as per your requirement & in the check you can mention the code or you can direct it to a custom program like ZFI_RGGBR000.
    Here while maintaining the check you will get structures BKPF & BSEG in which you will get the desired field you are looking for.
    Just try to explore in your system how the other validations are maintained.
    After you are done with all your code, you have to run the regeneration program RGUGBR00.
    Here utmost care should be taken while running regeneration program, you should select all the checkboxes in the selection screen except  GENERATE SETS, GEN SUBSTN ROUTNS IN ALL CLNTS  & TRACE PROG. GENERATE CALLS .
    Hope this make your doubt clear.
    Regards
    Abhii

  • Issue while UNDELETE the PO line item

    Hi MM Sapperu2019s,
    I am facing an issue where one of my user wrongly activated the deletion for 1 line item in the PO and now when I tried to undelete the PO line item it was giving me the below error,
    Error as Requisition XXXXXX, item XXXX, assigned to other order account
    Message no. 06251
    Please help me to fix this issue.
    PS:
    I have found similar SDN links but where the issue is PO has linked with Sale order and in my case the PO account assignment has linked with network.
    Moderator do not lock this query saying that similar issue has been already discussed
    Awaiting for the experts reply.
    Cheers,
    Kumar.S

    Is that the background to your problem:
    you have a requisition and you created a PO 1 for this requisition,
    then you deleted the PO 1 and requisition became open again,
    then the requisition was change in account assignment
    and then you created a PO 2 for this requisition.
    what do you expect from re-opening the PO 1?

  • Enter Text in Price difference line item in MIRO

    Hello,
    My user wants to enter text in price difference account line item in MIRO. I tried to do it in MIRO simulation by doubl click on line item. But it does not show as we normally see in FI documents.
    Please advise how can I enter text in price difference line item while doing MIRO. Since this account gets posted automatically.
    Regards,
    Tapan

    Hi,
    You can create substitution with exit in GGB1/ OBBH
    In exit, give a popup for this price difference line item and in that popup user can enter the text and then fill that text in the line item.
    Your ABAper should be able to do it.
    Regards,
    SDNer

  • Can text in the URL line be enlarged?

    I was trying to show an elderly man how to use Safari at a local Apple Store.
    When he complained that he was having trouble reading the text in the URL line because it was too small (a problem he said he does not have when using IE on a PC at a local public library), I tried to enlarge it using standard OS X 'zoom' techniques. These didn't work. After consulting a number of Apple Store employees who tried various methods (including changing screen resolution), no solution could be found.
    Is there no way to change the size of text in the URL line?
    Thanks.

    Did you try using the Zoom feature found under System Preferences > Universal Access > Seeing, or were you relying solely on Safari's own View menu > Zoom In? You might have better results using the Universal Access feature.
    After turning on Zoom under Universal Access > Seeing, use the keyboard shortcuts indicated in order to enlarge everything on your screen -- including the text within the address field. Also, if you're using a mouse with a scroll wheel, try scrolling forward and back while holding down your Control key. This works for me. Good luck.

  • How to get the Hardcoded text and the Standard text in the same line

    Hi,
    I have an SAP Layout. In that, it should show the Consignee name as below.
         Consignee: SAP LABS
    In this, the text 'Consignee: ' should be hardcoded in the layout itself. and the customer has requested to create a standard text for 'SAP LABS' sothat if they want to change the value in future, they would go and change the Standard text. I have created the Standard Text for SAP LABS. I am not able to get both these texts on the same line. I wrote in the layout like below and AS is the Paragraph format.
    AS     Consignee:
    /:        INCLUDE ZVRU_CONSIGNEE OBJECT TEXT ID ST LANGUAGE EN PARAGRAPH 'AS'
    But, both are coming in dofferent lines. As /: is a command line, it is coming in the next line. Is there any way of getting these two texts in the same line..? While Inserting the Standard Texts, will there be any option/command to print it in the same line..?
    Please share your thoughts. Thanks in advance.
    Thanks & Regards,
    Paddu.

    Hi Paddu,
    I have had a similar requirement. I did not use any FM or anything, simply did the following:
    In  SO10, for your standard text where u have used the text SAP LABS.
    Instead of P1/ default para, change it to =. And then Save ur Standrd text.
    Now in the SAPScript Text editor in which you want to print
    P1 'Consignee :'
    /: INCLUDE TEST OBJECT TEXT ID ST LANGUAGE EN
    the output will be
    Consignee : SAP LABS
    I have tried and tested this method. It will surely work.
    With regards,
    Niharika.

  • Strike Through in ADOBE appears in the subsequent line items

    Hello ADOBE Forms creators;
    I am using the functionality of Strike through(line through) in my PO line items if the line item is deleted. However, in the following line item which is not marked as deleted if some of the fields have the same value as the deleted item, for example: if the quantity in the previous line(the deleted line item) is 5 and in the current line is also 5, this quantity in the current line item which is not marked as deleted gets the strikethrough as well. But if the value is not the same it will not get the strike through.
    Can anyone put some light into this issue. The points will awarded to the correct answer(s).
    Thanks,
    Cyrus

    What you are seeing is exactly as you described....ie. when the fields match in value, it applies to all. This has do to how you are navigating your DOM there in your Javascript. You are not making use of any indexing....just simply saying "any of my field values for quantity, apply this style". You are "referencing by name" to your fields.
    You have:
    this.parent.items.QUANTITY.blah.blah
    when it should look something like (forgive me but off top of my head....look/search for correct syntax)....
    this.parent.list.items[index].QUANTITY.blah.blah
    basically you need to find the index of your "QUANTITY" children (and other like named fields). They are all "named" the same, so they will have some kind of index to resolved them correctly. It might be an index after "QUANTITY". I am guessing you will look at the index for IND_TXT and then find all other fields with that same index (ie. same row?).
    Hope this helps.

  • Final total cannot appear when the last line item reached the page end

    Hi All,
    My report included 2 pages. Problem is the final total cannot appear when the last line item reached the page end. (page 2)
    final total will appear on the middle of last page (page 3) when i comment (type    = 'BOTTOM').
    Below is the program.
      CALL FUNCTION 'OPEN_FORM'
        EXPORTING
          device   = 'PRINTER'
          dialog   = 'X'
          form     = 'ZBOTM_VOUCHER'
          language = sy-langu.
      sort itab by vblnr.
      LOOP AT itab INTO wa_itab.
        move wa_itab-vblnr to reguh-vblnr.
        move wa_itab-lifnr to reguh-lifnr.
        move wa_itab-rbetr to reguh-rbetr.
        reguh-rbetr = reguh-rbetr * -1.
        CALL FUNCTION 'WRITE_FORM'
          EXPORTING
            window  = 'MAIN'
            element = 'DETAIL'.
        t_rbetr = reguh-rbetr + t_rbetr.
        AT LAST.
          CALL FUNCTION 'WRITE_FORM'
            EXPORTING
              window = 'LINE'.
          CALL FUNCTION 'WRITE_FORM'
            EXPORTING
              element = 'TOTAL'.
              type    = 'BOTTOM'
              WINDOW  = 'MAIN'.
        ENDAT.
    Thanks.

    Hi,
    Where should I include the code for bottom?
    How to open text editor?
    Thanks.
    Edited by: Alice8 on Feb 7, 2011 9:09 AM

  • Asset No. of the scrapped asset not appearing in the GL Line item display

    Hi Friends,
    As a part of the year end process the users have written of some of the assets thru T Code "ABAVN" - Asset Scrapping without revenue. The losses arising were posted to the particular GL Account as was defined in the config. However, when viewing the GL line item display we are not able to see the Asset No. against each of the line representing the loss arising from the scrapping of the asset. We tried changing the layout but still the asset no. does not get populated in the Asset column. Would need the help of freinds as to how can we change the settings so that against line item in GL we are able to see the Asset No. as well.
    Thanks!
    Regards,

    Haven't tried it before but perhaps you could try using asset no. sort keys in the 'retirement loss' gl account.
    Think the asset no. appears only on the asset cost and acc.depreciation line items ie. offsetting accounts don't have such.

Maybe you are looking for

  • Std report for viewing emp working hours

    Hi all, I want to know what is the standard report available in HR module to view the Employee aproved working hours and Unapproved working hours...? Regards, Shanthi

  • Creation of single TO for the group of Replenishment TRs.

    Hi Experts,     Please help me in this scenario. This is regarding replenishment. I have scenario where the business want to replenish materials to PD1,PD2,PD3 & PD4 storage types from C02,R02,PD0 & R11 storage types with 320 movement type. And once

  • Link to "   Database Storage Consolidation with ASM White Paper " now fixed

    I cannot access document "Database Storage Consolidation with ASM White Paper " on http://www.oracle.com/technetwork/database/index-100339.html. The new link seems also to be broken http://www.oracle.com/technology/products/database/asm/pdf/db_storag

  • 3D graph, anybody know of a free one

    I have been searching the net for a free 3D graph package that I can use in a applet or application that will support x, y, z axis. But I have not been able to find one. Does anybody know of a graphing package that will do this..

  • DataGrid and getItemAt

    Hi! I used in my DataGrid this code: <mx:itemRenderer> <mx:Component> <mx:VBox clipContent="false"> <mx:Text text="{data.myid[data.myid.length()-1].toString())}" paddingLeft="5" paddingRight="5" /> </mx:VBox> </mx:Component> </mx:itemRenderer> It wor