Problem in sap script for Item data

Hi Guys ,
Although I am working in ABAP for last 1 year but I am new to SAP script , This is first time I am doing this -
I am creating excise invoice profarma and able to print all that data except J_1IEXCDTL ( Item data ) that I have to display in loop ,
I am using
LOOP AT ITAB_J_1IEXCDTL.
  CALL FUNCTION 'WRITE_FORM'
       EXPORTING
            ELEMENT = 'ITEM_VALUES'
            WINDOW  = 'MAIN'
       EXCEPTIONS
            ELEMENT = 1
            WINDOW  = 2.
ENDLOOP.
My problem is that this is working fine for 1 record but if there are more than 1 record in ITAB_J_1IEXCDTL. , it is showing only first record ,
Other thing i want to know what is connection of element between Driver program and sap script , Can we give any name to element and it doesnt make any impact on Sap script
i have done same in my program ,
Thanks in advance
Amit

my problem is solved now ,
Thanks

Similar Messages

  • Problem in Sap script for Check printing

    Hi all,
      I have problem in Check printing for FI Module. In Tcode f-58 i am taking the printout of checks. For my user they want to move the main window in upwards, but the sap script <b>F110_PRENUM_CHCK</b> not allowing to move upwards. how to do this, its urgent. plz
    point wil be sure.
    Gowri

    Hi
    Copy the script F110_prenum_chek to some ZCHECK and do the changes.
    Why you can't change the MAIN window towards up?
    You can changes ths ize of it by adjusting the setting of it .
    generally we use some pre printed stationary for this in which all the line item data with doc numbers is printed on top and the check will be in bottom
    and in check we just print the few fields in the right positions.
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Sap script for Delivery(item wise)

    Dear ABAPer's ,
        I am working on a SAP Script for Delivery(<b>Item wise</b>).The requirement is I need a print out for each line item in a delivery.I am using tcode VL71 for taking prinout.
    I have modified the routine <b>RVADDN01</b> according to my requirements.But the problem is i am not able to capture
    which line item is selected.Whichever lineitem i select it is giving the details of all the line items.
    Am I using the correct routine or someother routine is available for item wise details.
    Please clarify.

    hi SAP ,
    u have selected right one , Just Debug the script from which text Element u are getting the data into Form, then check ur Logic.
    Regards
    Prabhu

  • How to create a sap script for sales order header items?

    Hi friends i am totally new to scripts i have got a task where i have to create a sap script for sales order header items details, the clue that i have got is to create using MEDRUCK but i have got no idea please can any body help me with this task with any sample sap script?
    Points will be rwwared with out fail Thks in advance.

    Hi,
    The Standard Form NAme is RVORDER01
    Regards
    Sandipan

  • Long text problem in sap script

    Hi Experts,
    I have craeted sap script for payment print progrem.. in my sap script one window is text window... client want more then 300 char for that window. for that i use read_text function module... its working fine... but problem is it retrive only one line from long text editor. only 70 char i got.
    below is my coding......
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        ID                            = '0001'
        LANGUAGE                      = sy-langu
        NAME                          = NAME
        OBJECT                        = 'DOC_ITEM'
      TABLES
        LINES                         = LINES          .
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT LINES.
      n = 0.
      l = 132.
      text+n(l) = lines-tdline.
      n = n + 132.
      l = l + 132.
    ENDLOOP.
    in sap script i have direct pass lines-tdline
    *&lines-tdline&
    Please suggest me which point i missing?
    Thanks
    Jigar

    Hi All,
    The standard text will be stored in Name = ORDCONF_TEXT_(sales org)_(distributionchannel)_(division)
    Text ID = ZSD
    Examples: ORDCONF_TEXT_4000_01_01 , ORDCONF_TEXT_4000_01_80 , ORDCONF_TEXT_1000_01_01.
    Requirement :
    The print program /form will need to pick up the appropriate standard text based on the Sales Area (combination of Sales Org / Distribution Center / Division) of the sales order [VBAK-VKORG / VTWEG / SPART], provided a standard text has been created for that Sales Area. Itu2019s not required that every sales area have a standard text, so if one is not found, this step should be skipped and the rest of the print program executed.
    The new text should print after 2 blank lines after the Printable Notes text (which is after the line items and the Total Net Price prints).
    The font should be the same size as the Printable Notes, but bolded rather than italicized.
    The text should print in the same columns as the Printable Notes currently print in (Material Description / Scheduled Ship Date / Quantity) .
    So the logic i have used is this below code:
    I used a subroutine in the layout of the main window becoz i need to print it in the main window below after 2 blank lines of line items.
    This is logic in the layout:
    /:PERFORM GET_OBJECT IN PROGRAM ZSDRP001_ORD_CONF_IRE
    /:USING &VBDKA-VBELN&
    /:CHANGING &ORDCONF_TEXT&
    /:ENDFORM
    /:INCLUDE &ORDCONF_TEXT& OBJECT TEXT ID ZSD PARAGRAPH A1
    I called this subroutine in the print program:
    Logic in the print program:
    FORM GET_OBJECT TABLES INPUT_TAB STRUCTURE ITCSY
                                                 OUTPUT_TAB STRUCTURE ITCSY.
    DATA : TMP_VBELN LIKE vbdka-VBELN,
                TMP_VKORG LIKE VBAK-VKORG,
                TMP_VTWEG LIKE VBAK-VTWEG,
               TMP_SPART LIKE VBAK-SPART,
               TMP_TXNAM1(40) TYPE C VALUE 'ORDCONF_TEXT',
               TMP_TXNAM2(100) TYPE C.
    DATA: v_text LIKE tline-tdline.
    DATA : P_V_TEXT LIKE tline-tdline.
    CLEAR : TMP_TXNAM1, TMP_TXNAM2, TMP_VBELN, TMP_VKORG, TMP_VTWEG, TMP_SPART.
    READ TABLE INPUT_TAB WITH KEY NAME = 'vbdka-VBELN'.
    IF SY-SUBRC = 0.
    tmp_vbeln = input_tab-value.
    ENDIF.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING INPUT = TMP_VBELN
    I
    MPORTING OUTPUT = TMP_VBELN .
    CLEAR VBAK.
    SELECT SINGLE VKORG VTWEG SPART INTO (TMP_VKORG, TMP_VTWEG, TMP_SPART)
                                            FROM VBAK WHERE VBELN EQ TMP_VBELN.
    IF NOT TMP_VKORG IS INITIAL
    AND NOT TMP_VTWEG IS INITIAL
    AND NOT TMP_SPART IS INITIAL.
    CONCATENATE TMP_TXNAM1 TMP_VKORG tmp_vtweg tmp_spart into TMP_TXNAM2 SEPARATED BY '_'.
    endif.
    CONDENSE TMP_TXNAM2 NO-GAPS.
    PERFORM read_order_text USING TMP_TXNAM2 CHANGING v_text.
    READ TABLE output_tab WITH KEY NAME = 'ORDCONF_TEXT'.
    IF SY-SUBRC = 0.
    output_tab-value = P_V_TEXT.
    MODIFY output_tab index sy-tabix.
    endif.
    endform.
    FORM READ_ORDER_TEXT USING P_TMP_TXNAM2 CHANGING P_V_TEXT LIKE tline-tdline.
    DATA: ztdid LIKE thead-tdid,
              zlang LIKE thead-tdspras,
              zobj LIKE thead-tdobject,
              zname LIKE thead-tdname.
    DATA: tlines TYPE STANDARD TABLE OF tline WITH HEADER LINE
              thead LIKE thead.
    CLEAR P_V_TEXT.
    ztdid = 'ZSD'.
    zlang = 'E'.
    zobj = 'TEXT'.
    zname = P_TMP_TXNAM2.
    CLEAR tlines.
    REFRESH tlines.
    CALL FUNCTION 'READ_TEXT'
    EXPORTING
    object = zobj
    name = zname
    id = ztdid
    language = zlang
    IMPORTING
    header = thead
    TABLES
    lines = tlines
    EXCEPTIONS
    id = 1
    language = 2
    name = 3
    not_found = 4
    object = 5
    reference_check = 6
    wrong_access_to_archive = 7
    OTHERS = 8.
    LOOP AT tlines WHERE NOT tdline IS INITIAL.
    MOVE tlines-tdline TO P_V_TEXT.
    ENDLOOP.
    ENDFORM.
    But still its not getting printed .Plz tell me where i am going wrong.
    Thanks,
    Suman

  • Problem with sap script table in main window

    hi all,
    i have created a sap script  for which output is in 7 pages.
    except first page all the remaining pages are giving the correct output.
    the problem with the first page is iam not not getting vertical lines in the table which is in the main window of page 1.
    iam getting the vertical lines correctly in the mainwindow table of all the remaining pages.

    Hi,
    It's simple,
    Pre- U should had declared a second page for the same window with header, main & footer.
    now
    First when u r looping the internal table provide no of rows eg Row 1 TO 10. in the Loop ( Data Tab)
    or
    when defing TEXT Go to PC Editor and mention all the fields Under  PROTECT -  ENDPROTECT.
    This would solve the issue.
    Thanks
    Ravi

  • Quantity field conversion problem in SAP script

    Hi experts,
    I have problem with sap script quantity field conversion.
    In purchase order the actual value of field( MDPM-ERFMG) is 3,500.
    But in Print preview it is showing only 3.5
    Any one Please help me in this problem
    thanks in advance
    murali

    Hello,
    check this:
    Number of Decimal Places
    A program symbol of one of the data types DEC, QUAN, and FLTP can contain decimal place data. Use the option below to override the Dictionary definition for the number of decimal places for the formatting of this symbol value.
    Syntax
    &symbol(.N)&
    The EKPO-MENGE field contains the value 1234.56. The Dictionary definition specifies 3 decimal places and an output length of 17.
    &EKPO-MENGE& -> 1,234.560
    &EKPO-MENGE(.1) -> 1,234.6
    &EKPO-MENGE&(.4) -> 1,234.5600
    &EKPO-MENGE&(.0) -> 1,235
    REgards,
    Vasanth

  • SAP Script for Delivery

    Dear ABAPer's ,
    I am working on a SAP Script for Delivery.The requirement is I need a print out for each line item in a delivery in a seperate page.
    For example if the delivery has 3 line items.I should print each line items details in 3 seperate pages.
    I have modified the routine RVADDN01 according to my requirements.
    How to do this...

    Hi Sapient,
       In order to create a page for each line item what you have to do is in the script part where you have written the values.
    for eg: if the line item details(VALUE) are in an internal table "<b>I_DETAILS</b>"
    <b>Script:</b>
    /E DET
    P1 &I_DETAILS-VALUE&
    /: NEW-PAGE
    <b>Driver program:</b>
    Loop at i_details.
    CALL FUNCTION 'WRITE_FORM'
       ELEMENT                        = 'DET'
       TYPE                           = 'BODY'
       WINDOW                         = 'MAIN'.
    Endloop.
    Try this it would work.
    Reward if helpful.
    Regards,
    Tushar

  • Problem with SAP Script FAX output

    Hi Friends,
    I have problem with SAP Script Fax output.
    After I issued output using the messge type, the print preview format shows me correct alignments and the right data. But when I go to List display using the menu bar functions from the print preview screen, the list is showing me the right data, but all the alignments at the main window went wrong.
    How do I rectify this problem? I need correct alignments in both form display and list display.

    Hi Sasidhar,
    Have you tried with different fax machine.
    Regards,
    Atish

  • Re: Problem providing download link for BLOB data in apex report

    Hi Don,
    Your solution below worked but in the download option i only see save but not open for PDf file in the blob. Please let me know if you have any suggestion to achieve it
    Thanks
    Jo
    Problem providing download link for BLOB data in apex report 
    591953 Nov 19, 2008 1:55 PM (in response to 660436)
    Currently Being Moderated
    Good morning,
    Here is how I have solved this problem.
    1. The select statement in the sql for the report should not include the BLOB column. I decided to select only 2 columns, the column that has the key and the column with the filename.
    2. On the first column ( the primary key ) I put in the format statement that was simply DOWNLOAD:TABLENAME:BLOB_COLUMN:PRIMARY_KEY
    This works. I believe that the Oracle error I was getting was because I was trying to apply this format statement to the actual BLOB column.
    So, it appears that you can use any of the columns in the report to hold the DOWNLOAD format statement since in the format statement, you are defining the BLOB table, BLOB column and the primary key into that column.
    Hope this helps,
    Don.

    Branched out from a years old thread.
    user3003326 Don't post to old threads, please.

  • How to Flip the Sign using Calculation script for historical data

    I am currently using Essbase 9.3.1. Its required to flip sign for a specific set of accounts for that i am currently using UDA's to flip the sign.
    But now i need to flip the sign for the historical data too. Is there any possible way to flip the sign using calculation scripts for historical data. Kindly let me know your suggestions.
    Many thanks in Advance...
    Edited by: [email protected] on Jul 30, 2009 9:37 PM
    Edited by: [email protected] on Jul 30, 2009 10:58 PM
    Edited by: [email protected] on Jul 30, 2009 11:01 PM

    Of course there is. This is the kind of calc script that only gets run once, so make usre you test it well before doing it on production and make a backup of production before doing it.
    It would be something like
    Fix(time frame, accounts to be flipped, level zero other dimensions)
    actual = actual * -1;
    EndFix
    Cal dim dimensions
    Note, I chose actual, but you could do it for any dimension that has a single or only a couple of members. What ever dimension you choose to do the calculation on, it can't be included in the fix statement

  • How to attach print program and sap script for F150 transaction

    How to attach print program and Z sap script for F150 transaction

    Hi,
    you can find the customization for dunning in transaction SPRO under this path: Financial Accounting->Accounts Receivable and Accaounts Payable->Business Transactions->Dunning.
    Kostas

  • Automate script for import data

    automate script for importing data to the cube from txt files.
    Ex: - I have below 2 files for import
    aaaa.txt
    bbbb.txt
    For the above simply i can write esscmd or Maxl script for importing files .
    Esscmd :
    IMPORT 3 "\aaaa.txt" 4 "N";
    IMPORT 3 "\bbbb.txt" 4 "N"
    my question , suppose if some more files added to the existing files, for example cccc.txt got added ,how can i write a code for this?

    Well I guess this will do
    dataDir=" " # Give the data directory path here
    maxlFile="maxl1.msh"
    cd $dataDir
    for file in `ls *` ;
    do
    maxlStmt="import database sample.basic data from data_file '$file' using rules_file 'xxx.rul'
    on error write to 'xxx.log';";
    printf $maxlStmt >> $maxlFile
    done
    ls * is lists all the files in the directory. If you want to be more specific and if you yhink tat your data folder may contain more files then you can use "ls *.txt" if your file extension to load is txt.
    Well I haven't tested this as I am on vacation...So you can just follow the similar way.
    This is only for the 3rd point which you said

  • User Email Id on the SAP script for the balance confirmation

    User needs mail id on the SAP script for the balance confirmation
    I have checked the AR-->Correspondence but not able to figure out.
    Thanks

    Hi,
    Actually the issue is:
    User(Witty Lam) wants his official Email id while generating the SAP Script on header.
    We are able to get the Fax and Telephone number but Email id is not coming.
    Can you help me out in finding the place where we maintain the USER's phone, fax number and email id.
    I have identified the Structure and field i.e FSABE-INTAD
    My project is production support project..
    Thanks,
    Jittesh

  • New SAP scripts for P14,P35, P60

    Can anyone let us know where we can get sap script for HR_GB_P14_2010,
    HR_GB_P35_2010 and HR_GB_P60_2010?

    Hi Vijay,
    The sap script of HR_GB_P14_2010 and HR_GB_P35_2010 are provided via
    Note No. 1395778 but the HR_GB_P60_2010 is still under process. You would
    get the same via Note 1415913, which is still under process as mentioned
    in above note.
    Regards
    Roop

Maybe you are looking for

  • Can't sign in or sync from Photoshop

    Mac Pro 10.7.5 and I have just had to replace HD Have been able to log in on net and and download PS & Bridge and get CC desktop app. However I can't sync to my laptop. There is no Adobe ID showing under the "Photoshop Menu" And nothing happens when

  • Microsoft Word templates move and hide document window

    Often when I open Word for Mac, the toolbars have moved to strange locations on my screen and will cover the document window's top portion so that I cannot even move it. Is there no way to force Word to memorize the locations where they were last lef

  • Idoc error 29 - Error in ALE service

    Hi All, I have this error 29 - Error in ALE service when the idoc is created (No global company code is assigned to the company code). This message comes after 01 - IDoc created Any idea why this is happening? I have created conversion rule to conver

  • Spot healing brush with content aware or proximity match?

    I want to do the following: 1. get rid of wrinkles, blemishes and dark circles under the eyes What is the difference between using the content aware option and the proximity match option with the spot healing brush? Aren't they both blending surround

  • XML Parse in JSP

    Hi! i have a little problem, * i have a sync BPEL process. * i make a database query using a PartnerLink, example a simple table with id and description. * my wsdl file, i change the type of the result variable and looks like this: <element name="ROW