How to call a SM35 transaction and run in BDC report.

Hi Experts,
I knew that how to call a transaction but here, I've to call the SM35 transaction ,which have my BRS BDC recording, to run my session.
Pls help me how to call the transaction and run/process the first session tab in the table control of SM35 window.
thanks & regards
sankar.

Hi,
Look up this example..here v have recorded one transaction & running it throough BDC report programming.
report ZBDC_16JUL2008
       no standard page heading line-size 255.
include bdcrecx1.
DATA : BEGIN OF it_tab OCCURS 0,
         LIFNR(016),
         BUKRS(004),
         KTOKK(004),
         NAME1(035),
         SORTL(010),
         STRAS(035),
         PFACH(010),
         ORT01(035),
         LAND1(003),
         REGIO(003),
         SPRAS(002),
         TELF1(016),
         AKONT(010),
         FDGRV(010),
       END OF it_tab.
start-of-selection.
CALL FUNCTION 'UPLOAD'
EXPORTING
  CODEPAGE                      = ' '
   FILENAME                      = 'D:\'
   FILETYPE                      = 'ASC'
  ITEM                          = ' '
  FILEMASK_MASK                 = ' '
  FILEMASK_TEXT                 = ' '
  FILETYPE_NO_CHANGE            = ' '
  FILEMASK_ALL                  = ' '
  FILETYPE_NO_SHOW              = ' '
  LINE_EXIT                     = ' '
  USER_FORM                     = ' '
  USER_PROG                     = ' '
  SILENT                        = 'S'
IMPORTING
  FILESIZE                      =
  CANCEL                        =
  ACT_FILENAME                  =
  ACT_FILETYPE                  =
  TABLES
    data_tab                      = it_tab
EXCEPTIONS
   CONVERSION_ERROR              = 1
   INVALID_TABLE_WIDTH           = 2
   INVALID_TYPE                  = 3
   NO_BATCH                      = 4
   UNKNOWN_ERROR                 = 5
   GUI_REFUSE_FILETRANSFER       = 6
   OTHERS                        = 7
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
perform open_group.
LOOP at it_tab.
perform bdc_dynpro      using 'SAPMF02K' '0105'.
perform bdc_field       using 'BDC_CURSOR'
                              'RF02K-KTOKK'.
perform bdc_field       using 'BDC_OKCODE'
                              '/00'.
perform bdc_field       using 'RF02K-LIFNR'
                              it_tab-LIFNR.
perform bdc_field       using 'RF02K-BUKRS'
                              it_tab-BUKRS.
perform bdc_field       using 'RF02K-KTOKK'
                              it_tab-KTOKK.
perform bdc_dynpro      using 'SAPMF02K' '0110'.
perform bdc_field       using 'BDC_CURSOR'
                              'LFA1-TELF1'.
perform bdc_field       using 'BDC_OKCODE'
                              '/00'.
perform bdc_field       using 'LFA1-NAME1'
                              it_tab-NAME1.
perform bdc_field       using 'LFA1-SORTL'
                              it_tab-SORTL.
perform bdc_field       using 'LFA1-STRAS'
                              it_tab-STRAS.
perform bdc_field       using 'LFA1-PFACH'
                              it_tab-PFACH.
perform bdc_field       using 'LFA1-ORT01'
                              it_tab-ORT01.
perform bdc_field       using 'LFA1-LAND1'
                              it_tab-LAND1.
perform bdc_field       using 'LFA1-REGIO'
                              it_tab-REGIO.
perform bdc_field       using 'LFA1-SPRAS'
                              it_tab-SPRAS.
perform bdc_field       using 'LFA1-TELF1'
                              it_tab-TELF1.
perform bdc_dynpro      using 'SAPMF02K' '0120'.
perform bdc_field       using 'BDC_CURSOR'
                              'LFA1-VBUND'.
perform bdc_field       using 'BDC_OKCODE'
                              '/00'.
