SAP Script info req to print new line iten on new page

hi
i had an req to print the list of MATNR & KUNNR on script,but the req is like this,at NEW MATNR,the script shd start with new page,say,if there are 5 MATNR,2 are same & 3 are same with diff KUNNR.
On first page:2 MATNR shd be printed
On Second Page:3 MATNR shd be printed & so on each time on new page...
Please tell me how to do it,in window MAIN,how shd i wirte code for this?
regds

hey,
Check this,
First in your print program call FM 'START_FORM'.
Then call FM 'WRITE_FORM'
After this call FM 'CONTROL_FORM' :
CALL FUNCTION 'CONTROL_FORM'
EXPORTING
command = 'NEW-PAGE'
EXCEPTIONS
UNOPENED = 1
UNSTARTED = 2
OTHERS = 3
IF sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
At last call FM 'CLOSE_FORM'.
By using FM control_form and passing parameter 'NEW-PAGE' you will get one new page even thow if content of ur main window of previous page is not exceeding..
hey call new-page for every new matnr
Regards,
Midhun Abraham
Edited by: Midhun Abraham on Oct 11, 2008 8:47 AM

Similar Messages

  • HT204135 I recently migrated from a 2 year old MacBook Pro to MacBook Pro Retina and now cannot get my LaserJet 3200 to print. I downloaded drivers from HP Support site but printer just prints a line of gibberish per page, and many pages.

    I recently migrated from MacBook Pro to MacBook Pro retina. Now my macbook will not print to my LaserJet3200 printer. I downloaded the drivers but still only prints a line of gibberish per page, and endless pages, when i send printer a print job. Any recommendations on how to correct this so the printer prints properly again?

    Hi
    where can I find the "generic PCL driver" you referred to Greg?
    Also, I searched for a LJ 2100 d4river and found these. should I be working with the HP website? or an apple website? my Apple software update is current.
    Find by product 
    Go
    How do I find my product name / number?
    5 matches found. Please select one below
    HP LaserJet 2100 Printer series
    HP LaserJet 2100 Printer
    HP LaserJet 2100m Printer
    HP LaserJet 2100se Printer
    HP LaserJet 2100tn Printer
    HP LaserJet 2100xi Printer

  • SAP Script : Control Commands for printing Label (barcode) by Zebra Printer

    Hello,
    I would like to know the control commands in sap script for Zebra Printer. The purpose of task is to print a field in barcode format in Right Bottom of the label.
    The sample code is placed below. Kindly have a look at it. The problem now i am facing is, the barcode for Customer PO is printing on the wrong place (Left Bottom, the text & barcode are overwriting). Can anyone suggest a possible way or can any one send the document for Barcode commands in SAP Script for Zebra Printer.
    Sample script code:
    Initialization and reset Barcode
    XAMCY^XZ
    Start
    ^XA
    Barcode setup
    ^BY3,2.7,2.2
    Set label home position
    ^LH
    ^FWN
    FO385,025A0R,40,50FDPN: &VBAP-MATNR&FS
    FO385,725A0R,40,50FD&VBAP-ARKTX&FS
    FO385,1710A0R,40,50FDRtns: &zsntsc-contr&FS
    FO345,025A0R,40,50FDService Order# &AUFK-AUFNR&FS
    FO345,725A0R,40,50FDSerial# &EQUI-SERNR&FS
    FO345,1710A0R,40,50FDRepair Order# &VBAP-VBELN&FS
    FO245,025B3R,N,90,N,NFD&AUFK-AUFNR&FS
    FO245,725B3R,N,90,N,NFD&EQUI-SERNR&FS
    FO245,1710B3R,N,90,N,NFD&VBAP-VBELN&FS
    FO138,1710A0R,40,35FDCustomer PO# &VBKD-BSTKD&FS
    FO98,025A0R,40,50FDWrnty: &W_WARRANTY&FS
    FO98,605A0R,40,50FDRoute: &W_ROUTE&FS
    FO58,025A0R,40,35FDShip-to-name: &W_NAME1&FS
    FO58,1325A0R,40,35FDMinor Group/Nr: &TVM5T-BEZEI&FS
    FO58,1325A0R,40,35FDMinor Group/Nr: &TVM5T-BEZEI&FS
    FO18,885A0R,40,35FDReported By: &QMEL-QMNAM&FS
    FO18,1710B3R,N,90,N,NFD&VBKD-BSTKD&FS
    ^XZ
    Thanks in Advance,
    Ramasamy

    HI
    GOOD
    GO THROUGH THIS
    A barcode solution consists of the following:
    - a barcode printer
    - a barcode reader
    - a mobile data collection application/program
    A barcode label is a special symbology to represent human readable information such as a material number or batch number
    in machine readable format.
    There are different symbologies for different applications and different industries. Luckily, you need not worry to much about that as the logistics supply chain has mostly standardized on 3 of 9 and 128 barcode symbologies - which all barcode readers support and which SAP support natively in it's printing protocols.
    You can print barcodes from SAP by modifying an existing output form.
    Behind every output form is a print program that collects all the data and then pass it to the form. The form contains the layout as well as the font, line and paragraph formats. These forms are designed using SAPScript (a very easy but frustratingly simplistic form format language) or SmartForms that is more of a graphical form design tool. 
    Barcodes are nothing more than a font definition and is part of the style sheet associated with a particular SAPScript form. The most important aspect is to place a parameter in the line of the form that points to the data element that you want to represent as barcode on the form, i.e. material number. Next you need to set the font for that parameter value to one of the supported barcode symbologies.
    The next part of the equation can be a bit tricky as you will need to get a printer to print that barcode font. Regular laser printers does not normally print barcode fonts, only specialized industrial printers that is specifically designed to support that protocol and that uses specialized label media and heat transfer (resin) ribbon to create the sharp image required for barcodes.
    Not to fear though, there are two ways to get around this:
    - You can have your IT department do some research - 
    most laser printers can accept a font cartridge/dimm chip (similar to computer memory), called a BarDIMM that will allow a laser printer to support the printing of barcodes.
    - Secondly, you can buy software that you can upload in your SAP print Server that will convert the barcode symbology as an image that will print on a regular laser printer. I found that this option results in less sharper barcodes. This option is really if you need to convert a large quantity of printers (>10) to support barcodes. 
    - Thirdly, you can buy a third party software like Barcode.dll and install on your frontend PC connected to the laser printer.
    Now you have a barcode printed - what next?
    Well there are two options, depending on your business requirements:
    - You can use an existing SAP transaction on a regular workstation and get a barcode wedge reader to hook up between the keyboard and the PC. These wedge readers comes in a wand or scanner format. There are even wireless wedge scanners available that allows you to roam a few yards from the workstation to scan a label. This approach is mostly used where you want to prevent human errors in typing in long material, batch or serial numbers in receiving or issuing of material. The problem is that it's just replacing the keyboard input and you are basically locked down in one location and have to bring all the material to that location to process.
    - Another solution is to use SAPConsole transactions
    or write your own ABAP Dialog programs that will fit onto a barcode enabled wireless handheld terminal and that will follow the business logic as executed on the shop floor. 
    These programs are highly complex exercises in industrial engineering and ergonomics because of the limited screen sizes and limited ability to accept keyboard input. The user is instructed step-by-step and only scan and push F-keys to interact with the SAP system. Scan, scan, beep, beep, enter - highly automated.
    GO THROUGH THESE LINKS
    http://www.sap-img.com/abap/details-information-about-sap-barcodes.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/68/4a0d5b74110d44b1b88d9b6aa1315b/content.htm
    THANKS
    MRUTYUN

  • How to change a SAP script output without changing Print Program

    Hi,
    I want to change output of standard PO report printing object. I have to change the ZSAPSCRIPT but I have to keep the print program intact. please give me ideas.

    Hi for that you have to do following.
    1. Create a ZPROGRAM
    2. Write a Perform in your SAP Script.
    3. Write Form inside it your ZPROGRAM.
    Hope this will help you.
    <i><b>Reward points for helpful ans.</b></i>

  • SAP script and External docs - print in PDF

    Hello,
    We are printing maintanence orders (SAP script) through IW32 and recently we have added custom logic to print the external docs(word or excel) attached to the maintanence orders. So if we print a maintanence order with two attachments, we would get Order, Attach_1 and Attach_2 printouts. This functionality is working fine but when we print several orders at the same time all prints are getting mixed up. I was wondering if somthing like this would be possible.... Let's say we have a order of one page with two attachments, Attach_1 & Attach_2, of one page each and we create one single PDF document with these three pages in the print program and print this PDF at the end of the print program so that all the prints associated with one order come out as a single doc.
    Any ideas / sample code is appreciated. Thanks.

    Hi Raju,
    You are in double-trouble   ... another moderator rejected your other post while I was locking this one here. But I did read your comment in it.
    Please resist the temptation to cross-post. It messes up the forums and is unfair on those who take the time to answer your questions.
    I'll make a deal with you: If you go back and close all your 115 unresolved questions which can be closed (or no longer need to be open) and assign ponits accordingly (note: you do not need to post anything to close it, the "post comment" field is not mandatory ) then I will unlock this thread for you and we can carry on.
    It will take you an hour or two, but people will respect you for it.
    Let me know (I will be watching your resolved posts number).
    Cheers,
    Julius
    PS: Top right hand corner => "Your Questions"...
    Edited by: Julius Bussche on Sep 15, 2008 10:45 PM

  • How do we enable cutter option in the SAP Script for Zebra Label Printer

    Hi Gurus,
    We use Zebra Label(ZM400) printers to print the material documents(SAP Script). Could someone please tell me how do we enable the cutter option in the Zebra printer for the SAP Script?
    Your vaulable answers will be highly appreciated.
    Thanks in advance.
    Regards,
    Manoj.

    Hi Manoj,
         In Script you dont want to add any logic for Label Cutter, It should be in the Zebra printer settings if the printing is over it should cut the paper. If the print area is predefined for your material label then you can make use of standard label papers (Like 2"x4", 3"x4"....)
    Regards
    GK.

  • Print Apps won't print with C510a eStation. Prints thin line at top of page.

    My C510a eStation printer will not print using the Print Apps.  It just prints a thin line at top of page.  Everything works fine until I print.
    All other print functions work.  It prints from computer via WiFi.  It prints when I send an email to it.  It copies via the Zeen.  It just won't print using the Print Apps.
    Does anyone else have this problem?  What is the solution?
    12/23/2010 3:00PM.  I just got off the phone with an HP engineer.  She said that the eStation is still in the TESTING phase and to call to report problems so they can improve the product.  (I would have thought the product would have been fully tested before being released to the public!)
    She had me reset the Zeen display by holding down the volume keys while powering up.  This erased everything that had been done on the Zeen by me and resulted in no HOME screens, which will have to be set up by me.  The only app at the bottom of the blank home page was Yahoo!.  Even the printer app was missing.  I had to move it from the app tray to the home page.  Now, I have to spend hours, again, setting up the Zeen.
    After the reset, the printer apps seem to work now.  The Zeen will copy using the printer app.  My computer still seems able to print and scan to/from the eStation.
    The eStation C510a eStation printer and Zeen display are very exciting.  However, they are not for someone not willing to spend the time to get it to work properly.  If you have a cell phone, be prepared to use up a lot of minutes while on support.
    The HP engineer said that it will soon have a new release of Android operating on the Zeen which will allow it to be faster.
    This question was solved.
    View Solution.

    I have decided to return this printer to the store as it just has too many problems.  HP has essentially told me they will not issue updates to solve the problems.  I hate this, as I really loved the product.

  • New line at a new build

    Hi
    On the 18/2/14 I ordered a new line and bb package to my new build property. My current Infinity 2 services were terminated on the 28/2/14 and I was given the standard 4 week wait to be connected back up again but on standard ADSL broadband as Infinity didn’t come up on the system yet (which it now does btw).
    Everything was setup for the 27th March, I took the day off as holiday and no engineer turned up even though I was sent numerous txts and emails saying they would. No one contacted me and I got no explanation why this occurred. I rang up the next day and was told about some Openreach work that hadn’t been completed. Another update today and its now scheduled for completion on the 15/16th April so I assume I might be able to reschedule then if its completed.
    That will mean 8 weeks without a phone line or bb yet I am continually charged (like I’m still living at my old address) for services I can not use at all. On the 3/3/14 a full payment was made, then on the 21/3/14 another which had discounts for line rental (I make an annual payment) which came out in £1.98 credit, but the breakdown of the bill has a charge for £25 for Infinity 2 to begin with which I don’t even have. I would of thought that as I have no services what so ever I should only be given credit each month for the line rental I have already paid for.
    If possible could some one please check my order as I would like a refund for what I cannot use and terminate any further payments until my services have been installed (which could be anyone’s guess knowing Openreach timescales). I have no use of BT WIFI or BT Sport and as nothing is within my range.
    Regards
    Chris

    Hi
    I am sorry to see you are having problems
    I suggest you contact live chat at this link they should be able to help you
    http://bt.custhelp.com/app/contact/c/2902/?s_intcid=con_intban_sanda_contact_us_chat_from_forums
    If you want to say thanks for a helpful answer,please click on the Ratings star on the left-hand side If the reply answers your question then please mark as ’Mark as Accepted Solution’

  • SAP Script: How do you print internal table values in a VAR window?

    Hi
      I want to have a window like MAIN window where I can print data like line items and the no of lines are only 3..I have added one window type VAR. I have schedule line data in one internal table in which I am calling WRITE_FORM func.mod for the newly created window..But the last schedule line only getting printed...when I debug the script looping in internal table is happening correctly and going to window also happening but in the output its showing last schedule line...What could be the problem and how to over come this?
        Thanks in advance.
    Regards
    Vali.

    Hi Md,
    1. type MAIN window CAN GROW (vertically)
       But VAR window Cannot.
    2. If our window is type VAR or FIXED
       no matter how much we loop
       it will show only the last record.
       because it cannot grow.
      (every loop pass overwrites the contents in the layout)
    3. So if we use loop to print anything,
       THE WINDOW MUST BE OF TYPE "MAIN" ONLY.
    Hope the above helps.
    Regards,
    Amit M.

  • SAP SCRIPT: Header text not printing - Custom Purchase Order.

    Hello Experts,
    I have used the standard MEDRUCK and copied to ZMEDRUCK. I want the PO header text to print in my form.
    I have used subroutine-pool and called it in the form.
    Here is my subroutine
    FORM fetch_table_data TABLES in_tab STRUCTURE itcsy
                                 out_tab STRUCTURE itcsy.
      TABLES EKKO.
      DATA: BEGIN OF header OCCURS 0,
              ld_txt1(163),
              ld_txt2(163),
              ld_txt3(163),
            END OF header.
      DATA: li_lines LIKE STANDARD TABLE OF tline WITH HEADER LINE,
            ID like THEAD-TDID,
            TNAME LIKE THEAD-TDNAME,
            TDOBJECT like THEAD-TDOBJECT.
      DATA  HTEXT LIKE EKKO-EBELN.
    *  HTEXT = EKKO-EBELN.
      READ TABLE in_tab WITH KEY EKKO-EBELN.
      if sy-subrc = 0.
      TNAME = in_tab-value.
      ENDIF.
    TNAME = EKKO-EBELN.
    *CONCATENATE EKPO-ebeln EKPO-ebelp INTO v_item_text.
    *MOVE v_head_text to HNAME.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
    *   CLIENT                        = SY-MANDT
        id                            = 'F01'
        language                      = 'E'
        name                          = TNAME
        object                        = 'EKKO'
    *   ARCHIVE_HANDLE                = 0
    *   LOCAL_CAT                     = ' '
    * IMPORTING
    *   HEADER                        = TNAME
      tables
        lines                         = li_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.
    CLEAR out_tab.
    out_tab-VALUE = TNAME.
    CONDENSE out_tab-VALUE.
    MODIFY out_tab TRANSPORTING VALUE WHERE NAME = 'TNAME'.
    ENDFORM.
    And my script in the form is
    PERFORM FETCH_TABLE_DATA IN PROGRAM ZMEDRUCK_SUBP2
    USING &EKKO-EBELN&
    CHANGING &TNAME&
    ENDPERFORMpar RECEIVED FROM M/S     &TNAME&
    The header text is still not flowing in my form.
    What mistake i'm I doing here ?
    How can I resolve this ?
    Pls help !

    Hi,
    Data is li_lines internal table. 1st you have to read the text form the internal table line by sy-tabix.
    At last you have to concatenate these variable into the out tab value.
    you can use the following code
    ORM fetch_table_data TABLES in_tab STRUCTURE itcsy
                                 out_tab STRUCTURE itcsy.
      TABLES EKKO.
      DATA: BEGIN OF header OCCURS 0,
              ld_txt1(163),
              ld_txt2(163),
              ld_txt3(163),
            END OF header.
      DATA: li_lines LIKE STANDARD TABLE OF tline WITH HEADER LINE,
            ID like THEAD-TDID,
            TNAME LIKE THEAD-TDNAME,
            TDOBJECT like THEAD-TDOBJECT.
      DATA  HTEXT LIKE EKKO-EBELN.
    READ TABLE in_tab WITH KEY EKKO-EBELN.
      if sy-subrc = 0.
      TNAME = in_tab-value.
      ENDIF.
    ALL FUNCTION 'READ_TEXT'
      EXPORTING
      CLIENT                        = SY-MANDT
        id                            = 'F01'
        language                      = 'E'
        name                          = TNAME
        object                        = 'EKKO'
      ARCHIVE_HANDLE                = 0
      LOCAL_CAT                     = ' '
    IMPORTING
      HEADER                        =
      tables
        lines                         = li_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.
    data : f_lines TYPE i,
    DESCRIBE TABLE li_lines LINES f_lines.
    data: lstr type String,
          lstr1 type string,
          lstr2 type string,
          lstr3 type string,
          lstr4 type string.
    read table li_lines index 1.
    lstr = li_lines
    condense lstr.
    clear li_lines
    read table li_lines index 2.
    lstr1 = li_lines
    condense lstr.
    clear li_lines
    read table li_lines index 3.
    lstr2 = li_lines
    condense lstr.
    clear li_lines
    if f_lines GT 3.
    ead table li_lines index 4.
    lstr3 = li_lines
    condense lstr.
    clear li_lines
    ead table li_lines index 5.
    lstr4 = li_lines
    condense lstr.
    clear li_lines
    endif.
    data : v_text type text.
    concatenate  lstr1 lstr2 lstr3 lstr4 into v_text separate by ' '.
    CLEAR out_tab.
    READ TABLE out_tab WITH KEY name = 'TNAME'.
    out_tab-value = v_text
    MODIFY out_tab INDEX sy-tabix.
    Regards
    Nayan Kumar

  • SAP Script need to display main window two times on single page.

    Hello Guru's,
    So here is my requirement, we need to print check. We are using F110_PRENUM_CHCK and linked with driver prog RFFOUS_C. We have Letter size paper with three sections,
    1. Check
    2. Voucher Section (containing table of element 515, 525 and 530) 515: Heading, 525 : Regup-Belnr, Regup-XBLNR, Regud-Wrbtr.
                                                                                    530: Regup-SGTXT
    3. Voucher Section (As a receipt for bank itself) : contains same data as 2nd section.
    I tried several things reading all the previous post over here in SDN.
    1. Created Z form created two instances of main window it results just single display of table (voucher section) in section two and not in third.
    2. I also tried pasting two times same code in single main window which gives only last item line for the table.
    3. Created z driver program made changes in Write_form added control form for element 515 that does results in showing element 515 on both the location.
                CALL FUNCTION 'CONTROL_FORM'
                  EXPORTING
                    command   = 'NEW-WINDOW'
                  EXCEPTIONS
                    unopened  = 1
                    unstarted = 2
                    OTHERS    = 3.
                CALL FUNCTION 'WRITE_FORM'
                  EXPORTING
                    element = '515'
                  EXCEPTIONS
                    window  = 1
                    element = 2.
    3. For Element 525 and element 530 is not acting same. In the prog 525 = hlp_ep_element. And there are many write_form for this. I tried pasting each and every place same kind of code. It doesnt work. what it do it gives me three pages of output repeating every thing twice and weirdly.
    I am need this to be done as I already took so much time solving nothing is working.
    Please give me the exact location where to paste this code so I can have two times data of main window.
    Or is there any other way to do this....Any way will be good for me as long as it shows two times data in the form.
    The data is table.

    Hi Manju,
    I create a new window (no main) but does not run, please can you tell me what should I do to make it work.
    Best regards.
    Robert.

  • 2 Different HP Printers Not Printing Final Line at Bottom of Page

    This has now been over a year in attempting to figure this out --including NUMEROUS calls/emails to HP support, calls to Apple, and even an ENTIRELY DIFFERENT replacement printer (having gone from the Officejet 7310 to the Officejet Pro L7680) --and yet, this problem still persists.
    Basically, when printing a document that uses the entire page, the very last line at the very bottom of the page gets cut off --i.e. doesn't get printed.
    We have tried uninstalling/re-installing, the previously mentioned different replacement, trying a different driver, and pretty much everything under the sun, and it's still happening.
    All Apple had me do was an Archive and Install --again, futile
    (FYI the printer will print the entire document when photo-copying)
    The ONLY way around this is by my choosing "Borderless Printing", but that takes F-O-R-E-V-E-R to print just one document.
    Both "sides" of this issue are now "shrugging their shoulders" with me in the middle --so I thought there may be some users who have had this similar problem.
    Connecting via USB.
    Would TRULY appreciate any and all input.
    Thanks!!
    Message was edited by: keypounder

    What's really funny, BD, is that if ALL I do is change ONLY the BOTTOM margin setting via that Custom Page, the entire printer will automatically kick in to Borderless mode --despite my leaving the other margins intact.
    This is obviously some type of default on the HP driver that I am currently working with HP to somehow attempt to override.

  • I need a new line with a new number

    i been try to get someone from verizon i would like to install a new line

    You need to contact Verizon directly
    http://www.verizon.com/contactus

  • SAP Script Lineitems printing in different pages

    Hi All,
    I'm having a strange problem. I've created Sap Script for Goods Receipt form.
    For Material Document(60000201) which is having 2 line items its printing both line items on same page, Other Material Document(60000205) which is also having 2 line items, each line item is printing in different page(each line item is printing in new page).
    I check main page is having enough space.
    Both the Material document are printing through same Text element.
    Print program is SAP standard, I've created only layout.
    I have used /: Protect  /:EndProtect for displaying line items.
    searched in google as well, but couldnt find correct solution.

    hi ,
    i have used /: Protect /:EndProtect for displaying line items.
    as you have used /: Protect /:EndProtect This will print on  same page without page break
    regards
    Deepak.

  • 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.

Maybe you are looking for

  • FSL-01027 -   Installation error with BW 3.1

    Hi! I am trying to install IDES BW 3.1/SEM 3.5 but with no success. The installation is on a single stand alone machine, non-unicode with Oracle (MCOD) and OS=Win2000 Server. When I install the central instance, i got the following log: INFO 2006-03-

  • BPM. Creating element in container that references the sync. interface

    I couldn't select  synchronous, abstract interface for container element. i see only async interfaces. How to get sync interfaces there?

  • Avoid using Username and password in SOAP Envelope

    Hi Team I am working on calling the sercured web-service from PLSQL and able to call it successfully and get the response. In the SOAP envelope, I have header and body. Header contains the WS Security which includes username and password to authentic

  • 10.10.4 update allows enabling of TRIM support for non-Apple SSDs

    Careful with Trim and Samsung SSD's.  https://blog.algolia.com/when-solid-state-drives-are-not-that-solid/

  • Cant Sign In To CC

    When i go to sign in it asks me to enter password which is the correct one and then says congatulations you have been signed out. Have tried numerous attemps now to no avail. Weird one. Been CC member since the start and this is the first real proble