Reg sap scripts

helllo i m working on sap scripts in creating a cheque in which i have to two fields in which one is amt field in words and the another field the same amt in numericals ,how can i get the values from screens to this lay out that is in selection screen i give custid,name and other details by that name in cheque layout will be getting but the mt in numerical and in words how can we get at the same tinme,help me in this criteria

Hi,
Your question is not very clear....
but if you want to Spell out a Number (Amount in your case) you can use the function Module
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
   AMOUNT          =  (Amount to be printed)
   CURRENCY        = ' '
   FILLER          = ' '
   LANGUAGE        = SY-LANGU
IMPORTING
   IN_WORDS        = (Amount in words)
EXCEPTIONS
   NOT_FOUND       = 1
   TOO_LARGE       = 2
   OTHERS          = 3
Reward if useful !!
Regards,
Gaurav

Similar Messages

  • Reg: SAP Scripts abap program

    Hi experts,
                   i have requirement in QM report i need to show some additional fields in print out ,
    here i know the form name but i don't no from which program in SAP Script form fetching values  can any one suggest how to find out programs for SAP script form.
        i know inside of SAP script we can c perform action but in my case there is no perform action written in script,
    they are directly using call function open form in pgm .
    Regards
    Srinivasan.R
    Moderator Message: Please search for available information before posting.
    Edited by: kishan P on Jun 3, 2011 11:41 AM

    Hi,
    Your question is not very clear....
    but if you want to Spell out a Number (Amount in your case) you can use the function Module
    CALL FUNCTION 'SPELL_AMOUNT'
    EXPORTING
       AMOUNT          =  (Amount to be printed)
       CURRENCY        = ' '
       FILLER          = ' '
       LANGUAGE        = SY-LANGU
    IMPORTING
       IN_WORDS        = (Amount in words)
    EXCEPTIONS
       NOT_FOUND       = 1
       TOO_LARGE       = 2
       OTHERS          = 3
    Reward if useful !!
    Regards,
    Gaurav

  • Reg sap-script

    HI, how can we put the blanklines in sap-script & if i want to start my text element from 15 row how can we program.

    Hai,
    <b>Create a Paragraph format so that SPACE BEFORE = 15 lines.
    Then At the very Beginning,In one line write:
    P1 At the Script editor.</b>
    And then Directly write your Text_Element and what the needed commands.
    Then !5 lines will be empty.
    Hope this helps you.
    <b>Reward points if it helps you.</b>
    Regds,
    Rama chary.Pammi

  • Reg sap script long text

    Hi experts,
    I have one problemin bseg-sgtxt field. i develop sap script for payment print prog, In my script my field is bseg-sgtxt(item text). and this field lenght is 50 char. i want more then 50 char through this field in my script. for that i use long text button... this long text stored in EENO_DYNP and field name is ZEILE , but it is a structure...so my question is
    1) How can i retrive this long text field in my script
    2) Can u give me example with this coding..
    3) How can i concate bseg-sgtxt with EENO_DYNP-ZEILE
    I need code example for that....
    Pl help me its urgent
    zeni

    hi,
    the long text of a document are stored into the standard text table and u can read it with the function READ_TEXT.
    call this function in this way
    >CONCATENATE bseg-bukrs bseg-belnr bseg-buzei INTO name.
    >CALL FUNCTION 'READ_TEXT'
    >  EXPORTING
    >    id                      = '0001'
    >    language                = sy-langu
    >    name                    = name
    >    object                  = 'DOC_ITEM'  " identified FI document
    >  TABLES
    >    lines                   = t_line
    >  EXCEPTIONS
    >    id                      = 1
    >    language                = 2
    >    name                    = 3
    >    not_found               = 4
    >    object                  = 5
    >    reference_check         = 6
    >    wrong_access_to_archive = 7
    >    OTHERS                  = 8.
    the id of the text you can find in SPRO transaction under
    Financial accounting->Financial accounting Global Settings ->Document->line Item-> Define Text Identifications for Line Items
    here you can find all ID of the standard text that are configurated in your system.
    now you can concatenate BSEG-SGTXT with the standard text of the document item .
    bye
    Marco

  • Reg: sap script counter

    Hi friends, very urgent, plz help me.
    I am using DEFINE&SAPSCRIPT-COUNTER_0& = 0.
    I want to increase this number per each line item in the layout.
    so i am doing like &SAPSCRIPT-COUNTER_0(+)&. this is working fine when i used paragraph format in the command editor of the layout. but it is printing in the layout as well. but what i want is, it has to increase but should not print on the layout. so that i used command prompt in the command editor. then it is not getting increased.
    Regrads,
    venkat

    use &SAPSCRIPT-COUNTER_0(+1)& in ur window editor and call this window in ur loop.counter will automatically increase
    don't forget to put command line (/:)
    if useful reward points.
    SIddhartha Prakash

  • Reg : modification in sap script driver prog

    Hi folks,
    need some help regarding sap scripts
    i havecopied the standard layout medruck to my layout
    and made some changes.
    now i have to modify the driver program
    in the tnapr table the driver prog for medruck is
    given as sapfm06p
    but when i see the source code for that in the
    editor
    evrthing is like included functions there
    in the incuded there is a form named with "entry_neu"
    which has some code calling few functions
    but...
    there is no openform,no write form etc.
    where should i give the name of the form name that i have
    i have developed(changes made to the copy of the medruck)
    where should i make the changes in the prog
    how about going at modifying the driver program
    do i have to assign the o/p type using the tcode nace.
    please give me the steps
    please treat it as very urgent
    expecting a promt responses from u
    thanks & regards,
    annamreddy

    We modified the driver program because there was a requirement to add stuff that was not available in the standard driver program.  Here is what we did.
    First,  Copied the SAPFM06P program to SAPFZM06P.  Did not copy all of the includes. Copied only the FM06PE02 include program to ZFM06PE02.
    Second,  in the include ZFM06PE02,   there is a form call ENTRY_NEU,  this is the entry point to print the form, notice that there is a function module in this form called ME_PRINT_PO.  This is the function module that will print the PO.  Eventually, you will want to call a Z version of that funciton module.
    Third,  copy the entire funtion group MEDRUCK into ZMEDRUCK.  This is the function group which has the function module ME_PRINT_PO.  Don't copy the includes into Z versions.  You don't need to modify all of them.  Only copy them when needed.  Save and Activate.
    Finally,  go back to that include program ZFM06PE02,  now make the call to ME_PRINT_PO to the Z version, in my case it is ZME_PRINT_PO.  Save and activate.
    Make sure that you change your configuration in SPRO to use the SAPFZM06P program instead of the standard.  Now your form should be printing from the custom driver program.  Modify away!!!!
    Please don't forget to award points for helpful answers.  Thanks.
    Regards,
    Rich Heilman

  • Reg : trade mark symbol(TM) in SAP Script output

    Hi gurus,
    i am using SAP Script to print a material description , when i tried to run the sript in debugging mode it is showing as trandemark symbol as(TM) but in output ( i.e in printing ) i am getting this value as # . for example if i material description is xxx(TM) , then in debugging it is showing as xxx(TM) , but while printing it is showing the value as xxx(#).how to overcome this . please help me on this.
    Thanks and regards,
    Rajeshwar.

    Hi
    [Double Byte Characters in SAP |https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00adf4da-76f1-2910-43aa-81ad2a67332c]
    Regards,
    Sravanthi

  • Quick SAP Script question New Page Print

    Quick SAP Script question
    I have added a new page to an existing SAP Script BUT only want it to print if a condition is true.
    I need to do this from within the form as the print program is SAP Std.
    Any idea how I can prevent the new page from printing?
    i.e. I need the form NOT to call the new page if the condition is false. Is there a way of forcing an exit or stop from with in the form?

    Hi,
    To trigger a new page, there is script ediotr command NEW-PAGE.
    so find where is that command is triggered and use the below code for trigger it on any specific condition....
    if &condition& = 'True'
    /*  NEW-PAGE
    elseif
    /: NEW-PAGE   
    endif
    so it means if condition is satisfied your new page will not work.. else it will...
    Hope you got it...
    Try this..
    Best luck..
    Regs,
    Lokesh.

  • Sap Script Tabular layout creation

    Hi all,
    Can anybody tell me how to create tabular layout for the below text in the SAP STANDARD TEXT.
    1. Asbestos                                    7. Hot working, grinding, hot cutting and welding
    2. Confined spaces (as defined in
    the Combined Spaces Regs 1997)     8. Work on/near overhead or underground services
    3. Working at heights (above 2 metres)      9. Grounds maintenance
    4. Work near fragile surfaces             10. Pest control
    5. Interceptor and drainage cleaning          11. Work on live electrical services
    6. Loading/ unloading/ large vehicles     12. Work under lifts and lifting equipment
    thanks
    GR

    create a paragraph in your sap-script with the right tabular.
    use ,, as tabs in your standard text
    use the default paragraph (***)in your standard text
    call with an include the standard text
    /: INCLUDE name [OBJECT o] [ID i] [LANGUAGE l] [PARAGRAPH p] [NEW-PARAGRAPH np]
    use the paragraph parameter to use the paragraph you created in the sap-script
    meaning of the paragraph-parameters
         PARAGRAPH
    The text to be included is formatted with its style allocation. With this parameter, the standard paragraph of this style can be redefined for the current call. All * paragraphs of the inserted text are formatted with the paragraph specified here.
         NEW-PARAGRAPH
    The first line of the included text has this format flag, provided it is not a command or comment line. If the optional entry PARAGRAPH (see above) is empty, all * paragraphs of the included text are formatted with the paragraph np specified with NEW-PARAGRAPH.
    this will do i think
    Gr., Frank

  • Editor for SAP-Script ?

    hi there,
    i am wondering about the following issue:
    i am sitting here on an SAP-course. in the used system here there is a graphical editor (looks a bit like word inplace in sap) when using sap-script.
    in my company i only have a 'old style' editor.
    what is wrong here ?
    reg, Martin

    well you probably have not activated the new one, or you might have a SAP System release which does not support it.
    BUT i really would advice you NOT to use the graphical editor anyway.
    It does not work properly and can even destroy your whole form.
    besides this i never saw any advantages of the new editor.

  • If Statement in SAP Scripts

    Hi All,
    I have written the below If statement in  SAP scripts but when i execute the same the controll doent check the second line entries. If firtst line doesnot satisfy it goes to the else part. Kindly suggest what is wrong in this..
    /:           IF &T156T-BWART& = '321' OR &T156T-BWART& = '322' OR
    /:           &T156T-BWART& = '349' OR &T156T-BWART& = '350' OR
    /:           &T156T-BWART& = '312' OR &T156T-BWART& = '326' OR
    /:           &T156T-BWART& = '343' OR &T156T-BWART& = '344'.
    /:           ELSE
    /:           ENDIF.

    Hi neha,
    Try to use the '/E' fo rnext line
    /E->Extended line
    Here is a code:
    /: IF &T156T-BWART& = '321' OR &T156T-BWART& = '322' OR
    /E  &T156T-BWART& = '349' OR &T156T-BWART& = '350' OR
    /E  &T156T-BWART& = '312' OR &T156T-BWART& = '326' OR
    /E &T156T-BWART& = '343' OR &T156T-BWART& = '344'.
    /: ELSE
    /: ENDIF.
    Hope this helps you.
    Regards,
    Rajani

  • How to print last page in sap script in ladscape format?

    Hi all,
    can any 1 tell me How to print last page in sap script in ladscape format?
    Thanks In advance.
    Pravin

    Hi Pravin Sherkar,
    we can do this in SAP Scripts.
    we need to create two pages, one of landscape and another of potrait.
    now after filling the data at last we need to call the page which is of format landscape using START_FORM  function module.
    You can use condition &PAGE& = &FORMPAGES&.
    Please check this link
    Printing Portrait/Landscape in sapscript
    Re: Landscape and potrait in same layout?
    http://www.sap-img.com/ts013.htm
    Best regards,
    raam

  • How to print the text in points wise in sap script

    hi friends,
    how to print the text in points wise in sap script.
    ex: if suppose paragraph consists of 15 lines. then according to one sentence or one fullstop (.) it should give point 1. like that...
    1. hai how ru.
    2. what r  u doing.
    3.where r u.
    like this i want numbering.. waiting for ur replys.
    thanks,
    kiran

    declare a counter
    data : cnt type char 4.
    print :
    cnt = cnt + 1.
    &cnt& &text&
    cnt = cnt + 1. and so on.
    or.
    if the data is in an internal table
    loop at internal_table.
    cnt = cnt + 1.
    write form.
    in script -&cnt& &text&
    endloop.
    Edited by: NIKHILKUMAR POOJARI on Nov 17, 2008 11:18 AM

  • How to print Special Characters in Sap-Scripts

    How to print Special Characters in Sap-Scripts
    Thanks,
    Ravi

    Hi
    if u want print special characters we can use hot codes i.e '  '  (single inverted commas). in between these hot codes insert u r special characters.
    write    '    !@#$%^&*( )  '.
    for the above write statement output is
    output is   !@#$%^&*( )

  • In SAP Script how to hard code my Company address in footer window

    Hi All ,
    In SAP Script how to hard code my Company address in footer window .
    Ex : in YB_F140_ACC_STAT this script i want to keep my company address, i want to hard coad , i dont want to use any field from table.
    Please give me step by step.
    Thanks
    Sridhar

    Hi,
    You can make use of standard text...
    create a standard text in SO10 with your company address
    and in the footer window of your script.. use include text and provide the name of the standard text you created in SO10.
    In the text editor... goto insert > text> standard
    You get popup give the name of the text name id and language
    regards
    padma

Maybe you are looking for

  • Android system using 34-40% battery instead of 6-10%

    android system using 34-40% battery instead of 6-10%. Battery graph has awake solid. Had google update that fixed this problem bout 10days ago and now it's started again. It's started and fixed itself 3times now. This time no google update but it's s

  • Lock indicator for Profit Centers

    Hello, I have a problem with the Transaction KCH5n, KE52 and KE5X. If I change the Lock indicator for Profit Centers in the Transaktion KCH5n I can not see the changing of that indicator within the report KE5X. The lock indicator is still as it was b

  • Transaction SM50 Shows 3 dialog process in yellow colure

    Dear all, I run transaction sm50 in that transaction 3 Dialog work process shows in yellow colure, what its mean please check the attached file for screen shot of SM50

  • 160gig  iPod Stopping After 2 or 3 Songs

    My iPod would just stop after 2 or 3 songs when I'm listening to it on "shuffle songs," an album or a playlist. It happens when I listen to CDs that I ripped, albums that I bought from the iTunes store and DRM-free albums that I bought online. At fir

  • Time Format of device

    hi is there any way by which i can obtain the Time format followed by device during runtime in my java application i.e. whether it is am-pm format or hr format