perform bdc_dynpro      using 'SAPMF02K' '0130'.
perform bdc_field       using 'BDC_CURSOR'
                              'LFBK-BANKS(01)'.
perform bdc_field       using 'BDC_OKCODE'
                              '=ENTR'.
perform bdc_dynpro      using 'SAPMF02K' '0210'.
perform bdc_field       using 'BDC_CURSOR'
                              'LFB1-FDGRV'.
perform bdc_field       using 'BDC_OKCODE'
                              '=UPDA'.
perform bdc_field       using 'LFB1-AKONT'
                              it_tab-AKONT.
perform bdc_transaction using 'FK01'.
ENDLOOP.
perform close_group.

Similar Messages

  • Urgent!!  How to call a custom transaction or an ABAP program in BSP?

    Urgent!!  How to call a custom transaction or an ABAP program in BSP?
    We are pretty new on BSP.  Would be very appreciated if any expert here give us the detailed steps on how to build up the application to just call a custom transaction (e.g., t-code: ztest) or an ABAP program.  Would we have to create a button or event handler to do that?  And the detailed steps?
    Thanks in advance and we will definately give you reward points!

    hi Durairaj,
    During the time to wait for your answer, we copied Bernd's code from your last link, but when activating it, get the 1st error msg:
    Field "CLIENT" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. "DATA" statement."DATA" statement. The error shows up here:
    <td>
    <htmlb:inputField id = "client"
    value = "<%= client %>" />
    </td>
    Then we added Client to the page attribute and define it as type String, then get another error:
    The field "EVENT" is unknown, but there is a field with the similar name "EVENT_ID"."EVENT_ID". This error shows up at the beginning in the Event Handler:
    OnInputProcessing:
    code
    • event handler for checking and processing user input and
    • for defining navigation
    • event handler for data retrieval
    event = cl_htmlb_manager=>get_event( runtime->server->request ).
    IF event->name = 'button' AND event->event_type = 'click'.
    button_event ?= event.
    How to resolve this unknown Event error, need to define in Page Attribute tab? but with what type?
    Actually we only want to run an ABAP4 program in BSP, the code is complicated, could you show us an easy way of doing this in BSP?

  • How to call the Application configuration in run time.

    hi guru,
    i have created two  Application configuraton   and it working fine.
    my question how to call the application configuration in run time.
    Example :
    Based on the user i want to change the Application Configuration.like Super user and Normal user.
    Advance thank's
    Regard's
    Vivekanathan.S

    Hi,
    Please try out this way-
    Have a look at this table -
    WDY_CONF_APPLU - (Customizing Data for Web Dynpro Applications).
    after you are done with the configuration--
    Ge the config id for the given application from this table. And depending on the user get an entry from this table and display accordingly.
    Please refer to these links -
    different default layouts for different CONFIG_IDs
    Get WDCONFIGURATIONID
    Regards
    Lekha

  • How do you complete this transaction and were do you do it?

    How do you complete this transaction and were do you do it?

    It might help if you mentioned which transaction you are referring to...
    There are some very clever people here, but as far as I know, none are mind readers.

  • How to call the css file and its images from our application......

    hai,
    Im uploading a .css file and some images in Apex shared components ,now how to call the css file and images from my Application.... plz tell me detailed.....
    Edited by: anoo on Nov 3, 2008 12:51 AM

    Hi Anoo,
    Sorry, didn't see that you'd started a new thread, so have answered this in 'undefined' is null (or) not an object "
    Andy

  • How can i create list box and  dropdown in my report?

    dear experts
    how can i create list box and  dropdown in my report?
    thanks  in advance

    Pl. see the code given below.
    REPORT Z_LISTBOX.
    Data declaration ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    TYPE-POOLS: VRM.
    DATA: NAME  TYPE VRM_ID,
          LIST  TYPE VRM_VALUES,
          VALUE LIKE LINE OF LIST.
    Selection screen ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    PARAMETERS: PS_PARM(10) AS LISTBOX VISIBLE LENGTH 10.
    AT SELECTION SCREEN OUTPUT ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    AT SELECTION-SCREEN OUTPUT.
      NAME = 'PS_PARM'.
      VALUE-KEY = '1'.
      VALUE-TEXT = 'Line 1'.
      APPEND VALUE TO LIST.
      VALUE-KEY = '2'.
      VALUE-TEXT = 'Line 2'.
      APPEND VALUE TO LIST.
      CALL FUNCTION 'VRM_SET_VALUES'
           EXPORTING
                ID     = NAME
                VALUES = LIST.
    START-OF-SELECTION.
    Regards,
    Joy.

  • I am new to mac. how do i change the "cupertino" and Heavenly Valley ski reports on my dashboard to my area?

    I am new to Mac. How do i change the "Cupertino" and Heavenly Valley ski reports on my dashboard to Seattle and Stevens Pass Ski area?

    Hover your curser over the Widget until you see a little i appear, then click on the little i to access the Widget's settings.

  • How to call a custom transaction in retailstore which runs in same session?

    Hey guys,
    hope you can give me some hints. OK, i have a resultlist and it should be possible to call a SAPGui transaction via webgui service. This works fine but the link which i created has no info about the current session ID. I build an URL with the function modul ITS_GET_URL and concatenate it with the neccessary transaction code and parameter. Then i call this URL by function ITS_BROWSER_WINDOW_OPEN. A new browser window is opened with the right transaction in webgui. But if i hit the button back, i get the message, i was succesfully logged off. This wasn't the result which i want.
    What i want is to call the transaction via webgui and this transaction should run in same window and in same session. Any idea how to do that?
    I know i need to build an URL with a valid session ID for the transaction, but how can i do that?
       thx,
          Wei-Ming

    Hello Sal.
    This does not look like an ABAP issue, but rather JavaScript, JQuery or whatever you are using to handle the button-click-event in your "Internet Service" web application.
    You might try window.open("http://xxx...me23n","_self").
    Best regards,
    Frank.

  • How to create a new transaction and add it to Area Menu

    Hi.
    I have to create a report and run the report using the Tcode and Tcode has to be added in the Area Menu at the initial screen.
    Please tell me how can i do that.
    Thank you in advance

    You can add additional menu transaction in the SAP main menu without affecting the original SAP default area menu S000.
    For example, you have created a transaction code called ( z123 - ABC Own Report ) and you want to insert it under Logistics.  The specific user will be able to access ABC Own Report by clicking Logistics -> ABC Own Report.
    Steps :-
    Goto Transaction SE43 - Area Menu
    Click the copy button.  Copy from S000 to ZXXX
    After copying, click Change (area menu ZXXX)
    Double click on Logistics and add in your transaction code in the AreaMenu.
    Remembers to Activate it.
    Next Goto Transaction SU01 - Maintain users
    Type in the user name and click the Defaults button
    Type in the area menu (ZXXX) in the Start Menu field.
    Click Save
    The user will be able to see the additional transaction on the next logon.
    The CUA area menus are converted to tree navigation in Release 4.6A. The menu contents are automatically copied into a new data structure in Upgrade to Release 4.6A or higher. You can edit Area Menus with a new maintenance interface (Area Menu maintenance transaction: SE43 ).
    Reporting Tree Integration - Only transactions could previously be put in Area Menus. From Release 4.6A you can also put all the types of reports which are in reporting trees, in Area Menus. The system automatically assigns a transaction code to call the report from the menu. If you have already put the report in another Area Menu, no new transaction code is generated, the unique transaction code already assigned is used.
    You can create Area Menus from complete reporting trees with the migration transaction RTTREE_MIGRATION . The report transaction codes are generated automatically.
    Reporting trees can only be displayed. They cannot be maintained. To modify the contents of reporting trees, you must convert them with the migration transaction. You can then modify the contents with the Area Menu maintenance.

  • How to Call SAP ECC transactions into CRM IC Webclient Profile Screen

    Dear all,
    We are implementing IC Webclient application for our Clientu2019s call center operations.
    All sales related activities are being created in back end SAP ECC system like, starting from Quotation to Sales Order, Deliveries and Billing.
    Client wants to see all relevant ECC reports of Sales transactions in IC Webclient Screen.
    Connectivity between SAP CRM and ECC has already been established and we did all basic configuration for IC Webclient, but donu2019t know how to and where to call ECC transaction in IC Webclient Screen.
    I am looking for suggestions from any of you to handle this requirement successfully. I would be grateful if you send me any documentation which addresses this requirement.
    Your suggestions and help will be highly appreciated.
    Thank you,
    Raghu ram.

    Hi,
    Step-by-step process for the same is as follows:
    1. Create a launch transaction to launch the relevant BOR object at the following
    IMG->CRM->IC WebClient->Basic Functions->Transaction launcher -> Configure Transaction Launcher (Wizard).
    This wizard is very useful and easy way to create a launch transaction and guides through each step and generates a handler class for you.
    2. This transaction now has to be incorporated in the Navigation bar. For this you have to create navigation bar entry and navigation bar profile.
    IMG-> CRM-> IC WebClient->Basic Functions -> Define Navigation Bar Profiles
    Here you have to first Define Entries where you would input Launch transaction ID created in step 1 and then Define the Navigation Bar Profile.
    3. Assign the Navigation bar profile to IC WebClient profile.
    Please note that you can you Transaction launcher for incorporating any web links, PCUI Transactions, CRM Transactions, ERP transactions etc.
    Regards,
    Deepak

  • How to test oracle is up and running in remote machine using shell script

    Hello,
    I need help to write an linux script.
    I have a java application server running on machine 192.168.5.20 and our oracle 10g standard 1.0.2 is running on machine 192.168.5.21.
    I have found script to start oracle when computer is turned on.
    But I cannot start my application server automatically since it depends on whether oracle is up and running or not on the remote machine.
    Therefore, in case of power failure or maintenance, our client has to call us to start application server.
    I would be grateful if someone can help me "How can I write script to check oracle is up and running in machine 192.168.5.21 from machine 192.168.5.20.
    For your information, I have no oracle installed in application server. So tnsping won't work.
    What I want is when power is back, application server script automatically and tesing for oracle server is up and running. If it is up, script will start application server.
    Thanking you.

    Hi,
    It's not failover or experimental. My application server uses JBOSS and JBOSS needs database name to start up. My enviroment is LAN. My database is in different machine as I mentioned before. So In case of power failure, I need to start my application server (JBoss) manually, because I need to confirm that oracle is already running before start app server.
    I want an automated script (when power is just on) to start my application server which will wait to check if the datbase server is up I will start application server.
    The scripts given above It works if appserver and db server in the same machine (my development machine).
    But when I test the script in my production applicaiton server, It shows sqlplus command not found (my app server does not have any oracle client installed).
    About hostname yes My applicaiton server hostname is hostapp1 and dabase server hostname is hostdat1.
    Do you think Is it possible to test the script without oracle client not installed. or It has to be done writing code like java program and test using jdbc connection.
    Best regards.

  • How to call standard CRM transactions into Webdynpro component

    Hi,
    i have a requirement where i need to call the the standard CRM transaction like <i>activity worklist</i> and <i>activity creation</i> into the webdynpro component. Please let me know how to do it, would appreciate it, if provided with a sample code.
    Thanks,
    Suri

    Hi Suri,
    You could use suspend/resume mechanism to jump to the ITS version of these transactions (in case they are ITS-enabled). Starting the SAPGUI from within the browser environment, transferring data/starting a transaction and then returning to the browser is not possible.
    Best regards,
    Thomas

  • How to call external application (transaction launcher) from event method

    Hi all
    Can somebody tell me which program lines to put into an event handler method in a view controller to get an external application called. I intend to define the link to the external application in the Transaction Launcher. But I cannot find any instructions on how to call the Transaction Launcher from my event handler method. I do not want to launch the application from the navigation bar, ONLY via a link in a list of invoices in a table view, and I want to press the invoice number to get an external application called to display the invoice. My event handler method gets called fine enough, but I have no clue which program lines to put into the method to pass on the call to the Transaction Launcher
    Best regards
    Arne Thage / MarchIT / Denmark

    hi,
    check class CL_CRM_UI_LTX_NAVBAR_PARAM.
    call method : CREATE_PARAMETER_OBJECT with parameters
    IV_LINK_ID     Importing     Type     CRMT_UI_LOGICAL_LINK_ID                                                                                Logical Link ID
    IV_PARAMETER     Importing     Type     CRMT_UI_LINK_PARAMETER                                                                                Link Parameter
    RV_RESULT     Returning     Type Ref To     IF_BOL_BO_PROPERTY_ACCESS                                                                                BO Attribute
    I think it should work but have never done myself.
    Best Regards
    Pankaj Kumar

  • How to call particular ecc transaction directly into IC Webclient

    Dear all,
    We have called ECC Transaction into IC Webclient, but instead of showing the particular transaction like VA05N, system showing the ECC system Easy access screen.
    I want call directly the required transaction, and dont want to access though the sap main menu.
    Please help to solve this problem, your suggestions will be highly appreciated.
    Best wishes,
    Raghu ram

    Hi Raghu,
    Are you calling the execute method ?. I think you have to give the method name as execute ( in the wizard of TL )
    for confirming the same please go to SWO1 transaction, and give the BOR object name that you have created, now click execute / test button.
    it will ask for the T-code to be executed,, give the ECC t-code
    now ,, run the method execute ( one among the three methods TSTC have ).
    you should able to see the ECC transaction opened for you..
    if this happens I am sure that some all you need to do is some minor changes in TL wizard!.
    Tip: I think u missed the method name while configuring the TL.
    Hope it Helps..
    Regards, Sudeep..

  • Decision between call transaction and session method:BDC

    Hi,
    Kindly guide how to take decision between call transaction and session method?
    Thanks,
    Sanjay

    Hello Sanjay,
    here are some links which discuss the difference between them:
    http://scn.sap.com/thread/721344
    http://scn.sap.com/thread/166845
    Best regards,
    Laszlo

