Print Item text

Hi Experts,
We have an output type which should be changed to accomodate the item text for each line item in PO, if it is generated through a sales order (EKKN-VBELN is not NULL). The text coming from sales order has text id 0002. The text should be printed below respective line item.
Thanks,
Kumar

'Hi Nanda
Use the READ_TEXT function module . Here is  sample code .
{code
data : w_vbeln TYPE vbap-vbeln,
       w_posnr TYPE vbap-posnr.
CLEAR : w_vbeln,
                w_posnr,
                w_foottxt.
        w_vbeln = t_vbap-vbeln.
        w_posnr = t_vbap-posnr.
        CONCATENATE w_vbeln w_posnr INTO w_foottxt .
        CALL FUNCTION 'READ_TEXT'
          EXPORTING
            client                  = sy-mandt
            id                      = '0010'
            language                = sy-langu
            name                    = w_foottxt
            object                  = 'VBBP'
          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.
        ENDIF.
the text would be retrieved in t_lines table
code}
Edited by: Martina Floriette on Jan 28, 2009 10:14 AM

Similar Messages

  • How to print item texts in po contract form when the fixed item status is N

    Hi all,
    I'm trying to print the item texts in the contract forms.
    I need to print the item texts when the status is 'N'  and at the same time the status is blank in the same form.
    I tried using t165p.I'm unable to print the both the message status with N and blank at the same time.
    Please guide in this regards.
    Thanks and regards,
    Krishna

    Hi Luis,
    Thanks yes, now it get captured soon after changed the item accordingly as you said.
    so there is no need of creating hidden item for those item (i.e) &P1_DIS_COURSE_NAME. AND &P1_DIS_DATE.
    right??
    Regards,
    Mini

  • Printing Item text in Purchase order

    Hi,
    Iam creating a PO...for each line item i have to print the text..
    suppose if there are five text for each line item Eg :
    SAP1 = a, SAP2 = b, SAP3 = d, SAP4 = e.
    SAP1 to 4 are text,
    a to e is the value that i have to print.
    The probelm is user may or may not enter any value in this field.
    my requirement is only if the user givs text in this fields it shoild print. and all text shud print on the same line
    For Eg:
    SAP1 = a, SAP3 = d.
    SAP2 = b, SAP3 = d,

    Assuming the variables are called &SAP1& &SAP2& &SAP3& &SAP4&
    Put the text inside the && in single quotes before the variable name as below:
    AS &'SAP1 = 'SAP1& &'SAP2 = 'SAP2& &'SAP3 = 'SAP3& &'SAP 4 = 'SAP4&
    The text only prints if the variable is not initial.

  • Printing item text smartforms

    Hai friends,
    In my invoice i have 7 line items and some materials are "Duty Paid". For this they are maintaining a text in "Item Text" tab in VF01 transaction for each materials.
    I have to print the text one by one in the footer.
    How can i do this. How to display the item text.
    Thanks.

    Hi,
    Use the Function module READ_TEXT to read the item texts and print them in the footer.
    You need to pass paramters to FM Read_text. Go to VF03. go to item texts. Highlight any item texts and click on the display button below. It will take you to the text editor. On that screen Go to-> Header will show the following details.
    Text Name       1203832486000140                     
    Language        EN                                   
    Text ID         0002 Item note                       
    Text Object     VBBP       Sales     Item texts      
    Pass the same values to the fields of READ_TEXT FM.
    TEXTNAME would be the concatenation of salesorder and line item.
    Thanks,
    Vamshi.

  • Not able to print on Purchase order whatever we fill in item text

    not able to print on Purchase order whatever we fill in item text, from where can we link to get printed item text on purchase order

    while doing in quality whatever we fill in text in item details of p.o we are getting it printed on p.order
    but same thing when we are doing in production we are not able to print on purchase order. where we should look out
    for e.g in spro-mm-purchasing-purchase order..

  • Item text is populationg Partially in adobe form

    Hi All,
    I have a problem in printing item text in adobe form.
    item text is having more than 100 lines which is being populated in adobe form.
    the subform text is created in layout and there a TEXT node is created which has text
    this TEXT node in subform text prints item texts.
    now problem is that suppose there are 100 lines in item text then 60 lines are being printed and the rest 40 lines are not printing in adobe in next page... from next page next item text are being printed...
    When i increase the page height till some lenght then rest all 100 line is getting printed but in single page...
    I want item text to be printed in 1st page and 2nd page also if item text is long ( ie. 60 lines to be printed in page 1 and rest 40 lines should be printed in page 2)
    Thanks

    Hi,
    Have you checked, Object palette --> Layout --> Expand to fit?
    Thanks & Regards,
    Sanoosh

  • Printing header text

    hi,
    when i went through smart form code ,i found the following code for printing texts for items(me23n-->item--
    >texts)
    in TEXT  node in smartform   (for printing item text):
    TYPE: INCLUDE TEXT
    TEXT NAME : &G_TEXT_KEY&
    TEXT OBJECT: EKPO
    TEXT ID: F01
    LANGUAGE: &SY-LANGU&
    How to create text name,text object,text id?
    when i gave text name & text id in SO10 &then display it's giving message Text Id F01 for Text Object  TEXT does not exist.
    how to create text object EKPO instead of  TEXT.where can i see this TEXT OBJECT option.
    how can i print header texts in ME23N?
    please help?

    hi mustafa,
      1. If you want to create text name, text object, text id.. you have to create functionally in spro settings....
       spro
    > mm
    > purchasing
    > messages
    > texts for messages
    > define texts for purchase order
        here you can define header texts or item text functionally
    If you want to create in you po then go to header text tab and create with respective  text
    2.  if you want to print header texts simply pass only
         po number in text_name,
         text_object : ekko
         text_id : depends up on ur text check i header text tab
        language key u know as usual
    Don't forget to reward points
    praveen

  • Item text is not appearing in the print output through IDOC?

    Hello ,
    I am changing the PO through IDOC. When ever there is change in the quantity ,net price and delivery date  the print out put is generated autoamtically and changes are appearing the print output.
    when ever there is change in the item text of PO print output is not generatiing but item text is updated in the PO.
    If i change manually print out is generating for item text also but through IDOC print output is not generated . please help to slove this isuue.
    i am passing the value as :
        idoc_data-segnam = 'E1BPMEPOTEXT'.
        e1bpmepotext-po_item = Po line item number .
        e1bpmepotext-text_id = txtid.
        e1bpmepotext-text_form = textform.
        e1bpmepotext-text_line = line item text .
        idoc_data-sdata = e1bpmepotext.
        APPEND idoc_data.
        CLEAR idoc_data.
        CLEAR e1bpmepotext.
    please help me it is urgent
    Thanks
    Venkatesh

    Hi Venkatesh,
    Check the condition record in transaction NACE. Whether the print output field is present in the condition record.
    Regards,
    Gajendra.

  • Material item text not appearing in PO Print Preview

    Hi experts,
    We have created a new PO type .  We have assigned it with PO text via Spro>Purchasing>Purchase Order > Message > Text for messages > define text for purchase order
    Maintained text for document header
    Maintained  text for document item
    But still in Purchase Order , the material PO text at item level , is not appearing at the time of print preview / print out.
    Please suggest .
    Regards,
    ( Rajneesh Gulati )

    If I understand correctly, you want to copy the purchase order text from the material master directly into the PO's for this material.
    I got the same problem; text appears in PO item text, but doesn't appear on print preview.
    => check your forms first
    => if you can't find an error here, check the copying control in
    SPRO -> Materials Management -> Purchasing -> Purchase Order -> Texts for purchase orders -> Define copying rules for item texts
    go to the text linkages of the text type that you want to see appearing
    => make sure that the entries with source object 'material master' have the Fix value (blank) rather than N or * (if you see the text appearing in the PO but not on the print out, this means that this setting is currently set on *)
    Hope this helps

  • SAP SCRIPT Header text and Item text not printing in customized PO

    Hello Experts,
                          I have copied the standard MEDRUCK to ZMEDRUCK and customized the form according to the requirement.
    I want to print the header text and Item text in my form.
    For Header text I have used :
    /: INCLUDE &EKKO-EBELN& OBJECT EKKO ID F01
    Problem 1: The text what I enter in header text is flowing only when I hit on print preview without saving the form. Once I save the SAP SCRIPT  and click on print preview the field is appearing blank. I also tried to print the form, but the field is appearing blank even on the print out.
    Problem 2: For item text the field is concatenation of  EBELN & EBELP. Can anyone suggest me how to concatenate and fetch the text in item text.

    Hi,
        Im getting an error in my subroutine pool for i_xtline which is to fetch ITEM TEXT., It says its not a in any internal table nor defined as data. How can I proceed further. I have pasted my code below. Please check and revert ASAP
    PROGRAM  ZMEDRUCK_SUBP1.
    TABLES: EKPO, EKKO.
    FORM fetch_table_data TABLES in_tab STRUCTURE itcsy
                                 out_tab STRUCTURE itcsy.
    data xname like THEAD-TDNAME.
    data i_xtline like xtline.
    clear i_xtline.
    refresh i_xtline.
    CONCATENATE EKPO-ebeln EKPO-ebelp INTO v_item_text.
    MOVE v_item_text to ITEMTXT.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
      CLIENT                        = SY-MANDT
        id                            = F01
        language                      = EN
        name                          = ITEMTXT
        object                        = EKPO
      ARCHIVE_HANDLE                = 0
      LOCAL_CAT                     = ' '
    IMPORTING
      HEADER                        =
      tables
        lines                         = i_xtline
    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.
    ENDFORM.

  • Can we restrict the printing of PO Item text based on PO types?

    Dear Experts,
    We have a requirement related to printing of PO Item Text.
    We need to print a perticular Item text  only for a certaing PO type (ex:  NB only).
    How can we restrict the printing of PO Item text based on PO types?
    Please advise.
    Regards,
    Shashidhar

    Hi,
    In one of my earlier Projects we had a similar requirement and the Best solution we could give to our client was to Create New Output Type and asked our ABAPer to Delete/Deactivate the fields / texts which were not required  for PO printing and the User was asked to select the New Output type for Printing.
    Take help of a ABAPer to change the fields required for Printing  this new Output Type.
    Discuss with your client and see if it works.
    Best regards
    Amit Bakshi

  • Item text of PO print output is not generatiing but text is updated  in PO

    Hello ,
    I am changing the PO through IDOC. When ever there is change in the quantity ,net price and delivery date the print out put is generated autoamtically and changes are appearing the print output.
    when ever there is change in the item text of PO print output is not generatiing but item text is updated in the PO.
    If i change manually print out is generating for item text also but through IDOC print output is not generated . please help to slove this isuue.
    i am passing the value as :
    idoc_data-segnam = 'E1BPMEPOTEXT'.
    e1bpmepotext-po_item = Po line item number .
    e1bpmepotext-text_id = txtid.
    e1bpmepotext-text_form = textform.
    e1bpmepotext-text_line = line item text .
    idoc_data-sdata = e1bpmepotext.
    APPEND idoc_data.
    CLEAR idoc_data.
    CLEAR e1bpmepotext.
    please help me it is urgent
    Thanks
    Venkatesh

    Hi,
    For triggering the output for changes you have to make some changes.
    - Go to SM30
    - Enter view name "<b>VV_T161M_EF</b>".
    - Hit 'maintains' view.
    - Now let's say your outpu type is 'NEU'. For this there will be one entry like this.
    Operat.  Ctyp.  Name            Short text  Update
    1        NEU    Purchase order  New
    Now with this entry add one more entry like this.
    Operat.  Ctyp.  Name            Short text  Update
    2        NEU    Purchase order  Change      X
    You just need to enter Operat. = 2 and  Ctyp = NEU. The 'name' and 'short text' will come automatically.
    - Save your entry and create.
    After doing this, your PO will trigger output on change.
    Let me know if you have any other information.
    Regards,
    RS

  • Invoice ref and item text not printing in check ( F110)

    Hi Experts,
    When i tried to print check using tcode F110 by following the procedure , i came to know in structure REGUP , invoice reference ( regup-rebzg) and item text ( regup-sgtxt) are not updating in REGUP . I checked this in debugger mode.
    Also reference number ( regup-xblnr ) is updated in structure ,but not displaying in output check format.
    Actually we are using ( ECC 6.0 ) zform and z print program zRFFOUS_C which are copied from std one and made some changes.
    Even I checked for standard FORM F110_PRENUM_CHCK and RFFOUS_C by changing
    in FBZP configuration level (assiging std form and std program ).
    In this also same issue as mentioned above in debugger mode.
    kindly give me any suggestions .
    My requirement is to print
    1. invoice reference ( rebzg)( instead of document number)
    2. reference number (xblnr )( same as your document )
    3 . item text ( sgtxt )
    4. amount ( wrbtr)
    Thanks & regards,
    Rahul

    Hi all,
    I too am facing the problem of missing document numbers and invoice text while using F-58 for printing cheques. I am using the standard program RFFOUS_C but have customized the scrip F110_PRENUM_CHCK. If anyone has a solution to this problem please suggest.
    Thanks,
    BP

  • At the time of Sales Transaction Header & Item Text is not coming in print

    Hi Gurus,
    At the time of Sales order or Outbound Delivery or Invoice if I am giving text in Header or Item text it is not coming in Print , Please let me know Gurus what I need to do for it ,
    I need to get print of my text name also , means If I am typing Vehical no. in front of Vehical number text coloum , I wants to print Vehical Number : XYZ 01 123 in Print
    Please help me in this issue,
    Please let me know how we can add text in Excise Invoice,
    & Which Excise Register need to update from Sales ,
    & how to do it ,
    Please help me Gurus,
    Thanking you ,
    Reagrds,
    Sai

    Dear Sai,
    Take help of ABAPer to capture the header or item text in to the print copy of sales order ,delivery and invoice.
    I hope this will help you,
    Regards,
    Murali.

  • Item text in table not printing correctly

    Hi All,
      I have a requirement to display Purchase Order Line Item Text in one of the column in a table. I used table to do this, but it is not working correctly, when there is more data (more than one page) in long text.
    Columns using in the table
      EBELP MATNR LONG TEXT QTY CURRENCY PRICE Delivery Date
    Then, I used Subforms to achieve this, but i have a problem using this also. If the long text overflows then other fields after the long text are printing on the last page.
        EBELP MATNR LONG TEXT               - First Page
       LONG TEXT QTY CURRENCY PRICE DELIVERY DATE - last page.
    But, i am looking for a pattern to print
              EBELP MATNR LONG TEXT QTY CURRENCY PRICE DELIVERY DATE
                                       IF IT OVERFLOWS
                                       ONLY LONG TEXT ON NEXT LINES.
    Please suggest me how to do this.
    Thanks,
    Kumar

    HI William,
    Go here for help for Font problems and management in OS X
    You may have a duplicate or corrupted font.
    Carolyn

