ABAP Command

Hi friends,
     is there any ABAP command or Function module to run the another ABAP Program(not Transaction code or area menu).
Thanks & Good regards,
vallamuthu.M

Hi,
You can use SUBMIT statement with VIA SELECTION-SCREEN option. Please check this sample code.
SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
                      WITH paramet eq 'Selection 1'
                      WITH selecto IN seltab
                      WITH selecto ne 3
                      AND RETURN.
Regards,
Ferry Lianto

Similar Messages

  • In ECC 6.0 I am getting Slin Error -ABAP command is obsolete

    Hi All,
    In Hr ABAP we will start basic coding with
    TABLES pernr . 
    infotypes:0002.  
    By using this I am getting the following SLIN Error :
    Program:  ZHCP0026  Row:     32
    he current ABAP command is obsolete
    Within classes and interfaces, you can only use "TYPE" to refer to ABAP Dictionary
    types, not "LIKE" or "STRUCTURE".
    nternal Message Code: MESSAGE G/B
    (The message cannot be hidden using pseudo-comment "#EC .., bzw. durch SET
    EXTENDED CHECK OFF/ON)
    INFOTYPES : 0380,
    The current ABAP command is obsolete
    Tables with headers are no longer supported in the OO context.
    Internal Message Code: MESSAGE G1D
    (The message cannot be hidden using pseudo-comment "#EC .., bzw. durch SET
    EXTENDED CHECK OFF/ON)
    Can some one help me , how to rectify this slin error ?
    Thanks,
    Suresh.
    Edited by: suresh kumar on Feb 25, 2009 2:22 PM

    Hi Suresh,
    Am too facing the same problem. if you could find a solution, pls let me know.

  • How to run others applications with abap commands

    Is there a mothed that can use it to run an application with abap statement?
    for example: how to open a text file in program with abap command?
    thank you very much.

    CALL FUNCTION '<b>WS_EXECUTE'</b>
    EXPORTING
      DOCUMENT                 = ' '
      CD                       = ' '
       <b>COMMANDLINE</b>              = ''
      INFORM                   = ' '
      <b> PROGRAM                 </b> = 'NOTEPAD'
      STAT                     = ' '
      WINID                    = ' '
      OSMAC_SCRIPT             = ' '
      OSMAC_CREATOR            = ' '
      WIN16_EXT                = ' '
      EXEC_RC                  = ' '
    IMPORTING
      RBUFF                    =
    EXCEPTIONS
      FRONTEND_ERROR           = 1
      NO_BATCH                 = 2
      PROG_NOT_FOUND           = 3
      ILLEGAL_OPTION           = 4
      GUI_REFUSE_EXECUTE       = 5
      OTHERS                   = 6
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Here...
    In the <b>CommandLine</b> you can give the path where the file is located like for Example
    C:\Test\Hello.txt.
    In the <b>Program</b> you need to give the application that you want to open that file.
    if helpful reward points...
    Regards,
    Vivekananda Varma Dandu

  • Comparison between ABAP command statements in different versions

    Hi,
    I'm looking for information on version wise difference in ABAP statements. Can someone provide help in this area.
    I need a list of Commands along with there syntax in different versions of ABAP (ECC 5.0 and 4.7).
    Is there any system table where this information is maintained?
    Regards,
    Gajendra Bhatt

    Hi Gajendra ,
    I doubt if SAP has some document which shows the history of all ABAP commands as to how they behaved in which version. The only option you have is go through the following notes and compile the info manually -
    0000178452 Release upgrade from 4.0 to 4.5 for customers prog
    0000452229 Release upgrade from 6.10 to 6.20 for customer pro
    0000178725 Release upgrade from 4.5 to 4.6 for customer progr
    0000689951 Release upgrade from 6.20 to 6.40 for customer pro
    0000178482 Rel. upgrade from 3.0 to 4.0 for customer programs
    0000857904 0003 0.460 Upgrade from Release 6.40 to 7.0: Customer program
    0000367676 0061 0.450 Release upgrade from 4.6 to 6.10 for customer prog
    0000099025 0004 0.340 Change from 4.0A/B to 4.5A for customer programs 
    Cheers.

  • Obsolete ABAP commands

    hi friends,
    Is it poosible to find out what are the Obsolete ABAP commands and Statements by comparing two different versions? an old version and an advanced version??
    Is it stored in any table?
    Pls Help
    Regards
    Dinesh

    Hi,
    Just check this link
    http://www.nikat.org/www.geocities.com/victorav15/sapr3/abapobs.html
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb33cc358411d1829f0000e829fbfe/content.htm
    You may have an overview wirth Solution Browser tool (at the solution point of view) in order to compare functionality between your current system and the ERP 2005.
    at:
    http://solutionbrowser.erp.sap.fmpmedia.com/
    You can get the detailed release information from the following link.
    http://service.sap.com/releasenotes.
    A release note is a brief explanation of new features or changes to the system since the last software release. A release note typically describes a new function or an existing function that has been enhanced or changed.
    Regards,
    Padmam.

  • The current ABAP command is obsolete

    Hi Experts,
    please let me know how this error can be removed.
    The current ABAP command is obsolete                                           
    The variant " WITH KEY k" is no longer supported in the OO context. Use an    
    explicit key specification instead . . . .                                    
    Internal Message Code: READ 022                                                
    (The message cannot be hidden using pseudo-comment "#EC .., bzw. durch SET    
    EXTENDED CHECK OFF/ON)                                                        
    Thanks and Regards,
    Johny

    Hi Experts,
    Iam having no key to compare with.
    The scenario is as follows:
    *If it is PaymentLot,retrieve Payment method,Gpart,Banknumber,Bank accountnumber,paymentcard number and amount
    from DFKKZP and DFKKOP for the cleared document
    CALL FUNCTION 'FKK_PAYMENT_BATCH_FIND_PAYMENT'
    EXPORTING
    i_opbel = wa_cleareditem-augbl
    IMPORTING
    e_dfkkzp = et_dfkkzp
    EXCEPTIONS
    not_found = 1
    OTHERS = 2.
    IF sy-subrc <> 0. "#EC NEEDED
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    IF et_dfkkzp-bankl IS NOT INITIAL. "Check for Bank key and Card number
    lv_bankl = et_dfkkzp-bankl.
    ENDIF.
    IF et_dfkkzp-ccnum IS NOT INITIAL.
    lv_ccnum = et_dfkkzp-ccnum.
    ENDIF.
    IF et_dfkkzp-bankl IS INITIAL AND et_dfkkzp-ccnum IS INITIAL. "If both bank key and Card number are initial
    e_pymet = c_pymet. "Populate payment method as 'K'
    ENDIF.
    *For the obtained Business partner,fetch Bankdetails id and Payment card id from
    *exporting parameters of F.M 'FKK_BUPA_READ_SINGLE'
    CALL FUNCTION 'FKK_BUPA_READ_SINGLE'
    EXPORTING
    i_partner = lv_partner
    i_xbank = 'X'
    i_xccard = 'X'
    TABLES
    t_bank = it_bank
    t_ccard = it_ccard
    EXCEPTIONS
    partner_not_found = 1
    partner_in_role_not_found = 2
    internal_error = 3
    OTHERS = 4.
    IF sy-subrc <> 0. "#EC NEEDED
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    READ TABLE it_bank INTO wa_bank WITH KEY bankl = lv_bankl BINARY SEARCH. "Pick the entry which has bankl value as from et_dfkkzp
    IF sy-subrc = 0.
    e_pymet = c_pymetb.
    e_bkvid = wa_bank-bkvid.
    ENDIF.
    READ TABLE it_ccard INTO wa_ccard WITH KEY ccnum = lv_ccnum BINARY SEARCH. "Pick the entry which has ccnum value as from et_dfkkzp
    IF sy-subrc = 0.
    e_pymet = c_pymetd.
    e_ccard_id = wa_ccard-ccard_id.
    ENDIF.
    ENDIF.
    ENDFORM. " ORIGINKEY_V1

  • ABAP command "import from database..."

    Can someone in this forum explain to me the low level  details behind the ABAP command "import from database"?
    The select in tables like stxl, indx, moni just retrieves data in hex format for the fields of type raw or lraw.
    But the command import from database works fine!
    What's the magic? Compression? Hash algorithms? etc?
    Thanks!

    When you import a field from a database, it should be the same name and format when it was exported. These databases are a cluster table where data is stored in raw. I assumed it will read the cluster portion of the record and convert it into the field structure byte by byte. These tables have field CLUSTR which store the byte size of the record. So if you are willing to program the read, where you find out the length of the field you want to IMPORT, then read that number of byte from the cluster data, move it to the field you are importing, you should be able to do your own read. However, if we can do it in 1 statement using IMPORT, we don't need to program it.
    Cluster table is used to save space since you don't need to create a new database record for each line of internal table you stored into them. Hope this helps.

  • Re : The ABAP Command

    Is there is any ABAP Command such that my input is program name and output is the program output

    Hi ,
         There is no such ABAP command, but you can create a function module and call it from anywhere with your import parametres. You can get back the output using export parameteres of function module. Syntax is as below.
    CALL FUNCTION 'XYZ'
    IMPORTING
    EXPORTING
    Also, You can call a public Method implemeted in a class.
    Regards,
    Harpal

  • What are abap commands that link to a layout set

    hi
    what are abap commands that link to a layout set

    Hi,
    Script Commands:
    ADDRESS : Formatting of Address
    BOTTOM, ENDBOTTOM : Define Footer text in a window
    BOX, POSITION, SIZE : Boxes, Lines and Shading
    CASE, ENDCASE : Case Distinction
    DEFINE : Value assignment to text symbols
    HEX, ENDHEX : Hexadecimal values
    IF, ENDIF : Conditional text output
    INCLUDE : Include other texts
    NEW-PAGE : Explicit forms feed
    NEW-WINDOW : Next window main
    PRINT-CONTROL : Insert print control character
    PROTECT...ENDPROTECT : Protect from page break
    RESET : Initialize outline paragraphs
    SET COUNTRY : Country-specific formating
    SET DATE MASK : Formating of date fields
    SET SIGN : Position of +/- sign
    SET TIME MASK : Formating of time fields
    STYLE : Change style
    SUMMING : Summing variables
    TOP : Set header text in window MAIN
    Regards,
    Bhaskar

  • ABAP command IMPORT/EXPORT

    Hi!
    I would like to know whats the replacement for the IMPORT and export commands used in 4.7c  in ECC6. Can anyone tell me whats the replacement commands for import and export command that is used in abap/4 4.7c for ECC6.
    Thanks

    Hi Aarav,
    there is nothing like replacement for import/export.there is another statements to transferdata which are Set/Get.
    when you are working with sap you have sessions.so in between session if you want to transfer data then you will use set/get parameters.import/export are used within the session.means you opened se38 and written a program and then go back to se38 initial screen and entered another program name and in that program you want the data which is in the previous program you have written in the se38 in same session.
    reward points if helpful.

  • ABAP-command to check wheather a field in existing in a spec.table/structur

    Hello together,
    we have a tool to do corrections to CO-PA-transaction data.
    Because we have different structures for different operating concerns (and therefore different dynpros for those different operating concerns) we now want to dynamize this tool.
    The idea is to have one dynpro with the maximum number of CO-PA-fields and to control via a functional-module which vields are existing for one operating concern and those are not existing for that operating concern to change the attributes to non-changeable.
    Is there any command in ABAP to check if one field (e.g. one valuefield) is contained in one table-structure (e.g. table-structure CE1xxxx) ?
    Kind regards
    Udo

    *--Verfy infoobject exit or not
      call function 'DDIF_FIELDINFO_GET'
        exporting
          tabname        = KNA1   <--here you pass structure
        tables
          DFIES_TAB = <itab>    <--get list of fields in the table
        exceptions
          not_found      = 1
          internal_error = 2
          others         = 3.
      if sy-subrc <> 0.
        message  text-005 type 'E' .
      endif.
    loop at  <itab> assigning <field>.
    *here you validate wether field is available in the structure or not
    assign component 'SIGNCH'  of structure <field> to <f_sign>.
      if sy-subrc ne 0.
        message  'SIGNCH field is not available in table KNA1'  type  'E' .
      endif.
    endloop.
    Regards,
    Peranandam

  • ABAP Command for null value

    Hi ,
    I am writing an ABAP code in an Infopackage for loading dates which  are either null or between 2001 to 2004.
    Can anyone Please send me the exact code.
    I tried so many ways. But It didnt work. Any help will be appreciated.
    Thanks

    Hi,
    Please try this perhaps it may work ...
    L_T_RANGE-SIGN = 'I'.
    L_T_RANGE-OPTION = 'CP'.
    L_T_RANGE-LOW = '0000000*'.   
    APPEND L_T_RANGE.
    OR
    L_T_RANGE-SIGN = 'I'.
    L_T_RANGE-OPTION = 'EQ'.
    L_T_RANGE-LOW = '00000000'.   
    APPEND L_T_RANGE.
    Regards,
    Ferry Lianto

  • Abap command doubt

    Hi folks..
    One doubt.. In one of my program. I've used one command which is as follows .
    uom_s[] = uom[].
    where uom is a structure like  bapi_marm_ga  and
    uom_s is a structure like bapi_marm.
    all the relevant values got copied to uom_s table. but in uom_s there is field GTIN_VARIANT which gets populated automatically with value '00'. whereas there was no corresponding value in GTIN_VARIANT  in uom table.
    but there were two fields ( both type n ) in uom which were having '000000' and '00' value which has no corresponding field in uom_s. so how this command work which has populated a field automatically.
    GTIN_VARIANT in uom and uom_s are type c field length 2.
    so how this command works ...
    I hope I'm clear.

    yes my problem is solved. I've cleared that field explicitly
    thanks anyway

  • Execute ABAP command from string

    Hello ABAP experts,
    I have to generate a file with a o lot of fields that are calculated from other fields. I have a list to detailed each rule.
    For example : field 09 = field 05+ field 06+ field 07+ field 08
                         field 15 = (field 05+ field 06) * 0.15
    I wanted to stored the description of each rule in a table in order not to hard code these rules in the program. As the rules are dirfferents, I thought that the best solution was to write directly the ABAP code for the calculation in an external table z_table like this :
    Field                Instruction
    f_09                 f_09 = f_05 + f_06 + f_07 + f_08
    f_15                 f_15 = (f_05 + f_06) * 0.15
    I ask me if it is then possible to execute the content of the string z_table-instruction ?
    I hope to be clear. don't hesitate to ask me question if I am unclear.
    Many thanks in advance.

    You might get there by generating a dynamic, temporary program using the ABAP statement GENERATE SUBROUTINE POOL (see online help).
    You will have to add data declarations to make an executable subroutine out of these calculations, which will return the final result to the calling program.
    Thomas
    P.S. you should make sure that the table holding the ABAP code does not contain malicious statements like "DELETE FROM BSEG WHERE..." or similar

  • Is there any BAPI calling only  ABAP command SET UPDATE TASK LOCAL

    Hi abapers
    we have a requirement to run SET UPDATE TASK LOCAL befor calling BAPI_ENTRYSHEET_CREATE command by JAVA through JCO.
    is there any BAPI that contains SET UPDATE TASK LOCAL command or simillar functionality.
    Thanks & Regards,
    Ramesh

    You could write a wrapper RFC function module which calls your BAPI and also the SET UPDATE TASK LOCAL.
    Regards,
    Rich Heilman

Maybe you are looking for

  • Best practice for images. Air for Android

    Hey guys... I was thinking about the best solution when it comes to images storage for Air on Android. Since I dont have much experience with non-web based apps, I thought of two way and I would like to know your thought on them. 1.Application Storag

  • Using the Field Browser to update fields in Word.

    BIP: 11.1.1.5.0 Word: 2007 I have a large RTF template I'm editing in Word, where in I'm duplicating a block with about 120 fields in it. I've copy and pasted the block and now need to update each field to point at a new rowset. For example: <xsl:val

  • Quicken 2007 after 2012 security upgrade

    Quicken reports that my problem with printing from quicken 2007 is due to the latest security update -- 2012-001.  quicken tech support suggests to restore system to "pre-update" OS-X 10.6.x, restoring everything other than the security update.   wha

  • I cannot edit the informations of my tracks

    Lately I installed iTunes 8.0 on my new computer under Windows Vista. Before that I had itunes 7.2 on my old computer under Windows XP. The old system ran with out any problem. But now I cannot change the informations of my album tracks. I can choose

  • CSCIO.open_rpt

    Where I can find more information on how to use CSCIO.open_rpt and cscio.write_rpt in PL/SQL Package. When Package is call Oralce Application. Thanks Bob