Maybe you are looking for

  • Spry accordion open on mouseover with extra content if too fast

    So I already did this and got the spry to open with a hover, Go to line 213 (or thereabouts) to find Spry.Widget.Accordion.prototype.onPanelTabClick = function(e, panel) and change that to Spry.Widget.Accordion.prototype.onPanelTabMouseOver = functio

  • MRBR- invoice verification block- relation to FI doc

    Hi gurus, please help me in the below issue. An invoice was posted using MIRO and due to price variance it is automatically blocked as 'R' for invoice verification. And this invoice was waiting to br released from MRBR. But, One of our users went int

  • Is there any danger in closing your apps completely?

    I used to have an android phone and I read were you should just not kill your apps.  Is there any danger in closing your apps completely on the iPhone 4s? To do this I hit the home button twice, hold down on one of the apps until it starts bounching

  • Opening an applet window from a button in a frame.

    hi, i designed a frame,in that i took coordinates from the user in the Jtextfields and a button.i need that when user clicks that button,a new applet window should get opened and the line should be drawn(g.drawLine in the paint method) according to t

  • Print on Canon ir400

    I have Canon ir400 on LAN. I cannot add the printer to my mac. If I add as ip printer then it does not print anything. Please help. This printer is visible and can print from windows machine through LAN.