Sap script - please use meaningfull subject titles....

Hi,
My requirement is to print theree texts in theree different lines.So I declared the texts in SAP script with the command "/".
Buut in spool I am getting all the three texts in one single line.Can anyone suggest how to get the texts in three different line?
Thanks in advance.
Edited by: Julius Bussche on Jan 22, 2009 2:30 PM

Ginger
One solution to this can be creating 3 separate windows and displaying text in each one of them separately. Make sure the allignment of these windows is exactly in the way you require the text to get displayed.
The other way can be by declaring a new character format and going about it. Like for paragraph format XX, you can use it like,
XX    ALL THE BEST.
XX    GOOD JOB.
XX    WELL DONE.
Hope this is useful.
Regards
Harsh
Edited by: Harsh Talesra on Jan 22, 2009 2:13 PM
Edited by: Harsh Talesra on Jan 22, 2009 2:27 PM

Similar Messages

  • Bapi - please use meaningfull subject titles!

    HI experts,
            I have uploaded txt file into itab and then splitted itab-record at comma and populated itab1.itab1 is having quantity field of type char13. This itab1 is to be passed to bapi_requision_create.To do this, I am moving itab1 to 'requision_items' tab where quantity is of  p. when I am moving itab1-qunatity to requisition-quantity , it says , that it can't be moved.How to handle ? my  code is as below,
    loop at it_bapiebanc into wa_bapiebanc.
      wa_bapiebanc1-doc_type(4)            = wa_bapiebanc-doc_type(4).
      wa_bapiebanc1-PREQ_ITEM(5)        = wa_bapiebanc-PREQ_ITEM(5).
      wa_bapiebanc1-material(18)              = wa_bapiebanc-material(18).
      wa_bapiebanc1-SHORT_TEXT(40)      = wa_bapiebanc-SHORT_TEXT(40).
    wa_bapiebanc1-quantity(13)            = wa_bapiebanc-quantity(13).
      wa_bapiebanc1-unit(3)                    = wa_bapiebanc-unit(3).
      wa_bapiebanc1-DELIV_DATE(8)      = wa_bapiebanc-DELIV_DATE(8).
      wa_bapiebanc1-PUR_GROUP(3)        = wa_bapiebanc-PUR_GROUP(3).
      wa_bapiebanc1-MAT_GRP(9)             = wa_bapiebanc-MAT_GRP(9).
      wa_bapiebanc1-plant(4)                     = wa_bapiebanc-plant(4).
      wa_bapiebanc1-STORE_LOC(4)        = wa_bapiebanc-STORE_LOC(4).
      append wa_bapiebanc1 to it_bapiebanc1.
      endloop.
    data :
    it_bapiebanc type standard table of ty_bapiebanc,
    it_bapiebanc1 type standard table of bapiebanc.
    rgds,
    khadeer.
    Edited by: Julius Bussche on Mar 22, 2009 11:35 PM

    Hi,
    You have mentioned that ITAB1 has Qty field of Char13 and BAPI field of Type P.I am not clear here.
    When i looked at BAPI it has Qty of 13 length.
    Change ITAB1 quantity field as same as BAPI Qty field and try to load it.It should work.
    Sudheer

  • Not able to edit my Sap script form using se71 ?

    I have been working on SAP Script say ZKI_FORM using se71 in polish language.
    Today When I try to make changes as usual, it is not allowing me to go into change mode . It is giving Error in object Editing like below.
    " Changes to Repository or cross-client Customizing are not permitted
    Choose 'Display object' or 'Cancel'. "
    My functional consultant doesn't know why it is happened like that ? Even my team lead doesn't know this.
    COULD ANY BODY PLEASE SUGGEST HOE TO GO TO CHANGE MODE OF THE SCRIPT FORM AND MAKE MY CHANGES  ?
    THANKS IN ADVANCE .

    hi
    Give the form name ..
    menuiten--> utilities --> convert original language
    Step by step for copying form.
    give the standard form name in SE71 and language as DE
    click create.
    popup come... check radibutton copy from original..
    given the zformname and green check.
    save it and back.
    give the zformname again and language DE and click change..
    go to menuitem Utilities --> Convert original language
    give new language to EN.. green check..
    SAve and BACK.
    give zformname and language as EN and change..
    there u can do all modifications..
    Or use SE76 give formname and source language and target language...
    then change and press SAVE.
    Regards
    SAB

  • Problems in SAP script : Please help

    Hi Friends:
       I've got a ticket in SAP script & need to do the following modifications:
    1. In the SAP script, on the bottom side there is a cheque no. I want to print the chequq no. in MICR format. Right now its coming into normal format. Please advise me in details as to what to do?
    2. How to convert the date format from DD.MM.YYYY to DDMMYYYY.
    3. There is some amount getting printed on the cheque. e.g $50.00 The requirement is like that after '$' sign, 50.00 should come in a box.Please advise as how to do that.
    4. There is some gap coming in between the '$' & the amount 50.00. Once that 50.00 will be in Box, as per point 4, how to reduce the gap.
    5. The "$" sign is not getting printed correctly. The line which is striking vertically the 'S', is appearing broken. Please advise as how to resolve the same.
    Hi experts, please help me on the above points. Suitable points will be rewarded.
    Thanks:
    Gaurav

    Hi there.
    Question 1:
    Use font MICR_C for MICR CMC-7 or MICR_E for MICR E-13B
    http://help.sap.com/saphelp_nw04/helpdata/en/90/78f078030211d399b90000e83dd9fc/frameset.htm
    Question 2:
    /: SET DATE MASK = 'DDMMYYYY'
    http://help.sap.com/saphelp_nw04/helpdata/en/d1/8034d4454211d189710000e8322d00/frameset.htm
    Question 3:
    /E BOX_ELEMENT
    /: POSITION WINDOW                       
    /: POSITION YORIGIN &Y& LN 
    /: SIZE HEIGHT &HEIGHT& LN    
    /: BOX FRAME 10 TW
    /: BOX XPOS  '0.0' CM  WIDTH 0 TW FRAME 10 TW
    Question 4:
    &symbol(C)&
    http://help.sap.com/saphelp_nw04/helpdata/en/d1/8034d4454211d189710000e8322d00/frameset.htm
    Question 5:
    See SAP Note 129581.
    Best regards.
    Valter Oliveira.
    Edited by: Valter Oliveira on May 30, 2008 4:42 PM

  • README: PLEASE Use Appropriate Post Titles!

    See title.
    But seriously, some posts have been beyond ambiguous lately, along the lines of:
    Help! Noob question!
    Simple problem!
    Almost there!
    Etc..
    Such titles are ineffective at conveying the nature of the issue.
    Choosing an accurate, descriptive and appropriate post title will attract solutions effectively and help other users, when utilizing the forum search feature, to find a solution.
    Thanks, and enjoy Arch.

    Not really... Context is paramount. And please don't bump stickies, they're meant to be read, not to end up like yet another topic.

  • How to add a report into the SAP-SCRIPT .using PERFORM ......ENDPERFORM

    My question is that How to add a report into the SAP-SCRIPT .
    by using PERFORM ......ENDPERFORM
    I don't know how to used it .

    Hi Sandeep,
    Please check this link
    http://help.sap.com/saphelp_40b/helpdata/en/d1/803279454211d189710000e8322d00/content.htm
    http://www.allinterview.com/showanswers/37425.html
    Calling ABAP Subroutines: PERFORM
    You can use the PERFORM command to call an ABAP subroutine (form) from any program, subject to the normal ABAP runtime authorization checking. You can use such calls to subroutines for carrying out calculations, for obtaining data from the database that is needed at display or print time, for formatting data, and so on.
    PERFORM commands, like all control commands, are executed when a document is formatted for display or printing. Communication between a subroutine that you call and the document is by way of symbols whose values are set in the subroutine.
    Syntax in a form window:
    /: PERFORM <form> IN PROGRAM <prog>
    /: USING &INVAR1&
    /: USING &INVAR2&
    /: CHANGING &OUTVAR1&
    /: CHANGING &OUTVAR2&
    /: ENDPERFORM
    INVAR1 and INVAR2 are variable symbols and may be of any of the four SAPscript symbol types.
    OUTVAR1 and OUTVAR2 are local text symbols and must therefore be character strings.
    The ABAP subroutine called via the command line stated above must be defined in the ABAP report prog as follows:
    FORM <form> TABLES IN_TAB STRUCTURE ITCSY
    OUT_TAB STRUCTURE ITCSY.
    ENDFORM.
    The values of the SAPscript symbols passed with /: USING... are now stored in the internal table IN_TAB . Note that the system passes the values as character string to the subroutine, since the field Feld VALUE in structure ITCSY has the domain TDSYMVALUE (CHAR 80). See the example below on how to access the variables.
    The internal table OUT_TAB contains names and values of the CHANGING parameters in the PERFORM statement. These parameters are local text symbols, that is, character fields. See the example below on how to return the variables within the subroutine.
    From within a SAPscript form, a subroutine GET_BARCODE in the ABAP program QCJPERFO is called. Then the simple barcode contained there (u2018First pageu2019, u2018Next pageu2019, u2018Last pageu2019) is printed as local variable symbol.
    Definition in the SAPscript form:
    /: PERFORM GET_BARCODE IN PROGRAM QCJPERFO
    /: USING &PAGE&
    /: USING &NEXTPAGE&
    /: CHANGING &BARCODE&
    /: ENDPERFORM
    / &BARCODE&
    Coding of the calling ABAP program:
    REPORT QCJPERFO.
    FORM GET_BARCODE TABLES IN_PAR STUCTURE ITCSY
    OUT_PAR STRUCTURE ITCSY.
    DATA: PAGNUM LIKE SY-TABIX, "page number
    NEXTPAGE LIKE SY-TABIX. "number of next page
    READ TABLE IN_PAR WITH KEY u2018PAGEu2019.
    CHECK SY-SUBRC = 0.
    PAGNUM = IN_PAR-VALUE.
    READ TABLE IN_PAR WITH KEY u2018NEXTPAGEu2019.
    CHECK SY-SUBRC = 0.
    NEXTPAGE = IN_PAR-VALUE.
    READ TABLE IN_PAR WITH KEY u2018BARCODEu2019.
    CHECK SY-SUBRC = 0.
    IF PAGNUM = 1.
    OUT_PAR-VALUE = u2018|u2019. "First page
    ELSE.
    OUT_PAR-VALUE = u2018||u2019. "Next page
    ENDIF.
    IF NEXTPAGE = 0.
    OUT_PAR-VALUE+2 = u2018Lu2019. "Flag: last page
    ENDIF.
    MODIFY OUT_PAR INDEX SY-TABIX.
    ENDFORM.
    Best regards,
    raam

  • Sap script useful in HR-ABAP

    Hi,
    I want to know in What  way sap script is useful in HR-ABAP.

    Hi,
    we can generate the remuneration statements.
    Thanks & Regards
    Sunil Kondoju

  • Please Label Subject/Title Field!

    PLEASE label the subject/title field for a new post.  Too many people aren't realizing what that field is and are trying to put their entire post into it.

    I finally figured out why I think - if you take a look at the page where most new users probably start:
    This is what they see - so, they ask the question (and sometimes a very long question). Not until after you click on the blue button, you will get the text editor (with a whole empty field.....)

  • Step by step procedure to design  a form using SAP Scripts (SE71)

    Hello Experts, I am new to SAP Scripts ...I am interested to learn SAP Scripts,
    Please help me out to learn SAP Scripts  by giving some example codes.
    Thanks and Regards,
    Shaik.

    check the following link for the same.
    SAP Script, Change form , SE71
    Regards,
    Gauravjit
    Reward points if the link is helpful

  • Issue related to ADDRESS ... ENDADDRESS in SAP Script

    Hi All,
    I have a issue using ADDRESS .... ENDADDRESS in SAP Script.
    ADDRESS PARAGRAPH AS
      TITLE    &WA_LFA1-ANRED&
      NAME     &WA_LFA1-NAME1&, &WA_LFA1-NAME2&
      STREET   &WA_LFA1-STRAS& HOUSE &WA_ADRC2-STR_SUPPL3&
      POBOX    &WA_LFA1-PFACH&  CODE &WA_LFA1-PSTL2&
      CITY     &WA_LFA1-ORT01&, &WA_LFA1-ORT02&
      POSTCODE &WA_LFA1-PSTLZ&
      COUNTRY  &WA_LFA1-LAND1&
      REGION   &WA_LFA1-REGIO&
      FROMCOUNTRY &WA_T001-LAND1&
    ENDADDRESS
    I am using above code for printing vendor address.
    Though Name3 & Name4 are not declared but their values are getting displayed if value is available.
    Though Street2, Street3 are not declared but their values are getting displayed if value is available.
    Even title should not be displayed if available also.
    I want only below fields to be displayed:
    Name 1
    Name 2
    Street/House Number
    Street 4
    Postal Code/City
    Country Name (This one declared below ADDRESS ... ENDADDRESS)
    I don't want to dislay other fields if they have value also.
    How it is possible!
    Thanks in advance.
    Thanks,
    Deep.

    Hi Deep,
    Basically the variables that u havent mentioned in the sap script will never be printed.
    In the code u have not mentioned the variables Name3, Name4, Street2, Street3...so they will never be displayed.
    Please check your code again...i think somewhere u must have written
    &WA_LFA1-NAME3&
    &WA_LFA1-NAME3&
    etc
    if so please remove them. Otherwise the code u have written is perfectly fine.
    or else in ur driver program, dont move all the values to workarea...move only the values that u need to display and use them in ur script.
    Regards,
    Radhika

  • Name of sap script form

    hi ,
    If I am calling a subroutine from a SAP SCRIPT ....and I want the name of the sap script which is  calling it ... means there is a subroutine which more that one script calls ...if I want to find out which one is calling it how can we find that out.for example like sy-cprog or sy-repid..is there anything????? pls advise

    Hi,
    I hereby attach the source code of a pgm which may be used to do a 'search' operation in source code of the SAP Script.Please note that this is not my pgm, I had downloaded from one of the sites. Unfortunately I neither remember the name of teh site nor the name of the author. However I have been using it without any problems.
    REPORT ZSEARCH_ITEMS_IN_SAPSCRIPT
           NO STANDARD PAGE HEADING LINE-SIZE 208.
    *=======================================================================
    * Omschrijving : Searching different items (e.g. strings, field, text,
    *                program-names etc..) in sapscript forms
    * Auteur       : Angelo Hoppenbrouwer
    * Datum        : 07-11-2001
    *======================================================================*
    TABLES: STXL,
            TLINE.
    DATA BEGIN OF BDCDATA OCCURS 100.
            INCLUDE STRUCTURE BDCDATA.
    DATA END OF BDCDATA.
    DATA BEGIN OF LINES OCCURS 100.
            INCLUDE STRUCTURE TLINE.
    DATA END OF LINES.
    DATA: BEGIN OF STXL_ID,
            TDOBJECT LIKE STXL-TDOBJECT,
            TDNAME   LIKE STXL-TDNAME,
            TDID     LIKE STXL-TDID,
            TDSPRAS  LIKE STXL-TDSPRAS,
          END OF STXL_ID.
    DATA: BEGIN OF KOP,
            TXT(208),
          END OF KOP.
    DATA: I_STXL LIKE STXL OCCURS 10 WITH HEADER LINE,
          I_TAB(40) OCCURS 10 WITH HEADER LINE,
          CLIENT LIKE SY-MANDT,
          H_FIELD(40),
          H_VALUE(40),
          H_LINE LIKE SY-LINNO,
          H_OFFSET TYPE I,
          H_REGEL(70) TYPE C,
          H_TEL TYPE I,
          H_TOT TYPE I,
          H_POS TYPE I,
          H_POS1 TYPE I,
          H_POS2 TYPE I,
          H_LEN TYPE I,
          VORIGE_TDSPRAS_TDNAME(71) TYPE C,
          HUIDIGE_TDSPRAS_TDNAME(71) TYPE C,
          P_NAAM LIKE RSEUX-CP_VALUE,
          H_TXT1(40),
          H_TXT2(40),
          H_WINDOW(132),
          H_STRING(40),
          H_STRING1(40),
          H_STRING2 LIKE H_STRING1,
          H_LINE1 LIKE LINES-TDLINE,
          H_LINE2 LIKE H_LINE1.
    SELECTION-SCREEN BEGIN OF BLOCK ZOEK_ITEM
                           WITH FRAME TITLE TEXT-001.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: PA_ITEM1 RADIOBUTTON GROUP ITEM DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 4(16) TEXT-011.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: PA_ITEM2 RADIOBUTTON GROUP ITEM.
    SELECTION-SCREEN COMMENT 4(16) TEXT-012.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: PA_ITEM3 RADIOBUTTON GROUP ITEM.
    SELECTION-SCREEN COMMENT 4(16) TEXT-013.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: PA_ITEM4 RADIOBUTTON GROUP ITEM.
    SELECTION-SCREEN COMMENT 4(16) TEXT-014.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: PA_ITEM5 RADIOBUTTON GROUP ITEM.
    SELECTION-SCREEN COMMENT 4(16) TEXT-015.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK ZOEK_ITEM.
    SELECTION-SCREEN BEGIN OF BLOCK ITEM_WAARDE
                           WITH FRAME TITLE TEXT-002.
    PARAMETERS: PA_STR(40) OBLIGATORY,
                PA_MANDT LIKE SY-MANDT DEFAULT SY-MANDT.
    SELECTION-SCREEN END OF BLOCK ITEM_WAARDE.
    SELECTION-SCREEN BEGIN OF BLOCK FORM
                           WITH FRAME TITLE TEXT-003.
    SELECT-OPTIONS: SO_NAME  FOR STXL-TDNAME  NO INTERVALS
                                              DEFAULT 'Z*'
                                              OPTION CP,
                    SO_SPRAS FOR STXL-TDSPRAS NO INTERVALS
                                              DEFAULT 'NL'.
    SELECTION-SCREEN END OF BLOCK FORM.
    START-OF-SELECTION.
      CLIENT = SY-MANDT.
      CLEAR: H_STRING1, H_STRING2.
      IF NOT PA_ITEM1 IS INITIAL.          " Standaardtekst
        CONCATENATE 'include' PA_STR INTO H_STRING1 SEPARATED BY ' '.
        H_TXT1 = 'standard text'.
      ENDIF.
      IF NOT PA_ITEM2 IS INITIAL.          " Tabel (+veld)
        CONCATENATE '&' PA_STR INTO H_STRING1.
        H_TXT1 = 'table (+field)'.
      ENDIF.
      IF NOT PA_ITEM3 IS INITIAL.          " Hulpveld
        CONCATENATE '&' PA_STR '&' INTO H_STRING1.
        H_TXT1 = 'variable'.
      ENDIF.
      IF NOT PA_ITEM4 IS INITIAL.          " Programma
        CONCATENATE 'in program' PA_STR INTO H_STRING1 SEPARATED BY ' '.
        H_TXT1 = 'program'.
      ENDIF.
      IF NOT PA_ITEM5 IS INITIAL.          " String
        H_STRING1 = PA_STR.
        H_TXT1 = 'string'.
      ENDIF.
      CONCATENATE '"' PA_STR '"' INTO H_TXT2.
      FORMAT COLOR COL_HEADING INTENSIFIED ON.
      CONCATENATE 'Use of'
                  H_TXT1
                  H_TXT2
                  'in forms'
                  INTO KOP SEPARATED BY ' '.
      WRITE: / KOP.
      ULINE.
      FORMAT COLOR COL_HEADING INTENSIFIED OFF.
      WRITE: /         'Clt',
              005      'Form',
              036      'Lang',
              041(030) 'Window',
              072(002) 'Fm',
              077(132) 'Row'.
      ULINE.
      FORMAT COLOR COL_NORMAL INTENSIFIED ON.
      STXL_ID-TDOBJECT = 'FORM'.
      STXL_ID-TDID = 'TXT'.
      SELECT * FROM STXL CLIENT SPECIFIED
              WHERE MANDT    = PA_MANDT
                AND RELID    EQ 'TX'
                AND TDOBJECT EQ 'FORM'
                AND TDID     EQ 'TXT'
                AND TDNAME   IN SO_NAME
                AND TDSPRAS  IN SO_SPRAS.
        MOVE-CORRESPONDING STXL TO I_STXL.
        APPEND I_STXL.
      ENDSELECT.
      SORT I_STXL.
      CLEAR HUIDIGE_TDSPRAS_TDNAME.
      CLEAR VORIGE_TDSPRAS_TDNAME.
      LOOP AT I_STXL.
        STXL_ID-TDNAME  = I_STXL-TDNAME.
        STXL_ID-TDSPRAS = I_STXL-TDSPRAS.
        STXL_ID-TDID    = I_STXL-TDID.
        CONCATENATE STXL_ID-TDSPRAS STXL_ID-TDNAME
                    INTO HUIDIGE_TDSPRAS_TDNAME.
        IF HUIDIGE_TDSPRAS_TDNAME <> VORIGE_TDSPRAS_TDNAME.
          CONCATENATE STXL_ID-TDSPRAS STXL_ID-TDNAME
                                      INTO VORIGE_TDSPRAS_TDNAME.
          REFRESH LINES.
          CLEAR H_TEL.
          IMPORT TLINE TO LINES FROM DATABASE STXL(TX)
                                     CLIENT   I_STXL-MANDT
                                     ID       STXL_ID.
          LOOP AT LINES.
            IF LINES-TDFORMAT = '/W'.
              H_WINDOW = LINES-TDLINE.
            ENDIF.
            SEARCH LINES-TDLINE FOR H_STRING1.
            IF SY-SUBRC <> 0 AND H_STRING2 <> SPACE.
              SEARCH LINES-TDLINE FOR H_STRING2.
            ENDIF.
            IF SY-SUBRC EQ 0 AND LINES-TDFORMAT NE '/*'.
              H_POS = SY-FDPOS.
              IF NOT PA_ITEM1 IS INITIAL.
                ADD 8 TO H_POS.
              ENDIF.
              IF NOT PA_ITEM4 IS INITIAL.
                ADD 11 TO H_POS.
              ENDIF.
              H_LEN = STRLEN( PA_STR ).
              H_STRING = LINES-TDLINE+H_POS(H_LEN).
              IF H_TEL EQ 0.
                HIDE I_STXL-MANDT.
                HIDE STXL-TDNAME.
                HIDE I_STXL-TDSPRAS.
                WRITE: /001 I_STXL-MANDT,
                        005 STXL-TDNAME HOTSPOT ON,
                        036 I_STXL-TDSPRAS,
                        041 H_WINDOW(30).
                CLEAR STXL-TDNAME.
              ELSE.
                WRITE: /041 H_WINDOW(30).
              ENDIF.
              WRITE: 072 LINES-TDFORMAT.
              H_POS1 = 77 + H_POS.
              H_POS2 = H_POS + STRLEN( H_STRING ).
              IF H_POS EQ 0.
                CLEAR H_LINE1.
              ELSE.
                H_LINE1 = LINES-TDLINE(H_POS).
              ENDIF.
              H_LINE2 = LINES-TDLINE+H_POS2.
              H_POS2 = H_POS2 + 77.
              WRITE: 077       H_LINE1,
                     AT H_POS1 H_STRING COLOR COL_HEADING,
                     AT H_POS2 H_LINE2.
              H_TEL = H_TEL + 1.
              H_TOT = H_TOT + 1.
            ENDIF.
          ENDLOOP.
          IF NOT H_TEL IS INITIAL.
            ULINE.
          ENDIF.
        ENDIF.
      ENDLOOP.
      FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
      SKIP 1.
      WRITE: / 'Number of hits:', H_TOT.
    AT LINE-SELECTION.
      CHECK STXL-TDNAME <> SPACE.
      GET CURSOR FIELD  H_FIELD
                 VALUE  H_VALUE
                 LINE   H_LINE
                 OFFSET H_OFFSET.
      CHECK H_FIELD = 'STXL-TDNAME'.
      CHECK I_STXL-MANDT = SY-MANDT.
      REFRESH BDCDATA.
      PERFORM BDC_DYNPRO USING 'SAPMSSCF'      '1102'.
      PERFORM BDC_FIELD  USING 'RSSCF-TDFORM'  STXL-TDNAME.
      PERFORM BDC_FIELD  USING 'RSSCF-TDSPRAS' I_STXL-TDSPRAS.
      CALL TRANSACTION 'SE71'  USING BDCDATA.
      CLEAR STXL-TDNAME.
    *&      Form  BDC_DYNPRO
    FORM BDC_DYNPRO USING PROGRAM DYNPRO.
      CLEAR BDCDATA.
      BDCDATA-PROGRAM  = PROGRAM.
      BDCDATA-DYNPRO   = DYNPRO.
      BDCDATA-DYNBEGIN = 'X'.
      APPEND BDCDATA.
    ENDFORM.                               " BDC_DYNPRO
    *&      Form  BDC_FIELD
    FORM BDC_FIELD USING FNAM FVAL.
      CLEAR BDCDATA.
      BDCDATA-FNAM = FNAM.
      BDCDATA-FVAL = FVAL.
      APPEND BDCDATA.
    ENDFORM.                               " BDC_FIELD
    *Comment Angelo:
    *Selection-texts:
    *PA_ITEM1
    *PA_ITEM2
    *PA_ITEM3
    *PA_ITEM4
    *PA_ITEM5
    *PA_MANDT     Client
    *PA_STR       Search-item
    *SO_NAME      Form
    *SO_SPRAS     Language
    *Text-symbols:
    *001     Selection search-item
    *002     Value
    *003     Selection form(s)
    *011     Standard text
    *012     Table (+ field)
    *013     Variable
    *014     Program
    *015     String
    Once you copy the above mentioned program.Just run this pgm with the parameters:-
    Selection search text: String
    Search text: PERFORM name_of_the_subroutine
    Selection Forms: Z*
    Language: E
    & it will display all the SAP Scripts from where this routine is being called.
    I hope this helps,
    Regards
    Raju Chitale

  • Problem in SAP-Script Conditional Block

    Hi All,
    I am creating one report form using SAP Script, which uses standard driver program. There is a control statement like,
    { Consider W=1, X=0 , Y=0 & Z=0 }
    /: IF ((X==0 AND Y==0) OR (Z==0 OR W==0)  OR ...) { lot of OR & AND stament used in this conditional statment }
    /: ELSE
    /: ENDIF
    Here is a mistery, it executes both if and else statement. Please give me some idea on this, and why such a weird output is displaying?
    <<removed by moderator>>
    Edited by: kishan P on Sep 13, 2010 4:17 PM

    Hi..
    The syntax of the command could be incorrect. Check for full stops, variables etc.
    http://help.sap.com/saphelp_40b/helpdata/en/d1/80325f454211d189710000e8322d00/content.htm
    Please check the above link's last paragraph which says :
    "If a syntax error occurs in the interpretation of this command, then the command is not executed. This may have an unexpected effect on the subsequent text output. For example, if the IF statement is incorrect, then all following ELSEIF and ELSE commands will be ignored, since the opening IF command is u2018missingu2019. This will cause all the text lines attached to the ELSEIF and ELSE commands to be printed."
    Regards,
    Karthik

  • Sap Script printing issue

    Hi Gurus,
    I am working on a SAP script... when I am printing the SAP script the last few lines of my text is missing... I got to know that there might be a problem in the page setting... i.e. the page may be set as a A4 and i am printing on letter... so can you please tell me how can I check what the page setting that my sap script is using.
    Thanks,
    Rajaeev Gupta

    Hi,
    Issue of 'part of the Text missing' is happening during Print Preview or when taking a print out?
    I guess, the problem is due to height of the window, the height of the window where u printing this text is not able to accomodate the entire text. just increase the height of the window & try. 
    To know the page format that ur script is using, just follow the below steps:
    Txn SE71--> give the Script form name > click on change/Display button> click on Header button (red hat symbol) in app tool bar or press F5 button --> now click on Basic Settings button. Here u see the Page Format in 'Set up Page' block...
    Hope it helps!!
    Rgds,
    Pavan

  • What are all the components and attrubutes of the SAP script

    hi
    what are all the components and attrubutes of the SAP script
    please reply
    thanks in advance

    Hello Ashok,
    The componest of the Script are:
    HEADER,PAGES,WINDOWS;PAGE WINDOW;PARAGRAPH FORMAT AND CHARACTER FORMATS.
    THE HEADER WILL HAVE THE ATTRIBUTES OF THE SAPSCRIPT LIKE
    DESCp.PAKAGES Etc.
    If useful reward points.
    Regards,
    Vasanth

  • Reduce decimals in amount in sap script

    User wants to limit the number of zeros in the decimal places, e.g., if the number is 352.0000 he wants it to print only 352.00. 
      Is there some kind of special code that can be used to accomplish this in sap script, please help me with this.
    Thank you so much for your time.

    hi thanvi,
    use &VALUE(Z)& for suppressing zeros. pass  as &VALUE(.2)& to set decimals two only
    check this link.
    To suppress zero after thousand separater in SAP Script

Maybe you are looking for

  • How can I connect my laptop with window to Apple TV

    Hi I'm just wondering if I need to airplay some file from my laptop is as a Dell xps with window operation system what should I do, is it possible. Tnx

  • Change the Owner of SQL Reporting Services Subscription

    So, I am having this odd issue after our Sysadmin changed my user name from what it used to be to something new. Now, subscriptions for reports that I had created for users are not working anymore. And it gives me following error, Failure sending mai

  • Remove attached clip and go to a frame on a main movie

    I am attaching a Movie Clip on a Main movie wthi sthis: exit_btn.addEventListener(MouseEvent.CLICK, fexit, false, 0, true); function fexit(e:MouseEvent):void{     var mc:alert_mc=new alert_mc();     mc.x=320;     mc.y=210;     addChild(mc); I need to

  • Windows 7 file copy and overall network performance

    I have noticed some major problems with network performance when trying to access files stored on our NSS based file servers when using Windows 7 Pro. Our file servers are OES2 SP1 and SLES 10 SP3. I did not have this type of problem when I was on Wi

  • Why the filters aren't working?

    I have created several filters for my two joined Inbox accounts, my filters have been established from the "create filter from..." option but they don't execute at all?? any clues on why this is happening? I tried all possible methods of creating fil