Call Transaction "back"
Hello.
I have an ALV report which has a hotspot in one of the fields.
This hotspot must call a transaction and show some specific data.
Problem is, when the "back" button is pressed on the transaction screen, the program comes back to my program, but instead of showing the ALV list screen, it comes back to the selection screen.
Does anybody know how to fix that?
Thanks a lot!
Atish,
The ALV I'm using is not object oriented.
FORM f_user_command USING vl_ucomm LIKE sy-ucomm "#EC CALLED
rs_selfield TYPE slis_selfield.
CASE vl_ucomm.
WHEN c_ok.
IF rs_selfield-fieldname = c_recnnr.
READ TABLE tg_output INTO wa_output INDEX rs_selfield-tabindex.
SET PARAMETER ID c_buk FIELD wa_output-bukrs.
SET PARAMETER ID c_recnnr FIELD wa_output-recnnr.
CALL TRANSACTION c_recn AND SKIP FIRST SCREEN.
ENDIF.
WHEN OTHERS.
ENDCASE.
ENDFORM. " F_USER_COMMAND
I was advised to use the SUBMIT command, but I coudn't, as RECN transaction refers to a function group, not to a program.
Thanks in advance!
Similar Messages
-
Call transaction inside of call function in back ground task
Hi,
Is it possible to use call transaction statemement inside of call function in back ground task. I am getting error if i use the same. Any help will be highly appreciated.Hi,
I don't think this is possible. The call goes into error in SM58, what you can try to do is after the function is called, you can submit the program RSARFCEX by setting the user name as sy-uname and other parameters as * and set all the checkboxes.
regards,
Advait -
Call transaction method in back ground Processing?
HI Friends,
I am working on interface program to post documents of 309 movement type into MIGO transaction .
my program is executing succesfully when i am processing in fore ground.
but when i am processing in background it is giving error .
can any help in this requirement?
*Solution rewarded*My Program will do transfer Posting from material to material.
when i am executing the program in back ground mode The Program statement call transaction fails with the following error
CALL_TRANSACTION MIGO_TR Return code = 1,001 RECORD: 0
S
Field GODYNPRO-ACTION . is not an input field
S
Field GODYNPRO-REFDOC . is not an input field
S
Field GOITEM-UMMAKTX . is not an input field
S
similar statement when executing in foreground it is posting document succesfully.
kindly revert back for any other information. -
Calling Transaction code & returning back to calling program
Hi,
I have requirement as below
Write the report to call the transaction code say for example different tcode (1000 in number) need to be executed and after every tcode execution it should return back to calling report. I tried using "CALL TRANSACTION 'ABC' AND SKIP FIRST SCREEN" it does execute the tcode but need the user interaction to return back to report, where here i want do this programatically.
can someone please help me & what is possible ways this can be do able.
Thanks,
John.There are two method of BDC
1- Call transaction method
2- BDC Session method
In this case you can use call tansaction method.
Syntax- call tansaction abc using gt_bdcdata.
Do the recording with t-code SHDB for that particular transaction and after the necessary modification use it in your program.
Please check f1 help of call transaction for details. -
Call transaction MMBE from another program and press Back button
Hello,
I have program that is used as a 'launch pad' for some of our heavily used transactions. When I call the main 'launch pad' program, the user will select a button and a Call Transaction MMBE is initiated (USING the first screen). The user selects a material for display and presses the execute button (F8). The material overview is displayed correctly. When the user presses the Back button (F12), transaction returns all the way back to the first called program and not to the first screen for transaction MMBE as expected.
Does anyone know how I can change the screen flow and go back to the fist screen of MMBE and not the screen of the first called program?
Regards,
RCRod,
In your case i think it is not possible as it is standard functionality by SAP.
Try work around, may be modification to the program will work.
Regards,
Amey -
Error in Back ground job schedule for call transaction
Hi Experts ,
I have a Program which as Three BDC in it . 1 - to create contact person , 2- customer 3-sales order
Using call transaction if i run with all screens and no screens it's running fine..
if i schedule it background job
conact and customer works fine but sales order not works ..
can anyone give me the solution ?Hi Phani and Pavan ,
It works Fine for Back ground anf fore ground i.e ( N and A ) sales order is created here .
but Sales order not created when i schedule it in back ground as
Program - execute in back ground .
sales not created when i schedule it in background job only using SM36 or Program - execute in back ground ?
Edited by: Pradeep Annaiah on Jan 13, 2009 5:29 AM -
Come back to calling program from Call Transaction
Hi,
From my program, i am calling a standard tcode :
Call Transaction - sy-calld is set in called transaction which deactivates some buttons there.
Leave To Trnasaction - sy-calld is not set , but then I am not able to come back to the calling program.
Please tell me how should this be achieved.
ThanksHi, shalaxy s
If you do mean calling the transaction and being able to go back !!
You can use the following
For Example : CALL TRANSACTION 'SE80' VIA SELECTION-SCREEN AND RETURN.
OR: CALL TRANSACTION 'SE80' AND SKIP FIRST SCREEN.
Best Reagrds, AlMaReD
Edited by: AlMaReD on Jun 12, 2010 9:47 AM -
Uploading XL file using call Transaction and running in back ground
Hi all,
I am updating the T-code VA01 using call TRansaction method ....
i am uploading the file is XL file for that i m using the FM ALSM_EXCEL_TO_INTERNAL_TABLE.
But if execute my program in the back ground This FM is giving Dump because it can not Execute in Back GRound...
Plz let me know any FM to upload data from Excel file Both from foreground and back ground....
Plz let me know ASAP..
Thanks,
SureshHI...,,
When u run any program in Background, it will not have any contacts with the presentation server.... You cannot upload a presentation server file..
But u can use the Application server file...
SO first store this excel file's data in Application server using the transaction CG3Z and then use the Open data set and read dataset to upload the application server file !!!
reward all helpful answers !!
regards,
sai ramesh -
CALL transaction in back ground
Hi
i am writeing the bdc program for iw32 transaction using call transaction
iw32 for updating the status of a order
it is working good in all screesns mode and error mode
but it is not updating the status of a order in no screens mode
any answersIn all screens mode you should be doing nothing but pressing enter until the end of processing.
But as you had said you check something to set the status, if I ain't wrong I think you should go through your code so that even the status is set when the transaction is run and you need to only keep pressing enter to go through all the screens.
Check where in all screens mode where user interaction is being done by you and try modifing the code. Try putting in code for the status selection. Then it will not give any error and will go through without any user-interaction.
Hope what I had to say is useful to you.
3Cheers,
Raga Suman. -
Back ground ( Call Transaction) while running locking Tcode
When iam running Call Transaction in background , suppose other user open ( it is giving popup like another user locked) transaction at that time i am getting created records sucessfully even it is not running Call trransaction can any body help me out.
HI,
when ever you are program is running that transaction for a specific order and other user tries to access this transaction and opens the same order it will give this error.
Thanks
Mahesh -
Unable to Capture ALV output in an Internal Table, after CALL TRANSACTION
Dear all,
My requirement is to run multiple materials in T-code CK86_99 but as we know CK86_99 is only adequate to one material at a time.
So, I want to capture the Output of the T-code in my Internal table with respect to all the Material Numbers I use in the Select-Options of my Z Program.
Below is the Code I developed so far, but the Class
cl_salv_bs_runtime_info=>get_data_ref(
IMPORTING r_data = lf_ref ).
is not capturing the Ouput...
Please have a look and enlighten me how it could be solved.
TABLES : mara.
DATA : BEGIN OF wa_mara,
matnr TYPE mara-matnr,
END OF wa_mara.
DATA: it_bdcdata TYPE TABLE OF bdcdata,
wa_it_bdcdata LIKE LINE OF it_bdcdata,
it_mara LIKE TABLE OF wa_mara.
* BELNR(10).
FIELD-SYMBOLS:<fs_tab> TYPE ANY TABLE,
<fs_line> TYPE any.
DATA:lf_ref TYPE REF TO data,
lf_ref1 TYPE REF TO data.
SELECT-OPTIONS so_matnr FOR mara-matnr.
PARAMETERS p_werks LIKE t001w-werks.
*BELNR = 'Z92'. " Give Document Number here
SELECT matnr FROM mara INTO TABLE it_mara WHERE matnr IN so_matnr.
DATA opt TYPE ctu_params.
LOOP AT it_mara INTO wa_mara.
CLEAR wa_it_bdcdata.
wa_it_bdcdata-program = 'SAPMKKB0'.
wa_it_bdcdata-dynpro = '0300'.
wa_it_bdcdata-dynbegin = 'X'.
APPEND wa_it_bdcdata TO it_bdcdata.
CLEAR wa_it_bdcdata.
wa_it_bdcdata-fnam = 'BDC_CURSOR'.
wa_it_bdcdata-fval = 'KKB0-MATNR'.
APPEND wa_it_bdcdata TO it_bdcdata.
CLEAR wa_it_bdcdata.
wa_it_bdcdata-fnam = 'KKB0-MATNR'.
wa_it_bdcdata-fval = wa_mara-matnr.
APPEND wa_it_bdcdata TO it_bdcdata.
CLEAR wa_it_bdcdata.
wa_it_bdcdata-fnam = 'BDC_CURSOR'.
wa_it_bdcdata-fval = 'KKB0-WERKS'.
APPEND wa_it_bdcdata TO it_bdcdata.
CLEAR wa_it_bdcdata.
wa_it_bdcdata-fnam = 'KKB0-WERKS'.
wa_it_bdcdata-fval = p_werks.
APPEND wa_it_bdcdata TO it_bdcdata.
CLEAR wa_it_bdcdata.
wa_it_bdcdata-fnam = 'BDC_OKCODE'.
wa_it_bdcdata-fval = 'OSNY'."'ONLI'."=CRET'.
APPEND wa_it_bdcdata TO it_bdcdata.
* CLEAR wa_it_bdcdata.
* wa_it_bdcdata-program = 'SAPLKKRSOO'.
* wa_it_bdcdata-dynpro = '0100'.
* wa_it_bdcdata-dynbegin = 'X'.
* APPEND wa_it_bdcdata TO it_bdcdata.
* CLEAR wa_it_bdcdata.
* wa_it_bdcdata-fnam = 'BDC_OKCODE'.
* wa_it_bdcdata-fval = 'BACK'."=CRET'.
* APPEND wa_it_bdcdata TO it_bdcdata.
* CLEAR wa_it_bdcdata.
* wa_it_bdcdata-program = 'SAPMKKB0'.
* wa_it_bdcdata-dynpro = '0300'.
* wa_it_bdcdata-dynbegin = 'X'.
* APPEND wa_it_bdcdata TO it_bdcdata.
* CLEAR wa_it_bdcdata.
* wa_it_bdcdata-fnam = 'BDC_OKCODE'.
* wa_it_bdcdata-fval = 'EXIT'."=CRET'.
* APPEND wa_it_bdcdata TO it_bdcdata.
opt-dismode = 'N'.
cl_salv_bs_runtime_info=>set(
EXPORTING display = abap_false
metadata = abap_true
data = abap_true ).
CALL TRANSACTION 'CK86_99' USING it_bdcdata OPTIONS FROM opt.
TRY.
cl_salv_bs_runtime_info=>get_data_ref(
IMPORTING r_data = lf_ref ).
ASSIGN lf_ref->* TO <fs_tab>.
CATCH cx_salv_bs_sc_runtime_info.
MESSAGE 'Unable to retrieve ALV data' TYPE 'E'.
ENDTRY.
cl_salv_bs_runtime_info=>clear_all( ).
IF <fs_tab> IS ASSIGNED.
CREATE DATA lf_ref1 LIKE LINE OF <fs_tab>.
ASSIGN lf_ref1->* TO <fs_line>.
ENDIF.
*LOOP AT <FS_TAB> ASSIGNING <FS_LINE>.
*ENDLOOP.Hi Abhay,
If you go to Transaction code SE93, enter the tcode "CK86_99" and click display, you may see the default value for transaction is "KKBB" and the screen field for P_SCREEN = 0300, P_TCODE = ck86_99.
You may need to copy the transaction code "KKBB" and go to SE93 again, enter the tcode for "KKBB" then click display, now you may see the program name is "RKKB1000".
Hope this answer your question.
Thanks
Hock Lin -
BDC Call Transaction - Doc.No not getting generated in Message Internal tab
Dear All,
I am using BDC Call Transaction method for uploading data for transaction, Iam able to successfully capture the Error messages, sucess messages and the transaction number is also displayed for the bdc run in Mode A, but in case of scheduling the job in background, the Error messages are displayed but the transaction number is not captured in the message Internal table( BDCMSGCOLL).
Kindly look into the matter and revert back for any further info.
Regards
NareshHi,
Please try using the following kind of code in 'CALL TRANSACTION'
opt-dismode = 'E'. " Exclusive mode
opt-defsize = 'X'.
opt-updmode = 'S'.
opt-nobinpt = ' '.
CALL TRANSACTION transaction_code USING ft OPTIONS FROM opt
MESSAGES INTO t_bdcmsgcoll .
Hope this will work.
Thanks,
Leo -
Problem with ALV_GRID and CALL TRANSACTION.
Hi all, Could you please tell me
At SE38
Why REUSE_ALV_GRID_DISPLAY and CALL TRANSACTION after called then I click the back button to return to the calling program but it automatic return to the source code? (it hasn't saves the data in alv grid )
In another case of this program, after automatic return to the source code then I have to waiting for 5-10 mins for execute again cuz if immediately execute the program don't fill any data to the alv grid.
I have problem with a simple source code like this
REPORT ZFS_ALV_DEMO.
TYPE-POOLS: slis.
DATA: itab LIKE STANDARD TABLE OF aufk WITH HEADER LINE.
DATA: gs_selfield TYPE slis_selfield "Information cursor position ALV
, w_aufnr LIKE aufk-aufnr. "Order Number
SELECT * FROM aufk INTO TABLE itab WHERE autyp = 40. "//Process Order
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_structure_name = 'aufk'
i_callback_program = sy-cprog
i_callback_user_command = 'USER_COMMAND_COR3'
TABLES
t_outtab = itab
EXCEPTIONS
program_error = 1
OTHERS = 2.
FORM user_command_cor3 USING u_ucomm LIKE sy-ucomm
us_selfield TYPE slis_selfield."#EC CALLED
CASE u_ucomm.
WHEN '&IC1'.
gs_selfield = us_selfield.
IF gs_selfield-fieldname = 'AUFNR'.
SET PARAMETER ID 'ANR' FIELD gs_selfield-value.
CALL TRANSACTION 'COR3' AND SKIP FIRST SCREEN.
ELSE.
MESSAGE w208(00) WITH 'Select by Order only!'.
ENDIF.
ENDCASE.
ENDFORM.Hi all, Could you please tell me
At SE38
Why REUSE_ALV_GRID_DISPLAY and CALL TRANSACTION after called then I click the back button to return to the calling program but it automatic return to the source code? (it hasn't saves the data in alv grid )
In another case of this program, after automatic return to the source code then I have to waiting for 5-10 mins for execute again cuz if immediately execute the program don't fill any data to the alv grid.
I have problem with a simple source code like this
REPORT ZFS_ALV_DEMO.
TYPE-POOLS: slis.
DATA: itab LIKE STANDARD TABLE OF aufk WITH HEADER LINE.
DATA: gs_selfield TYPE slis_selfield "Information cursor position ALV
, w_aufnr LIKE aufk-aufnr. "Order Number
SELECT * FROM aufk INTO TABLE itab WHERE autyp = 40. "//Process Order
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_structure_name = 'aufk'
i_callback_program = sy-cprog
i_callback_user_command = 'USER_COMMAND_COR3'
TABLES
t_outtab = itab
EXCEPTIONS
program_error = 1
OTHERS = 2.
FORM user_command_cor3 USING u_ucomm LIKE sy-ucomm
us_selfield TYPE slis_selfield."#EC CALLED
CASE u_ucomm.
WHEN '&IC1'.
gs_selfield = us_selfield.
IF gs_selfield-fieldname = 'AUFNR'.
SET PARAMETER ID 'ANR' FIELD gs_selfield-value.
CALL TRANSACTION 'COR3' AND SKIP FIRST SCREEN.
ELSE.
MESSAGE w208(00) WITH 'Select by Order only!'.
ENDIF.
ENDCASE.
ENDFORM. -
Error 00-341 RAISE_EXCEPTION when using Call Transaction for VA01 in backgr
Hi,
I am getting this message when I use call transaction to create a sales order using VA01. Following is the statement I have used. Note that when i execute the program online, I am not getting any errors. I could create sales order without any problem. I am getting this exception only when I run in background.
CALL TRANSACTION 'VA01'
USING BDC_TAB
MODE 'N'
UPDATE 'S'
MESSAGES INTO W_MESS_TAB.
When I captured message tab, I got following messages.
DC006 - Control Framework: Fatal error - GUI cannot be reached
00341 Runtime error RAISE_EXCEPTION has occurred.
Please help me in this regard.
Regards
KasiSome times execution of BDC program in back ground is different from the foreground. Some screens may appear in background and raise error while same will not when executed in foreground.
Double click the message in Session log to know more details.
One way is to suppress the screen while executing BDC.
Alternatively I suggest to use BAPI instead.
- Sanjay -
Skip first screen of BD87 using call transaction with BDC_DATA option
hello all,
i am using call transaction with BDC_DATA option and i want to skip first screen, so can anyone please tell me how can i skip first screen of BD87 and get second screen that is output screen?
regards.Hi
Build a BDCDATA with following code..
T BD87
RBDMON00 1100 X
BDC_CURSOR SX_DOCNU-LOW
BDC_OKCODE =CRET
SX_DOCNU-LOW
SX_CRETI-LOW 00:00:00
SX_CRETI-HIGH 00:00:00
SX_UPDDA-LOW 05.02.2010
SX_UPDDA-HIGH 05.02.2010
SX_UPDTI-LOW 00:00:00
SX_UPDTI-HIGH 00:00:00
RBDMON00 0100 X
BDC_OKCODE =BACK
RBDMON00 1100 X
BDC_OKCODE /ECBAC
BDC_CURSOR SX_DOCNU-LOW
Maybe you are looking for
-
Glassfish configuration for SQlite DataSource, Need a How-To
I'm a netbeans user (NB) and got into the admin page for glassfish, to create one. Unfortunately, I'm trying to configure a SQlite datasource, and I didn't see it in the list. I probably could have done it, editing the .xml and context.xml file, myse
-
Tar'ing up /var/lib/pacman...
I'm using a script somewhat modified I saw here on the forum to help clean up the system; #!/bin/bash # Run this daily after an update (pacman -Syyu), #tar -cjf /store/bak/pacman-database.tar.bz2 /var/lib/pacman/local #pacman -Rscn $(pacman -Qtdq) pa
-
Hi On Solaris Sparc 2.6, when I typed crontab -e I get a number 1 displayed on the terminal. When I pressed enter, a question mark is shown. I'm confused. I am guessing that a VI editor for cron is not set. If this is the case, how can I configure a
-
I'm still doubting for a few months between the MBA with 256gb and the MBP 13" with 750gb. The most important question i have is if it is possible to run perfectly dj-software like "Traktor", "Virtual dj" or other coming interesting software on the M
-
Exception condition "DP_ERROR_GET_DATA" raised.
Hi All, I have a short dump and it looks like this : ABAP runtime errors RAISE_EXCEPTION Occurred on 30.10.2008 at 16:46:01 >> Short dump has not been completely stored. It is too big. Exception condition "DP_ERROR_GET_DATA" raised. Wha