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

Similar Messages

  • SAP HR ABAP programming

    Hi,
    Can anyone kindly help, by providing any links or sending me some learning material for HR-ABAP programming.
    Many thanks,
    Tomuri.

    Hi Experts,
    Please help me...
    I am new to SAP HR ABAP Programming.. Here I need to develop a Expenses claim form( ESS)
    I require a custom report to get the employee details in form and they can fill their travel expenses and other expenses manually in the form and that should be send to manager for approval.
    I don't know from which  Infotype I can get these details for the specific employee who are logged in to ESS, what are the Function Modules and which workflow process we can use for the approval ...Etc
    I am providing detail form below please give me some information about the report and workflow..
    Please someone help me to overcome this situation..
    Regards,
    Sudheer

  • List of standard sap scripts/print programs in SAP MM and SD modules ??

    Hi,
    I have worked in medruck only. Can anyone give me a list of other standard sap scripts/print program names in SAP MM, FI/CO and SD modules, which often needs to be  modified by the client ?
    thanks

    press f4 in SE71
    then press application heirarchy, expand the modules which ever u want.
    regards.
    santhosh reddy
    Reward if useful

  • Update database outside SAP using Abap program

    Hi guys, I have the following scenario:
    Today, I have an abap program that calls a RFC to update a database outside SAP using Business Connector.
    The problem is that I won't be allowed to use Business Conncetor (and can't use XI too) to access the outside database (SQL Server 05).
    Is possible to update the SQL Server 05 from an Abap program without a Java based connector? Because my main problem is that I can't use Java...
    Thank you
    Robert

    hi,
    you can use the database connection
    >exec
    > native sql statment
    >endexec
    check theese links for generating source code in ABAP
    [How to use INSERT in EXEC SQL ...... ENDEXEC ?;  insert data to external database
    [exec sql help;  read data from external database
    check theese links for configurating of DBCO (DataBase COnnection)
    [/thread/108422 [original link is broken];
    [http://help.sap.com/saphelp_nw04/helpdata/en/df/455ec9747111d6b25100508b6b8a93/frameset.htm]
    hope that is useful.
    Regards
    Marco

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

  • 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

  • Sap script (ABAP-HR)

    hi friends,
    plz give me the solution to the following, its urgent yar.
    in abap we are copy a script from client 000 and done the modification according to the requirement, thn we go for NACE
    in that we remove the standard script name and we give our custom script name and save. now we get the print output with the modified script....
    here my doubt is how can i do these forABAP-HR,
    i.e, i copied an script related to ABAP-HR, and i done all the modification reg to requirement, after that how can i configure with NACE, in NACE i'm not getting any application related to  this form, then how can i give my custom script name in NACE. is there any othe procedure for ABAP-HR to do script.
    after i done the modification in std script what can i do for geting that modified print output in that script related transaction code??????
    plz reply me its very urgent........
    thanks in advance,
    regards,
    Priya.S

    hi waz,
    thanks for ur kind reply, here in HR-ABAP i'm rying for the forms:1. letter of appointment(HR_SGPLA).
             2.education leave
             3.benefi confirmation
             4.hours worked report
             5.personal statement.
    how can i do the confuguration and where....plz reply me.
    thanks in advance,
    regards,
    priya.s

  • How to Get Each line item Create and Approval dates for a SHOPPING CART in SAP SRM (ABAP Programming)

    Hi All,
    I have to Get Each line item Create and Approval dates for a SHOPPING CART in SAP SRM. Either a table, or any Function module, Method, please let me know ASAP. Same i can use in my Program.
    Thank you Very much.
    Regards,
    Ramesh J.

    Hi,
    Refer the below wiki link it may help you.
    Product catlog configuration for ECC - CRM - SCN Wiki

  • SAP Script & Dialog programming

    Hi,
    How Can u pass data to SAPScript other than using function modules?
    How can u pass data from programs to screens in dialog progarmming?
    Thanks in advance,
    K P

    Hi KP,
    U can use form routines instead of using FMs to pass the data in Script layoutset.
    For Ex:
    u can write the ligic in Program-->
    FORM XXXX(form name) TABLES INPUT  STRUCTURE ITCSY
                                OUTPUT STRUCTURE ITCSY.
    Script-->
    /:  DEFINE &XXX_XXXXX& = ' '.                          
    /:  PERFORM XXXX IN PROGRAM PROGNAME
    /:  USING &XXXX_XXXXX&                                
    /:  CHANGING &XXX_XXXXX&                                
    /:  ENDPERFORM                                        
    Hope it'll be helpfull.
    Cheers.. ByE....suresh

  • PLS SEND ME A SAP SCRIPT DRIVER PROGRAM.........

    I CANNOT RUN ANY OF THE CODING ...........

    hi
    this is an ex.. but u definitely need to go through the links
    REPORT ZPSAPSCRIPT.
    TABLES : EKKO,
    EKPO,
    KNA1,
    USR01,
    MARA,
    MAKT.
    DATA : BEGIN OF ZOPTION.
    INCLUDE STRUCTURE ITCPO.
    DATA : END OF ZOPTION.
    PARAMETERS: P_EBELN LIKE EKKO-EBELN,
    P_EBELP LIKE EKPO-EBELP.
    CLEAR EKPO.
    SELECT SINGLE * FROM EKPO
    WHERE EBELN = P_EBELN AND
    EBELP = P_EBELP.
    CLEAR KNA1.
    SELECT SINGLE NAME1 FROM KNA1
    INTO KNA1-NAME1
    WHERE KUNNR = EKPO-KUNNR.
    CLEAR MAKT.
    SELECT SINGLE MAKTX FROM MAKT
    INTO MAKT-MAKTX
    WHERE MATNR = EKPO-MATNR AND
    SPRAS = SY-LANGU.
    CLEAR USR01.
    SELECT SINGLE * FROM USR01 WHERE BNAME = SY-UNAME.
    ZOPTION-TDDEST = USR01-SPLD. "Output device (printer)
    ZOPTION-TDIMMED = 'X'. "Print immediately
    ZOPTION-TDDELETE = 'X'. "Delete after printing
    ZOPTION-TDPROGRAM = 'ZPQRPRNT'. "Program Name
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
    APPLICATION = 'TX'
    ARCHIVE_INDEX = ' '
    ARCHIVE_PARAMS = ' '
    DEVICE = 'PRINTER'
    DIALOG = ' '
    FORM = 'Z_TESTSCRIPT'
    LANGUAGE = SY-LANGU
    OPTIONS = ZOPTION
    IMPORTING
    LANGUAGE = SY-LANGU
    EXCEPTIONS
    OTHERS = 1.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT = 'HEADER'
    FUNCTION = 'SET'
    TYPE = 'BODY'
    WINDOW = 'HEADER'
    EXCEPTIONS
    ELEMENT = 1.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT = 'MAIN'
    FUNCTION = 'SET'
    TYPE = 'BODY'
    WINDOW = 'MAIN'
    EXCEPTIONS
    ELEMENT = 1.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT = 'FOOTER'
    FUNCTION = 'SET'
    TYPE = 'BODY'
    WINDOW = 'FOOTER'
    EXCEPTIONS
    ELEMENT = 1.
    CALL FUNCTION 'CLOSE_FORM'
    EXCEPTIONS
    UNOPENED = 1
    OTHERS = 2.
    also you can check at
    http://help.sap.com/saphelp_47x200/helpdata/en/d6/0dc169494511d182b70000e829fbfe/frameset.htm
    http://www.sapmaterial.com/sap_scripts.html
    regards
    asha

  • Problems with SAP Script print program

    Hi,
    I have the following scenario:
    I have a workflow which prints a sapscript with data stored in the workflow container.
    The workflow method 'executeform' populates a selection table and submits it to the print program using:
    SUBMIT ZPRINT_FORM WITH SELECTION-TABLE sel_table
    This print program then populates the form with data and calls the OPEN_FORM/WRITE_FORM/CLOSE_FORM FM's.
    My problem is that some of the variables in the workflow container are CHAR255, when these get moved to the selection table (seltab-low) they get truncated as seltab-low is a CHAR45.   Is there a way round this??
    This is the first time I have used sapscript, I notice that the variables printed on the form correspond to the parameters defined in the Print Program.  I assume therefore that this is why the
    SUBMIT ZPRINT_FORM WITH SELECTION-TABLE sel_table
    has been used and why the OPEN_FORM/WRITE_FORM/CLOSE_FORM was not coded directly in the workflow executeform method.
    Any guidance on how to proceed with this would be appreciated.
    Many Thanks,
    Paul

    Hi Paul,
       In general, in the statement
    SUBMIT ZPRINT_FORM WITH SELECTION-TABLE sel_table.
    sel_table is an internal table with the structure RSPARAMS.
    This variant allows you to set the names and contents of the parameters and selection options dynamically at runtime.
    You can use the function module RS_REFRESH_FROM_SELECTOPTIONS to read the contents of the parameters and selection options of the current program into an internal table seltab with the structure RSPARAMS. By using SUBMIT ... WITH SELECTION-TABLE seltab, you can then pass these values on directly.
    The work around for the variables that cannot be passed using the submit statement, can be exported to Global memory ids and the same can be retrieved in the print progra.
    The syntax for the export and import statements is something like this.
    TABLES INDX.
    TYPES: BEGIN OF ITAB3_TYPE,
              CONT(4),
           END OF ITAB3_TYPE.
    DATA: INDXKEY LIKE INDX-SRTFD VALUE 'KEYVALUE',
          F1(4), F2 TYPE P,
          ITAB3 TYPE STANDARD TABLE OF ITAB3_TYPE WITH NON-UNIQUE
                     DEFAULT KEY INITIAL SIZE 2,
          WA_INDX TYPE INDX.
    Fill the data fields before CLUSTR
    before the actual export
    INDX-AEDAT = SY-DATUM.
    INDX-USERA = SY-UNAME.
    Export der Daten.
    EXPORT F1    FROM F1
           F2    FROM F2
           ITAB3 FROM ITAB3
           TO DATABASE INDX(ST)  FROM WA_INDX ID INDXKEY.
    *********************************************************TYPES: BEGIN OF TAB3_TYPE,
              CONT(4),
           END OF TAB3_TYPE.
    DATA: INDXKEY LIKE INDX-SRTFD,
          F1(4), F2 TYPE P,
          TAB3 TYPE STANDARD TABLE OF TAB3_TYPE WITH
                    NON-UNIQUE DEFAULT KEY,
          WA_INDX TYPE INDX.
    INDXKEY = 'INDXKEY'.
    IMPORT F1   = F1
           F2   = F2
           TAB3 = TAB3 FROM DATABASE INDX(ST) ID INDXKEY
           TO WA_INDX.
    Regards,
    Ravi

  • 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

  • F110_PRENUM_CHCK(SAP SCRIPT)

    Hi,
    For the form F110_PRENUM_CHCK(SAP SCRIPT) Print Program is RFFOUS_C.What is the Check Amount Field in this Form and Direct Deposit Amount Field name in this Form and also needText Element names For this Fields.
    Thanks in Advance.

    Hi,
    Iam also getting the same error while going for cheque printing through F-58, here is the detail of error.
    F0 251 In form F110_PRENUM_CHCK / window CARRYFWD , the element 635 (Carry forward below) is missing
    F0 251 In form F110_PRENUM_CHCK / window MAIN , the element 610-C (Text-C) is missing              
    F0 251 In form F110_PRENUM_CHCK / window MAIN , the element 615 (Heading) is missing               
    F0 251 In form F110_PRENUM_CHCK / window MAIN , the element 620 (Carry forward above) is missing   
    F0 251 In form F110_PRENUM_CHCK / window MAIN , the element 625 (Line items) is missing            
    F0 251 In form F110_PRENUM_CHCK / window MAIN , the element 630 (Total) is missing                 
    F0 253 Output of the relevant forms is defective                                                   
    Kindly guide me step by step how to over come with this problem/error.
    Regards,
    Amitabh

  • F110_PRENUM_CHCK Form(SAP SCRIPT)

    Hi,
    For the form F110_PRENUM_CHCK(SAP SCRIPT) Print Program is RFFOUS_C.What is the Check Amount Field in this Form and Direct Deposit Amount Field name in this Form and also needText Element names For this Fields.
    Thanks in Advance.

    Hi Madhavi,
    Thanks For your Reply.Suppose if it is a Direct Deposit(Not Check Amount).Then in which field the Direct Deposit amount is stored?

Maybe you are looking for

  • MDX Query Syntax error

    I have a simple MDX query is shown in below: SELECT [Accounts].[pv] ON ROWS, [Reporting].Members ON COLUMNS FROM RoggeBSO.Db (please note that Accounts, pv and Reporting words are in square brackets) When I execute this query on the MDX Script Editor

  • How to send variable from vision builer to robot?

    hi all, i have a project with vision builder that generate variable of position.these varible i want to send it to a robot.it  is possible to send it directly from vision builder to the robot or i must to send varible ti labview firstly then to robot

  • CC 2014 Update Makes My Mid-2012 Mac Pro Worthless

    Hi All, I've been a big fan of working in Premiere Pro for about a year. Sure there have been hangups and frustrating technical issues, but nothing you wouldn't experience using Final Cut or Avid. However, the latest big 2014 update has rendered my w

  • Java and c struct

    Dear All; i wrote a socket client program with java to communicate with the server program which was writen by c language; i got a byte stream from the socket,how can i parse a c struct into java object? the c struct received from the server side lik

  • Query on MCJC - MTTR/MTBR Functional Location report in Plant Maintenance

    We have recently upgraded our SAP 4.7 system to mySAP ERP 2005 ecc6.0. We are facing problem in report derived using tcode'MCJC' in Plant Maintenance.When we execute MCJC (MCJC - MTTR/MTBR Functional Location ) transaction, there is no data appearing