Regarding line feed in sap script

hi
i had a long if statement.
it is extending more than one line.
IF &REGUH-RZAWE& = '2' AND ( &REGUH-LAUFI0(1)& EQ 'E' OR &REGUH-LAUFI0(1)& EQ 'G' )
IF i use '=' Extended line  the statement in that line is printing as it is.
If i use '/:' this command even for the next line it works fine
what i s the correct procedure

Hi Guys!
I've tested it (it is really better then giving just assumptions). Only solution is the one from KK: use SHIFT+F8 - it will give You one extra line to continue Your command (but only one).
If You try to use next line SAPScript will interpret only first line of Your command, no mater which line type will You select for second line. Example:
/: IF &VBDKA-VKORG& EQ '0001'
/: AND &NAST-SPRAS& EQ 'DE'
In this case SAPScript will omit what is in second line and it will do whatever is inside this IF for every language. Whats more: If second line type is ' ' or '=', then You will get a printout of fixed text >> AND &NAST-SPRAS& EQ 'DE' <<
BR, Michał

Similar Messages

  • How to leave half line space in SAP Script

    Actually , I have a doubt regarding half line spacing on SAP Script ..
    I am working on Cheque Printing with  fbz5
    Now the issue in  the date, there are 8 box for the date in cheque .
    i.e  0 2 0 7 2 0 1 4
    Currently the date is comming on the cheque box ..like half up the box and half inside
    IF I give one space in cheque  window of my script with  /   its taking complete 1 space
    and result is ,it going down ..with one space
    I want to leave exact half line space ..so date is  adjusted  in the middle .
    I also tried moving my cheque  window from  upper margin in all format(CH , CM , MM  IN ..) above
    But it is taking exact one space .

    Hi Darshit,
    While creating the tab position, you have a option of line spacing.
    make it to 0.5 lines, to make exact half line.
    And also another way out, you can check by moving the 8 box created for the date up by 0.5 lines.
    Regards,
    Ganesh Lathi.

  • Line number in Sap Script

    hi,
    How to get line number in sap script form?
    Regards,
    Sal.

    hi ,
    there is no specific field for this you have to put a counter for that check these links
    Link for SAP Scripts (step by step procedure)
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Create_A_SAPSCRIPT_Form/How_to_Create_SAPSCRIPT.html
    SAPScripts
    http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
    http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
    http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
    http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
    http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
    http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
    SAP SCRIPT FIELDS
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/8033ea454211d189710000e8322d00/content.htm
    scripts easy material
    http://www.allsaplinks.com/sap_script_made_easy.html
    regards,
    venkat.

  • Find line no in sap script page

    In sap script there are five pages to be printed
    I want to check in each page the first line exists or not.
    as well as to identify the first line of each page.
    How to get a line number for each page in Sap script
    Please revert back asap
    Thanks

    hi ,
    there is no specific field for this you have to put a counter for that check these links
    Link for SAP Scripts (step by step procedure)
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Create_A_SAPSCRIPT_Form/How_to_Create_SAPSCRIPT.html
    SAPScripts
    http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
    http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
    http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
    http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
    http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
    http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
    SAP SCRIPT FIELDS
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/8033ea454211d189710000e8322d00/content.htm
    scripts easy material
    http://www.allsaplinks.com/sap_script_made_easy.html
    regards,
    venkat.

  • How to display the number of line items in sap-script report?

    Hi friends,
    I need a help regarding the SAP Script. In my script (report) I create two pages and created three windows (MAIN, HEADER, FOOTER) for each pages. Now the problem is while displaying the fewer line item which can come under the main window of the 1st page these line items are comming perfectly but for the remaining line items that comes on the second page the table headings and the boexs are not comming.
    Also it is displaying the total and the amount in text in every pages that should be display in last page.
    Here if I eleminate or comments the total and the amount in text for the first page the same is reflected in second page. Also I need to display the page-nor for each pages to displayed.
    I am requesting all the people out there kindly help me to solve this issues.
    Thanks and Regards

    There is no pre built solution for this. But we can show total pages in the report body.
    one way is Create a other column in the report with code sum(count(1))/25. that gives you total number of pages. 25 here is no of rows in each page. The code you can write in narrative "Total pages in the report are @5" and out put may be "Total Pages in the report are 30".
    If you are using pivot tables, you can try this.
    http://oraclebizint.wordpress.com/2008/01/17/oracle-bi-101332-pagination-in-pivot-tables/
    - Madan

  • Multiple line issue in sap script

    Hi All,
    There is a window in the sap script.
    The window consists of a text element and i am displaying 4 lines of text in that window.
    Sap script:
    /E   Reason
    AC  &LINE&
    In the source code, an internal table will have 5 text lines and those 5 lines should be reflected in sap script.
    The source code as follows.....
    loop at li_tline.
    CALL FUNCTION 'TEXT_SYMBOL_SETVALUE'
             EXPORTING
                  NAME  = 'LINE'
                  VALUE = li_tline-tdLINE.
      CALL FUNCTION 'WRITE_FORM'
           EXPORTING
                ELEMENT = 'REASON'
                WINDOW  = 'REASON'
                function = 'APPEND'.
    endloop.
    In final output, the last line of the internal table is reflacting..... Hope its getting over written each time in the loop.
    How to make the code, so that i can reflect all the lines from internal table to the sap script....??????????????
    Please help me, as this issue is very much urgent..........
    Regards
    Pavan

    Hi
    Do like this.
    declare 5 variables each of 80 char length.
    data: v1(80), v2(80), v3(80), v4(80), v5(80).
    Read the Internal table li_tline with index and move each line to different variables and write those variables in the script.
    if not li_tline[] is initial.
    read table li_tline  index 1.
    if sy-subrc = 0.
       v1 = li_tline-tdline+0(80).
    endif.
    read table li_tline  index 2.
    if sy-subrc = 0.
       v2 = li_tline-tdline+0(80).
    endif.
    read table li_tline  index 3.
    if sy-subrc = 0.
       v3 = li_tline-tdline+0(80).
    endif.
    read table li_tline  index 4.
    if sy-subrc = 0.
       v4 = li_tline-tdline+0(80).
    endif.
    read table li_tline  index 5.
    if sy-subrc = 0.
       v5 = li_tline-tdline+0(80).
    endif.
    endif.
    write the &V1& &V2& &V3& &V4& &V5& variables ins cript
    Reward points if useful
    Regards
    Anji

  • How to Draw diagonal lines in a SAP Script

    Hi All,
    I got a requirement to strike out a box with diagonal lines in SAP Script. My client is not interested in just shading out the box. He want atleast 3 or 4 diagonal lines to make feel the customer that the box is striken off.
    How can we do this ?
    Thanks & Regards,
    Bhupal

    Hi B,
    as u have the dimension of  the box..so create a box in paint as bmp.....with digonals as u required.....
    upload this image thru SE78...and call it in ur script.......
    and superimpose that graphic on the text box....
    hopefully this will solve ur problem...
    thnx
    rohit

  • Regarding Multiple pages in SAP Script Output

    Hi All,
    I have a requirement in SAP Script where i need to print data in multiple pages. I had created 1 page - FIRST with properties <b>Next Page</b> as FIRST , <b>Mode</b> as INC.
    In the output i have multiple line items, the data will carry upto 3 pages.
    Now In the output First page data is printing correctly.
    In the second page all the windows are carried forward to print all the data correctly except in MAIN WINDOW.
    In Second page in MAIN Window i have ITEM HEADER which i want to print on every page as it is printing in First page of output, but i am not been able print ITEM HEADER though i am able to print all the ITEM DETAILS correctly on every page.
    Can anybody tell how can i print ITEM HEADER on every page which is in MAIN Window.
    Thanks in advance.
    Thanks & Regards,
    Rayeezuddin.

    Hi Shaik,
             If you are only printing Item Details in the Main Window, why don't you create a saperate window just above your main window for Item Headers.
    Hope this should solve your problem or Please elobarate your query.
    Thanks,
    Vinod.

  • Vertical line issue in SAP Script main window

    Hi All,
    I want to draw a vertical line in my main window in SAP Script output.
    But problem is in main window i am printing some texts at the beggining then i am printing line items.
    So this is not fixed line (box). It may increase/decrease based on text available before line items.
    How can i manage this prining vertival line as i don't know height, top of this line!
    Thanks in advance.
    Thanks,
    Deep.

    Hai Deep,
    Use Elements as suggested by Kodarapu.
    Now goto Paragraph Formats create a format for Item lines.
    ex.
    Name Paragraph Format as 'IL' Now click on the Push Button "Tabs" on bottom Right.
    now in "Tab Position" enter the spacing that you need for your item dispaly
    ex.
    Number     Tab position       Alignment
    1               6.00   CH          LEFT
    2               25.00  CH         LEFT
    3               54.00  CH         LEFT
    The above example is for 3 items
    Now in your Script Windows-> Main
    do the following.
    /E           ITEM_LINE_A
    IL           &EKPO-EBELP&,,&EKPO-EMATN&,,,,&EKPO-TXZ01&
    Hope it SOlves your Issue.
    Cheers,
    Suvendu

  • Regarding line feed

    Hi experts,
        I tryig for line feed in the Text file. I'm using CL_ABAP_CHAR_UTILITIES=>NEWLINE.
    example
      CONCATENATE lv_tmp_str
                  wa_notes-tdline
                  cl_abap_char_utilities=>cr_lf
             INTO lv_tmp_str.
    it showing error, the Class cl_abap_char_utilities UNKNOWN.
    how to declare, please help
    Vani

    Hi experts,
    I'm not getting solution for this
    need to disply the Tities for the PopUp screen, window screen, subscreens,... In Thai Language in Thai Login, But It was not displaying any thing including all the SAP standard screens. In debugging mode the sy-title is displaying but not in window title,
    Other than the English Login, The titles is not Displaying
    - I was checked in SE63, TRDIRT table, SNL3 transaction but of no Use
    - Options I18N has been set with Thai and font
    Any body had came across this.
    so I want to know that any Gui patches have to install , or any setting have to be done ..
    looking for your great help

  • Regarding Paragraph format in SAP Script

    Hi SAP Gurus,
    Can any one please tell me the use of TABS in paragraph formats in SAP Script.
    Thanks & Regards,
    Pavan Bandaru.

    Hi
    first you define you tab in paragraph formats.
    whene you must use this pharagraps you
    just insert double comma before the text.
    ,,&matnr&
    attention because if you define more than a tabulator il will take the tabulator in sequence.
    ,,(1st tab)&matnr&,,(2nd tab)&matnr&
    if i define a tabulator of 2cm and another of 3cm and you insert 4 comma
    ,,,,&matnr&
    it will take the summ of the two tabulator.

  • Regarding Address EndAddress in SAP Script

    <i>Hi Abapers,
    I am having a problem while displaying the address in SAP Script through Address EndAddress.
    Problem is it is displaying the data correctly but it display the Region Code. Now the requirement is to display the Region Description instead of the Region Code.
    Can you please provide me any solution for this.
    I am sending the Address EndAddress which I have written in my code.</i>
    /:          ADDRESS DELIVERY PARAGRAPH ZC
    /:            NAME     &VBDKL-ZBTNAME1&, &VBDKL-ZBTNAME2&, &VBDKL-ZBTNAME3&, &VBDKL-
    /:            STREET   &VBDKL-ZBTSTRAS&
    /:            CITY     &VBDKL-ZBTORT01&, &VBDKL-ZBTORT02&
    /:            POSTCODE &VBDKL-ZBTPSTLZ&
    /:            COUNTRY  &VBDKL-ZBTSLAND&
    /:            REGION   &VBDKL-ZBTREGIO&
    /:            FROMCOUNTRY &VBDKL-ZBTLLAND&

    Hi
    ADDRESS and ENDADDRESS is used to specify the address which will
    be formatted according to the target country i.e the recipient country.
    e.g. /:ADDRESS sales PARAGRAPH C
    /:NAME &KNA1-NAME1&
    /:STREET &KNA1-STRAS&
    /:POSTCODE &KNA1-PSTLZ&
    /:CITY &KNA1-ORT01&
    /:COUNTRY &KNA1-LAND1&
    /:FROMCOUNTRY 'DE'
    formatting address
    http://help.sap.com/saphelp_46c/helpdata/en/d1/803238454211d189710000e8322d00/frameset.htm
    http://help.sap.com/saphelp_40b/helpdata/en/d1/803238454211d189710000e8322d00/content.htm
    <b>Reward if usefull</b>

  • New line feed in SAP ABAP

    Hello All,
    I am facing problems to handle long text in my RFC. I have created a field with character type of length 1000. Client sending data into it. ultimately i need to pass that text into Inspection text of material master creation. I devided it as 72 character lengh and paasing it into material master. but when passes text as continueous line its working fine. when data sent as different lines, it is calculating 72 characters and deviding the text.  client passing data as follows..
    1.Material master creation
    2.Created by Joy
    3. created on 29.05.2009
    4.To be maintained in all plants of US
    but when 72 characters are over it is starting it from next line as follows..
    1.Material master creation
    2.Created by Joy
    3. created o                   ( if 72 characters over here)
    n 29.05.2009
    4.To be maintained in all plants of US
    is there any way to identify the next line feed in ABAP and other logic to handle this situvation.
    If u haven't get my problem pls ask me i will explain it further.
            Kumar.

    Few questions which might help to understand the issue.
    1. Is client's data is coming in more than 72 chars per each line? Then you can request client to send the data with max. 72 chars per line. Else dividing the string into 72 chars will loose the readability of text since logic can not be built to divide the text.
    Start reading the text string starting from left for maximum 72 chars . If 72th character is non space then go backwards i.e. read 71, 70, 69... till last character should be a SPACE.
    Eg. string is
    'xxxxxxxxxxx...........This material is created for plant xyz. date of creation is 03.02.2009'.
    x = string72(1) should be a SPACE else take x = string71(1)  and likewise.

  • Regarding screen shots of  SAP SCRIPTS

    Hi Frenz,
    please help me on sending SAP Scripts step by step procedure screen shots.

    hi
    good
    check these links, this may help u....
    SAPScripts
    http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
    http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
    http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
    http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
    http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
    http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
    http://www.supinfo-projects.com/fr/2005/forms_sapscript_en/introduction/
    SAPscript in Detail
    http://help.sap.com/saphelp_47x200/helpdata/en/d6/0db74a494511d182b70000e829fbfe/frameset.htm
    SAP SCRIPT FIELDS
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/8033ea454211d189710000e8322d00/content.htm
    scripts easy material
    http://www.allsaplinks.com/sap_script_made_easy.html
    reward point if helpful.
    thanks
    mrutyun^

  • Not Printing Item Schedule line items in SAP Script

    Hi ,
    I modified  copied sap standard script(MEDRUCK) and copied my Zprogram to standard program.
    But here every thing is fine but i am not getting schedule line items and item text  in items data for every item
    thanks,
    sriram

    Hi
    Pls Check in the Line item Ur using the syntax properly or not..In SAP if it ios syntax error it won show..Pls chk the syntax properly ...POr try to debug the script and see whether item text is coming or not.
    If it is not coming check me23n whether tat PO has item text or not..if it is there Problem is in ur Include text.

Maybe you are looking for

  • Utf-8 on Windows and java 1.4.2

    There is a problem in running my application on Windows (2000, 2003, etc.) using java 1.4.2_x. The same code is working fine on Linux. Furhtremore, the same code is working fine with java 1.4.1_x on both OS's The application is reading an XML file an

  • Photo folders

    How do i set up multiple folders for various photos topics in my iphone? Once established in my iphone, do they get managed via the phone or via itunes?

  • Can't add audio files (PSE 5)

    PSE 5 won't allow students to add audio files(WAV or MP3) to slide shows. Error message is as follows. "...system does not have required compressor/decompressor (codec) installed." I'm working in a lab situation. Only 2 of the 24 computers are having

  • Local storage resource need and use. How it difference from actual VM instance drives?

    Hi, I am not able to quite understand the use of local storage resource that we configure from service definition file. The local storage is not durable and provides access same as file storage we would typically use in local environment like c:\my.t

  • Encounter Problem when upload Data for T-Code CJ92

    Dear All, I want to upload Standard WBS element through transaction code CJ92.  I am encountering a problem when I want to upload more than 13 Standard WBS for a project using recording (SHDB).  I have also tried to upload data through BAPI u201CBAPI