cancel
Showing results for 
Search instead for 
Did you mean: 

How to use call transaction stmt from webdynpro application

Phalani2
Participant
0 Kudos

Hi Expers,

Can I use call transaction 'tcode' in my webdynpro application, I have tried in my application but i am getting short dump saying

Error analysis+

An exception occurred that is explained in detail below.The exception, which is assigned to class'CX_SY_SEND_DYNPRO_NO_RECEIVER', was not caught and therefore caused a runtime error. The reason for the exception is: During background processing, the system attempted to send a screen to a user. Current screen: "SAPLMGMM " 0060.

I haven't used any more statements in my application am sure from my application side everything perfect. but I have seen a screen shot

with SAP screen in webbrowser.

Please help me out if you are not clear abt my doubt please ask me for clear idea.

Thanks in advance

Phalani M

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Yes you could do this using help from webgui.

1. create standalone program with transaction which

- read from memory given parameter ids and transaction code

- call that transaction code using those parameters

- at the end call TH_DELETE_MODE function

2. in abap wd trigger action which put context (cliked data and parameter ids) into memory and then call external window using IF_WD_WINDOW_MANAGER method and give url of your transaction

system open any SAP transaction in your abap web dynpro.

One way to do it...

KK

Former Member
0 Kudos

Hello,

Since you can't use the call transaction command in web dynpros components, I suggest you to create a report and fill a BDC table on this and use the call transaction in this report.

So, in your web dynpro component you can use a command SUBMIT to create a job in background.


DATA: number           TYPE tbtcjob-jobcount, 
      name             TYPE tbtcjob-jobname VALUE 'JOB_TEST', 
      print_parameters TYPE pri_params. 

... 

CALL FUNCTION 'JOB_OPEN' 
  EXPORTING 
    jobname          = name 
  IMPORTING 
    jobcount         = number 
  EXCEPTIONS 
    cant_create_job  = 1 
    invalid_job_data = 2 
    jobname_missing  = 3 
    OTHERS           = 4. 
IF sy-subrc = 0. 
  SUBMIT submitable TO SAP-SPOOL 
                    SPOOL PARAMETERS print_parameters 
                    WITHOUT SPOOL DYNPRO 
                    VIA JOB name NUMBER number 
                    AND RETURN. 
  IF sy-subrc = 0. 
    CALL FUNCTION 'JOB_CLOSE' 
      EXPORTING 
        jobcount             = number 
        jobname              = name 
        strtimmed            = 'X' 
      EXCEPTIONS 
        cant_start_immediate = 1 
        invalid_startdate    = 2 
        jobname_missing      = 3 
        job_close_failed     = 4 
        job_nosteps          = 5 
        job_notex            = 6 
        lock_failed          = 7 
        OTHERS               = 8. 
    IF sy-subrc <> 0. 
      ... 
    ENDIF. 
  ENDIF. 
ENDIF. 

Regards.

Phalani2
Participant
0 Kudos

Tanks David,

its really helpful and sorry to asking you again,

Can we achieve this requirement through EP? because I 'd seen entire SAP GUI screens (from calling transaction to getting output) in webbrowser itself, and got to know thats possible from EP with iView concepts. can u give me some more inputs .

Phalani M

Former Member
0 Kudos

hi phalani.......

you can us e ep for it. what you can do is, create a transactional iview for teh desired transaction. create a web dynpro iview which holds your web dynpro component. so on the click of a button you can trigger the transactional iview.

---regards,

alex b justin

Phalani2
Participant
0 Kudos

And one more thing David,

The functionality of my tcode is if I give any valid inputs it has to generate one alv report (in this report i 'l be having new delete...buttons on application toolbar).

The process what u explained me is good to pass the data to my tcode but how can I display that report in my browser?

Phalani M

0 Kudos

Hi,

i have a similar requirement to call the VT03n Transaction on user click from webdynpro application. Could you please provide me the steps how to call the transactional IVIEW that you are referring to.

Thanks for your help.

Regards,

Manjunatha.T.S

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Create Transactional iView in the Portal

Call it using the following code

http://help.sap.com/SAPHELP_NW04S/helpdata/EN/18/f96f4132f15c58e10000000a1550b0/frameset.htm

Former Member
0 Kudos

Hi Phalani

No You can't use Call transaction from webdynopro. It needs SAP GUI to run the transaction. which is not available through browser.

Regards

Naresh