Dynammic programming in wd-abap

hi experts,
please provide me links to the docs where i can get get material related to dynammic progamming , in detailed , simple and step by step manner. Examples will be great help.
Thank You.

Hi Vishavdeep,
Please refer these blogs: /people/thomas.szcs/blog/2005/12/28/dynamic-programming-in-web-dynpro-abap--introduction-and-part-i-understanding-ui-elements
/people/thomas.szcs/blog/2006/01/03/dynamic-programming-in-web-dynpro-abap--part-ii-handling-viewelements
/people/thomas.szcs/blog/2006/02/22/dynamic-programming-in-web-dynpro-abap--part-iii-aggregations-and-ddic-binding-of-viewelements
I hope it helps.
Regards
Arjun

Similar Messages

  • How to rename a program name in ABAP.

    Hi all,
                How to rename a program name in ABAP. Please help me out in this.
    Thanks & Best Regards,
    Vishnu

    hi vishnu,
    goto se38--> press Ctrl+F6
    it will give one small screen source program and target program.
    in target program type ur pgm name
    reward if its useful.

  • Can we rename the existing z-program in SAP-abap

    Can we rename the existing z-program in SAP-abap. If yes, than how it can be done. But actually we don't want to copy the code from the existing z-program to the new one which will be created. We just want to make rename the existing z-program in SAP-abap. Please suggest, how it can be?
    Edited by: akg.amit on Oct 20, 2010 7:40 AM

    Hi Amit,
    In SE38 Open the program with old name. Press the RENAME button. In the Target program field provide the new name of program name. This new name for program should not exist in your system. Click on the Rename button. It will give a pop-up where it ask if you want to rename any includes in that program. I assume you dont have any includes in the program. So press the Rename button again without selecting the "Include" check box. Now it will ask for the Transport request. Provide your Transport request number. The program will be renamed.
    Regards,
    Immanuel.

  • C Program call in ABAP

    Hello,
    Can anybody tell me the syntax to call a 'C' Program in an ABAP program. How it can be done, and where can I get some information on it?
    Regards,
    Kunal

    Hi, I tested function SXPG_COMMAND_EXECUTE on a Windows server and it worked well.  Here's an example of my ABAP code.
    Mark
    REPORT Z_TEST3.
    The function SXPG_COMMAND_EXECUTE allows you to perform an
    external operating system command from within an ABAP program.
    The export parameter COMMANDNAME is defined in txn SM69.
    ZCMD is defined as 'cmd /c'.
    start-of-selection.
      perform exe.
    FORM EXE.
    data: t_exec_protocol like btcxpm occurs 0 with header line.
    CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
      EXPORTING
       COMMANDNAME            = 'ZCMD'
       ADDITIONAL_PARAMETERS  = 'dir \usr\sap\interface\*.txt'
        OPERATINGSYSTEM       = SY-OPSYS
      TARGETSYSTEM                        = SY-HOST
      DESTINATION                         =
      STDOUT                              = 'X'
      STDERR                              = 'X'
      TERMINATIONWAIT                     = 'X'
      TRACE                               =
    IMPORTING
      STATUS                              =
      EXITCODE                            =
      TABLES
        EXEC_PROTOCOL                       = t_exec_protocol
    EXCEPTIONS
      NO_PERMISSION                       = 1
      COMMAND_NOT_FOUND                   = 2
      PARAMETERS_TOO_LONG                 = 3
      SECURITY_RISK                       = 4
      WRONG_CHECK_CALL_INTERFACE          = 5
      PROGRAM_START_ERROR                 = 6
      PROGRAM_TERMINATION_ERROR           = 7
      X_ERROR                             = 8
      PARAMETER_EXPECTED                  = 9
      TOO_MANY_PARAMETERS                 = 10
      ILLEGAL_COMMAND                     = 11
      WRONG_ASYNCHRONOUS_PARAMETERS       = 12
      CANT_ENQ_TBTCO_ENTRY                = 13
      JOBCOUNT_GENERATION_ERROR           = 14
      OTHERS                              = 15
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    loop at t_exec_protocol.
      write: / t_exec_protocol-message.
    endloop.
    ENDFORM.

  • Programs generated using ABAP query vanishes after upgrade

    Hi all,
    The programs generated using abap query in sq01 vanishes after upgrading from 4.6C to ECC 6.0 system.
    Is this a know issue, do we have a solution for this?
    Can anyone help
    Thanks
    Senthil

    Hi,
    Try to generate the Queries again in the new system...using the FM : RSAQ_GENERATE_PROGRAM
    The input needed is the Query name and the usergroup...The details can be obtained from the table AQLQCAT(local queries areas) and AQGQCAT(global areas queries).
    Once you generate the query , a program gets created...
    if you have lots of queries to be genretated, write a custom report by fetching the data from the above tables and use the FM to generate the same...
    Hope this helps you..
    Reward if useful
    Regards
    Shiva

  • Xslt program in the abap workbench

    Hi,
    could you please give me the navigation steps to create xslt program in the abap workbench ??
    Thanks in advance
    Regards
    ravindra

    Babu,
    Check this weblogs for some help on this:
    /people/r.eijpe/blog/2005/11/04/using-abap-xslt-extensions-for-xi-mapping
    /people/dirk.roeckmann/blog/2006/07/26/grouping-xml-with-xslt--from-muenchian-method-to-xslt-20
    /people/achim.bangert/blog/2005/07/17/code-generation-using-xsl-transformations
    /people/rahul.nawale2/blog/2006/11/01/dynamically-sending-a-mail-to-the-po-creator-using-xslt-abap-mapping
    ---Satish

  • BDC program using HR ABAP

    Hi,
    I am new to HR ABAP . Can anybody send me an end to end sample BDC program using HR ABAP. I have a requirement  to develop a program.
    Please give the sample file which  has the sample data to upload to SAP.
    Rgds,
    Sofia

    hi....
    to create a program of your own....
    goto tcode 'SHDB' and there go for a new recording of the TCODE as required by you...
    after recording is complete there is a button to GENERATE a program for that
    i am looking for a complete data tranfer example which i have done.... i ll send that to you
    regards
    this is a sample code for it
    THIS IS WRITTEN BY ME,YOU CAN GENERATE PROGRAM DIRECTLY
    *" Type declarations...................................................
    Type declaration of the structure to hold material information      *
    TYPES:
      BEGIN OF type_s_mat,
        name(10)  TYPE c,                  " Material Number
        industry  TYPE c,                  " Industry Sector
        mtype(10) TYPE c,                  " Material Type
        descr(20) TYPE c,                  " Material Description
        unit(10)  TYPE c,                  " Base Unit of Measure
      END OF type_s_mat,
      type_s_f2(4096) TYPE c.
    *" Data declarations...................................................
    Work variables                                                      *
    DATA:
      fs_f1 TYPE type_s_mat,               " Field string of TYPE_S_MAT
      fs_workarea TYPE bdcdata,            " Field string of type BDCDATA
      fs_bdc TYPE bdcmsgcoll,              " Field string of type bdcmsgcoll
      w_msg(72) TYPE c,                    " Holds message for writing
      w_i TYPE i,                          " Holds value of rc
      w_file TYPE filetable,               " Holds name of the file
      w_var  TYPE file_table,              " Field string of file_table
      w_file1 TYPE string.                 " Holds the path of the file
    Internal table to hold data for the input                           *
    DATA:
      t_itab LIKE
    STANDARD TABLE
          OF fs_workarea,
    Internal table to hold data for the messages                        *
       t_mess LIKE
    STANDARD TABLE
           OF fs_bdc,
       t_mat LIKE
    STANDARD TABLE
          OF fs_f1,
    Internal table to hold data for the input                           *
      t_temp TYPE
    STANDARD TABLE
          OF type_s_f2.
    *"Selection screen elements............................................
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    PARAMETERS: p_file(128) TYPE c.
    SELECTION-SCREEN END OF BLOCK b1.
               AT SELECTION-SCREEN ON VALUE-REQUEST EVENT               *
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          window_title            = 'FILE_OPEN'
          default_extension       = 'XLS'
        CHANGING
          file_table              = w_file
          rc                      = w_i
        EXCEPTIONS
          file_open_dialog_failed = 1
          cntl_error              = 2
          error_no_gui            = 3
          not_supported_by_gui    = 4
          OTHERS                  = 5.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.                               " IF SY-SUBRC <> 0.
      LOOP AT w_file INTO w_var.
        p_file = w_var-filename.
      ENDLOOP.                             " LOOP AT W_FILE INTO W_VAR.
      ULINE.
                          START-OF-SELECTION EVENT                      *
    START-OF-SELECTION.
      CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
        EXPORTING
          i_tab_raw_data       = t_temp
          i_filename           = p_file
        TABLES
          i_tab_converted_data = t_mat
        EXCEPTIONS
          conversion_failed    = 1
          OTHERS               = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.                               " IF SY-SUBRC EQ 0.
                          END-OF-SELECTION EVENT                        *
    END-OF-SELECTION.
      PERFORM sub_display.
    *& Form  sub_screen
    This subroutine appends the value of screen name and number        *
         -->PV_screenam  This holds screen name                         *
         -->PV_scrnum    This holds screen number                       *
    FORM sub_screen  USING    value(pv_screenam)
                                  value(pv_scrnum).
      CLEAR fs_workarea.
      fs_workarea-program = pv_screenam.
      fs_workarea-dynpro = pv_scrnum.
      fs_workarea-dynbegin = 'X'.
      APPEND fs_workarea TO  t_itab.
    ENDFORM.                               " FORM SUB_SCREEN
    *& Form  SUB_FIELD_DATA                                               *
    This subroutine apppends  field name and value of the screen.      *
    -->PV_FLDNAM   This holds field name                               *
    -->PV_FLDVAL   This holds Field value                              *
    FORM sub_field_data  USING    value(pv_fldnam)
                               value(pv_fldval).
      CLEAR fs_workarea.
      fs_workarea-fnam = pv_fldnam.
      fs_workarea-fval = pv_fldval.
      APPEND fs_workarea TO  t_itab.
    ENDFORM.                               " FORM SUB_FIELD_DATA
    *& Form  sub_display                                             *
    This subroutine fills the value on screen fields when BDC executes *
    There are no interface parameters to be passed to this subroutine. *
    FORM sub_display .
      LOOP AT t_mat INTO fs_f1.
        CLEAR fs_workarea.
        CLEAR fs_bdc.
        PERFORM sub_screen     USING 'SAPLMGMM' '0060'.
        PERFORM sub_field_data USING 'RMMG1-MATNR' fs_f1-name.
        PERFORM sub_field_data USING 'RMMG1-MBRSH' fs_f1-industry.
        PERFORM sub_field_data USING 'RMMG1-MTART' fs_f1-mtype.
        PERFORM sub_field_data USING 'BDC_OKCODE' '/00'.
        PERFORM sub_screen     USING 'SAPLMGMM' '0070'.
        PERFORM sub_field_data USING 'MSICHTAUSW-KZSEL(01)' 'X'.
        PERFORM sub_field_data USING 'MSICHTAUSW-KZSEL(02)' 'X'.
        PERFORM sub_field_data USING 'BDC_OKCODE' '=ENTR'.
        PERFORM sub_screen     USING 'SAPLMGMM' '4004'.
        PERFORM sub_field_data USING 'MAKT-MAKTX' fs_f1-descr.
        PERFORM sub_field_data USING 'MARA-MEINS' fs_f1-unit.
        PERFORM sub_field_data USING 'BDC_OKCODE' '/00'.
        PERFORM sub_screen     USING 'SAPLMGMM' '4004'.
        PERFORM sub_field_data USING 'BDC_OKCODE' '=BU'.
        CALL TRANSACTION 'MM01' USING t_itab MODE 'A' MESSAGES INTO t_mess.
      ENDLOOP.
    ENDFORM.                    " SUB_DISPLAY
    Edited by: Mohit Kumar on Feb 18, 2009 12:40 PM

  • SLD Application Programming Interface for ABAP-Based Systems

    Hi Experts,
    Could you help me to configure the connection between SLD ABAP API and the SLD manually?
    Why we use SLD Application Programming Interface for ABAP-based systems (SLD ABAP API)?
    please help.
    Sushama

    You have to use transaction SLDAPICUST in the business system to define the SLD access data. This data consists of the host and port of the SLD as well as a user and password (PIAPPLUSER, for example). You can use the entries that you maintained on your Integration Server.
    The RFC destinations LCRSAPRFC and SAPSLDAPI are used for the SLD connection. They use the SLD access data maintained with transaction SLDAPICUST. The RFC destination LCRSAPRFC is used to read the exchange profile; SAPSLDAPI is used by the ABAP API.
    The RFC destinations are also used to retrieve the information about where to retrieve the information about where to find the Integration Builder required for the proxy generation. This information is located in the exchange profile.
    You have to create both RFC destinations in your business system. They use the same registered server program, which is defined as part of the RFC engine settings of the J2EE Engine on the Integration Server host. This means that all business systems can use the same server program for their RFC destinations LCRSAPRFC and SAPSLDAPI. This program ID is:
    &#9679;      SAPSLDAPI_UNICODE for Unicode business systems
    &#9679;      SAPSLDAPI_NONUNICODE
    This should help

  • Checking for running programs using a abap program

    Is there a way in ABAP to detect from within a program that another process is running the same program? Meaning if PROG1 is running, could PROG1 check to see if another process is running program PROG1?

    Use the locking concept.   You can either create your own, or a popular one to use is ESINDX, passing parameters: relid 'ZZ', SRTFD program name, and SRTF2 = 0. 
    The logic is:
    Attempt to get lock (FM ENQUEUE_ESINDX, perhaps).
    If lock got -> run program
    If lock not got -> quit.
    You have to put this logic at the start of your program.
    matt

  • Migrate R/3 ABAP programs to NW ABAP stack

    Hello all,
    I would appreciate if you can share your experience with me.  We have some old ABAP programs written for R/3.   What need to be done to convert them to run in NW environment?  How much effort is needed?   Do I have to redevelop the screen in Webdynpro etc? 
    Wing

    Check the below links :
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/8105db90-0201-0010-cfbe-ae94d43e2e48
    http://www.lionbridge.com/NR/rdonlyres/4940BE1F-DA46-412E-AB16-F049BD865AC1/0/PBNWFAQ_50070686_en.pdf
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10564d5c-cf00-2a10-7b87-c94e38267742
    http://help.sap.com/bp_bpmv130/Documentation/Installation/PostInstallation_Abap.pdf
    Thanks
    Seshu

  • Debugging a Module Pool Program(Object Oriented ABAP)

    Hello Experts,
    Could you please advise me on an efficient debugging technoque of Module Pool Program which is based on Object Oriented ABAP?

    Hi
    Debugging Module pool program using ABAP objects is same as debugging any other report/module pool program.
    Click on the Create shortcut icon on the toolbar.
    In the popup window choose "System command" and in the command enter "/h"
    A shortcut on the desktop would be created
    Drag and drop the shortcut to the modal window to set debugging on.
    Approach 2:
    Create a txt file on the desktop with the following lines:
    [FUNCTION]
    Command=/H
    Title=Debugger
    Type=SystemCommandDrag and drop this file to the modal window to set debugging on.
    How do I switch between the Classic and New Debugger
    From within the ABAP workbench, select the Utilities->Settings Menu
    Select the ABAP Editor Tab
    Select the Debugging tab within the ABAP Editor Tab
    Select the Classic Debugger or New Debugger radio button
    Refer to this thread
    http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
    Debugging
    Check these documents.
    http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc
    http://help.sap.com/saphelp_nw04/helpdata/en/5a/4ed93f130f9215e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
    http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc
    http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/84/1f624f4505144199e3d570cf7a9225/frameset.htm
    http://help.sap.com/saphelp_bw30b/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm
    ABAP Debugging
    http://www.saplinks.net/index.php?option=com_content&task=view&id=24&Itemid=34
    Look at the SAP help link below
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
    Reward points if useful
    Regards
    Anji

  • Call se38 program from an abap proxy

    Hi, All,
    For some reasons, I have to call a se38 program (or tcode) instead of calling a FM from an abap proxy. Also I have to pass an internal table to the program (or tcode). Is there anybody know how to do it? Thanks.
    Meiying

    Is there no BAPI available for this "reason"?
    Or create your own (BAPI compliant) FM and just call that?
    Please explore transaction BAPI (incase you are not aware of it yet).
    If you exposed a remote way to submit (any) report using an internal table which that "any report" can use, then chances are good that your ABAP proxy would be a bit of a security hazard...
    Or am I missing the point here?
    Perhaps you could explain the scenarioa bit, and then appropriate solutions can be suggested.
    Cheers,
    Julius

  • Running a DOS program before an ABAP program

    Hello
    we have Z_Order  ABAP program which load order to SAP, we need to run a DOS program to get file to the correct folder.
    Is it possible to run this DOS program every time user run Z_Order program
    Thanks

    Hello Mohsen,
    welcome in the SAP community.
    If you don't have the possibility to change your ABAP report Z_Order you can do this:
    Download the COM Connector from here. Look at example 0108_ABAPReport.vbs. It is a VBScript to implement and execute and ABAP Report via VBScript. Change the report inside the VBScript like this:
    Dim ABAP(2)
    ABAP(0) = "Report z_myreport Line-Size 256."
    ABAP(1) = "Submit Z_Order."
    Now write a batch file like this:
    MyDOSProg.exe
    wscript.exe 0108_ABAPReport.vbs
    In the first step your DOS program is executed and in the second step the VBScript implements and executes the ABAP program to run your Z_Order report. You can start your batch file from your presentation server. But you need one the one hand rights for RFC connection and on the other hand a developer key.
    Another way is to go to your developer and talk to him about a RFC function module, which calls the report Z_Order via Submit. Now you can call this RFC function module as in the CCo example 0103_Ping.vbs as I described above. Here you need only the rights for RFC connection.
    If you have the possibility to change your ABAP report, you can do that:
    Call Method cl_gui_frontend_services=>execute
      Exporting
        DOCUMENT = 'cmd MyDOSProg.exe'
        SYNCHRONOUS = 'X'
      Exceptions
        Others = 1.
    Call the method execute in front of all other commands inside your Z_Order report.
    Cheers
    Stefan

  • About send TCP package to other server program with the ABAP

    I have a server program, it receipt the tcp data package,then process,then return the result with tcp package.
    the data come from the sap system.
    for example, the material master record.
    I can use the abap to get the data,but i have no idea to send the data to server progam and receipt the result.
    How to do it? Who can help me.Thanks a lot.
    Best regards.
    LnSinco.

    > As an experiment, I tried going the other way. That it, I started up the
    > Simple Data Server VI on the Windows PC. I then "pointed" my SGI client at
    > the server on the PC. It works, ... sort of. I am getting an
    > appropriately sized list of numbers displayed on the SGI host, but while
    > most look like floating point values, some look like VERY large integers.
    >
    > I believe I have a data representation problem. That is, I don't know if I
    > should expect to send (server-side) or see (client-side) C programming
    > variables of type 4-byte floats, 8 byte doubles, or something else. Also, I
    > am not certain how many values I should expect to send/see in each message.
    > I think the default for the Simple Data Client/Server programs is 200
    > points
    , but I am not sure what that really means, either.
    >
    By default, LV converts all of the datatypes to be in big endian form.
    I'm not sure about your SGI, but if it is a little endian machine, then
    that will cause problems. If that is the case, you will want to swap
    the words and bytes of the four byte values.
    To debug this more easily, you might just make sure you send over very
    predictable data such as 0, 1, 2, 3, etc. Lots of times these are
    tested with random data, but that makes it pretty hard to see a pattern
    when the data is wrong.
    Greg McKaskle

  • Program in JAVA-ABAP

    Can we program in JAVA in mySAP to build an application equivalant to ABAP?
    If yes, then how much JAVA is essential? is basics fine? or advance concepts are required?

    Theoretically its is definitely possible, but you might face a lot of practical difficulties. For one, all your application tables are in ABAP and for each operation you would have to call the ABAP table. As far as I know, the dictionary-level integration between ABAP and Java is not fully functional yet.
    Secondly, each time you would have to do a Jco call to the ABAP engine to pass back values/call an FM in the system, etc. That would add to the time taken by your app.
    You would require a very good knowledge of java to be able to code an entire app.
    Sudha

Maybe you are looking for

  • How can I get Firefox to save what folder I last uploaded from?

    I recently updated to FF 5.0.1 from some antiquated version of FF 3. I have set the download destination so that it always saves to the folder of my choosing, but it does not seem to remember the folder I last uploaded from. For example, say I wanted

  • Apple iPhone 5 help

    hello, I have recently acquired my son's old iPhone 5, how can I change the iCloud account on the phone from his to mine?

  • If you are desperately waiting for a new update... Read this!

    WOW! Just saw this post. This is really pushing me towards Roku or Andoid mini-PC...  I did their survey and commented in there that I do realize technology is always changing/improving/etc... But the existing WD TV lives that I have could very easil

  • Problem With Fax Modem 43R1814 CallerID

    The Caller ID Doesn't Appear when I Use The Command AT+VCID=1 and the fax replies with OK. and when I use the Command AT#CID=1 The fax Replies with ERROR,any Ideas How to Read The Caller ID 

  • JFrame background image

    Hi all , i need to put a background image into a JFrame, currently i am seeting a label with an icon and adding it to the jframe but it pusshes all my other components across. how do i get it to be displayed behind the other components? final JFrame