Maybe you are looking for

  • While installing sap netweaver pi 7.3 error occurred

    Hi, Experts. Hope all are doing good !!!!!!!!! Please help me how to solve below mentioned error.....  while installing sap nw pi 7.3 error occurred..... Here is the log file TRACE      2014-06-23 10:43:31.276 [synxcchapp.cpp:653]            CSyChild

  • My HP Pavilion g6 Laptop won't connect to the wifi.

    My laptop was working just fine about two days ago it was connected to the internet and everything was fine. Now it wont connect to the internet it says "Not connected" and also "No connections are available" which I know isn't true because my ipod i

  • Request Message Mapping - error

    Hello, Scenario : Flat file => File adapter => XI 2.0 => IDoc => SAP The adapter picks up the file, sends it to Integration Engine. In the Monitoring tool, the following are fine : Inbound Message, Receiver determination, Interface determination, Tec

  • Using log4j v.1.2 with Weblogic 7.0

    I try to use logging pissibilities of Log4j with Weblogic 7.0 using com.bea.logging.WeblogicAppender class from logtoolkit.jar. When I use Weblogic's version of Log4j (v. 1.1.3), all is OK. When I try to use current version of Log4j (v.1.2.6), I rece

  • In need for sample definition (WSDL) files

    HI, I am required to get some sample WSDL files for an RTC implementation, but I was unable to obtain any. The official developing guide is rather misleading about this. It told me to go to the RTC Integration Services web site (I think Oracle was sa