Calling transaction with 2 variants
I am having a problem calling a transaction that requires 2 variants. The transaction is WCLE. I would like to call this transaction in abap. The problem is that there are 2 screens. The first screen I would like to select variant A which takes me to a second selection screen where I would like to select another variant then run it to get the results. Anyone have any ideas?
Try using BDC recording.
Similar Messages
-
How to call a transaction with a variant
Hi all
I created a bdc program after updating it should call another transaction with predefined variant that that transaction program is of type module pool.
can anyone tell me the syntax how to call a transaction with a variant.Hi
goto Tcode SHD0
enter the Tcode for which Tran Variant has to be created(dialog Tcode)
enter Trans variant to be created
press create button
it will go through all the screens of that Tcode and save
and modify the fields as per requirement
we can create Transaction Variants Using SHD0 Transaction.
Transaction Variants and Screen Variants
Transaction variants can simplify transaction runs as they allow you to:
Preassign values to fields
Hide and change the 'ready for input' status of fields
Hide and change table control column attributes
Hide menu functions
Hide entire screens
In particular, hiding fields in connection with screen compression, and hiding screens, can result in greater clarity and simplicity.
Transaction variants are made up of a sequence of screen variants. The field values and field attributes for the individual screens found in transaction variants are stored in screen variants. Each of these variants is assigned to a specific transaction, can, however, also contain values for screens in other transactions if this is required by transaction flow. The transaction that the variant is assigned to serves as initial transaction when the variant is called.
There are both client-specific and cross-client transaction variants. All screen variants are cross-client, but may be assigned to a client-specific transaction variant.
A namespace exists for cross-client transaction variants and screen variants and both are automatically attached to the Transport Organizer. Client-specific transaction variants must be transported manually.
In principle, transaction and screen variants can be created for all dialog and reporting transactions. There are, however, certain Restrictions that apply to certain transactions, depending on their internal structure.
No transaction variants are possible with transactions already containing preset parameters (parameter transactions and variant transactions).
Regards
Anji -
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 -
In EP, call R3 transaction with dynamic variant name
Hello
I know that I can call a R3 transaction with a dedicated variant thanks to the process below:
Create a transaction iview , Tcode = "START_REPORT"
In application parameters pass these values separated by '&' sign.
D_SREPOVARI-REPORT - your report
D_SREPOVARI-VARIANT - your saved variant.
choose skip inital screen in the parameters.
But do you have a tip to call a different variant for every user.
For example, I have users "1111" and "2222". In R3 I have created the variant "1111" and "2222" for a transaction.
In EP, I would like that when I call this transaction connected as "1111", the variant "1111" is used, and when I'm logged as "2222", the variant "2222" is used.
Do you know how I can do that ?
Thank you !Hello,
where is the information which user has to call which variant stored? If it's in R/3 then you can write an wrapper report which is called from the Portal, adds the Variant information and then calls the original report.
Regards
Gregor -
Calling transaction with webgui takes forever on some workstation
Hi,
I am calling transaction CV03N via webgui from webdynpro application. The problem is on some workstation it takes forever
to load the screen with transaction details. For other it works fine.
Did anyone come across this situation? Is there anything need to be set up on personal system to run the application as expected.
Please help.
Thanks.
TruptiHi,
check that all the machines are using the same proxy server and have same browser settings. -
Calling transaction with hotspot_click
Hello everybody,
I need to know if it is possible to call transaction within an ALV when clicking
on a hotspotted field.
In that case how can I handle it ?
Thank you.
Lucathe below is the code for the alv double click
*& Report ZUS_SDN_TWO_ALV_GRIDS
REPORT zus_sdn_alvgrid_events_1.
DATA:
gd_okcode TYPE ui_func,
gt_fcat TYPE lvc_t_fcat,
go_docking TYPE REF TO cl_gui_docking_container,
go_docking2 TYPE REF TO cl_gui_docking_container,
go_grid1 TYPE REF TO cl_gui_alv_grid,
go_grid2 TYPE REF TO cl_gui_alv_grid.
DATA:
gt_t001 TYPE STANDARD TABLE OF t001,
gt_knb1 TYPE STANDARD TABLE OF knb1.
* CLASS lcl_eventhandler DEFINITION
CLASS lcl_eventhandler DEFINITION.
PUBLIC SECTION.
CLASS-METHODS:
handle_double_click FOR EVENT double_click OF cl_gui_alv_grid
IMPORTING
e_row
e_column
es_row_no
sender.
ENDCLASS. "lcl_eventhandler DEFINITION
* CLASS lcl_eventhandler IMPLEMENTATION
CLASS lcl_eventhandler IMPLEMENTATION.
METHOD handle_double_click.
* define local data
DATA:
ls_t001 TYPE t001,
ls_col_id TYPE lvc_s_col.
CHECK ( sender = go_grid1 ).
READ TABLE gt_t001 INTO ls_t001 INDEX e_row-index.
CHECK ( ls_t001-bukrs IS NOT INITIAL ).
SELECT * FROM knb1 INTO TABLE gt_knb1
WHERE bukrs = ls_t001-bukrs.
IF ( syst-subrc NE 0 ).
MESSAGE 'No customers found' TYPE 'S'.
ELSE.
* Trigger PAI of dynpro '0100' and set new ok-code
CALL METHOD cl_gui_cfw=>set_new_ok_code( 'CALL_SCREEN_0200' ).
ENDIF.
ENDMETHOD. "handle_hotspot_click
ENDCLASS. "lcl_eventhandler IMPLEMENTATION
START-OF-SELECTION.
SELECT * FROM t001 INTO TABLE gt_t001.
REFRESH: gt_knb1.
* Create docking container
CREATE OBJECT go_docking
EXPORTING
parent = cl_gui_container=>screen0
ratio = 90
EXCEPTIONS
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.
CREATE OBJECT go_docking2
EXPORTING
parent = cl_gui_container=>screen0
ratio = 90
EXCEPTIONS
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.
* Create ALV grid
CREATE OBJECT go_grid1
EXPORTING
i_parent = go_docking
EXCEPTIONS
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.
CREATE OBJECT go_grid2
EXPORTING
i_parent = go_docking2
EXCEPTIONS
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.
* Set event handler
SET HANDLER:
lcl_eventhandler=>handle_double_click FOR go_grid1.
* Display data
CALL METHOD go_grid1->set_table_for_first_display
EXPORTING
i_structure_name = 'T001'
CHANGING
it_outtab = gt_t001
EXCEPTIONS
OTHERS = 4.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL METHOD go_grid2->set_table_for_first_display
EXPORTING
i_structure_name = 'KNB1'
CHANGING
it_outtab = gt_knb1
EXCEPTIONS
OTHERS = 4.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* Link the docking container to the target dynpro
CALL METHOD go_docking->link
EXPORTING
repid = syst-repid
dynnr = '0100'
* CONTAINER =
EXCEPTIONS
OTHERS = 4.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL METHOD go_docking2->link
EXPORTING
repid = syst-repid
dynnr = '0200'
* CONTAINER =
EXCEPTIONS
OTHERS = 4.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* ok-code field = GD_OKCODE
CALL SCREEN '0100'.
END-OF-SELECTION.
*& Module STATUS_0100 OUTPUT
* text
MODULE status_0100 OUTPUT.
SET PF-STATUS 'STATUS_0100'.
* SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
* text
MODULE user_command_0100 INPUT.
CASE gd_okcode.
WHEN 'BACK' OR
'END' OR
'CANC'.
SET SCREEN 0. LEAVE SCREEN.
WHEN 'CALL_SCREEN_0200'.
go_grid2->refresh_table_display( ). " necessary
CALL SCREEN '0200'.
WHEN OTHERS.
ENDCASE.
CLEAR: gd_okcode.
ENDMODULE. " USER_COMMAND_0100 INPUT
Girish -
Calling transaction with different start screen
Hello
I have two transactions TRANSACTION 1 and TRANSACTION 2, made by myself.
TRANSACTION 1 has screen 001 as initial. It also has another screens.
I want to call TRANSACTION 1 from TRANSACTION 2 starting not with screen 001, but for example with screen 005. Is that possible?HI,
As an alternative, you will have to do a partial BDC recording for the transaction and write the code to call the transaction in ERROR mode.
Go to shdb transaction.
Create a recording for the transaction.
Enter the required data and when you reach the screen you want, just backout.
This would create a recording.
Using this recording, you have to create a BDC program which would call the transaction in Error mode.
Regards,
Ravi -
Calling transactions with pre-filled screen in background processing
Hi,
We are currently running the two standard SAP programs RVV50R10C and SDV03V02 in background mode with static variants. A new requirement has come up whereby we need to run these programs with changing selection criterions, i.e. depending on whether a certain material has had a movement during the day.
We are currently looking at the following options, all of which must be executeable in background mode:
1) Create a Z-program which identifies the materials for which RVV50R10C and SDV03V02 should process, and then at the end of the Z-program save variants containing the materials for each of the two standard programs. The standard programs will be scheduled as step #2 and #3 in the same batch job by using the variant which has been overwritten by the Z-program.
2) Create a Z-program which identifies the materials for which RVV50R10C and SDV03V02 should process, and then at the end of the Z-program call these programs by specifying the material numbers in addition to other relevant selection criterions by passing a batch input table.
3) Copy the standard programs into Z-versions and enhance the selection criterias according to our needs.
Of the options above we would prefer not to use 3) since we rather use the standard programs due to SAP support etc. The preferred option would be 1).
Anyone faced a similar requirement and have some ideas about standard SAP functions to save a variant and what issues we might face in option 1) and 2)?Hi Geir,
2nd option is good. Create a Z program to identify the material numbers which you want to process & then in the Z Program itself use SUBMIT statement to call the standard programs RVV50R10C and SDV03V02. Using SUBMIT statement you can populate the selection screen parameters for the calling programs.
Please let us know if you need any additional details.
Thanks,
Best regards,
Prashant -
Create new transaction with default variant
Dear all,
I want to create a new tcode, which will be a replica of IW58 and save a default variant only in this replica.
Is this possible? If yes how to do it please?
Thanks a lot for your kind consideration
DavidMaintain the variant you would like to use with IW58
Goto SE80, navigate to your Customer Package (Z*), open the node "Transactions". Right Klick -> Create Transaction.
Set a Transaction-Code and an apropriate Start Object (Most likely Dialog Transaction or Report Transaction). Assign the Report RIQMEL20.
Then fill in the Field "Start with variant" by selecting the variant you would like to use.
Hope that helps. -
Starting transaction with a variant
Hi Experts,
I have a Z tcode for a program which i would like to start with one selection field disabled. For this i have created a variant but i would like that whenever the tcode is run, the variant is selected by default (i.e. the screen field is disabled).
To accomplish this i tried to add this variant to the transaction via SE93. But whenever i try to save it gives me error that "No system Variant defined for nonlocal object". I am not able to proceed beyond this point. Please guide me how to achieve this without creating a new tcode.
Any help will be deeply appreciated. Thanks in advance.
Sakshi DograHi
Create a variant with your specified selection-screen options and save it.while saving your variant there is a check box 'protect variant' check it and save it.
go to se93 give tcode name
and select radio button 'program and selection screen(report transaction)'
give program name and enter
your variant will appear in the vaiant selection,select it.
save it in a specific package and you will get expected result.
<removed by moderator>
Thanks
Adil
Edited by: Thomas Zloch on Sep 14, 2011 10:03 PM -
Calling Transaction with Paramters
Hi
I want to call a the transaction KSB1 from Web.
I tried <a href="https://<hostname>/sap/bc/gui/sap/its/webgui?transaction=*KSB1%20KOSTL-LOW=123456%20R_BUDAT-LOW=20080101%20R_BUDAT-HIGH=20080131;DYNP_OKCODE=DOIT">https://<hostname>/sap/bc/gui/sap/its/webgui?transaction=*KSB1%20KOSTL-LOW=123456%20R_BUDAT-LOW=20080101%20R_BUDAT-HIGH=20080131;DYNP_OKCODE=DOIT</a>
The only parameter which is working is KOSTL-LOW, R_BUDAT-LOW and R_BUDAT-HIGH does not work.
Any idea?
Greetings
MarcusHi Marcus,
please read in the Wiki FAQ for the ITS forum the articel: "How to prefill fields and skip first screen with webgui?" https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=22375
Best regards,
Klaus -
Call transaction BDC with different user id
Hello,
We have a BDC program for creating Invoice using "CALL TRANSACTION VF01" method. But there are are few user IDs accessing this program who do not have authorisation to VF01. So requirement is to create Invoice with a common user id.
Please help if it is possible to call transaction with different user id. Please also provide you inputs if you can suggest some other way to fulfill this requirement.
Thanks & Regards,
RohitHi Rohit,
if users are not authorized to post invoice, why is it required to surpass the checks?
A Question the business should answer.
It should not be the consultants obligation to find doubtable ways.
Regards
Clemens -
Cal transaction using screen variant
All Experts:
I want to call a transaction with a variant, this is a screen variant I set in that transaction? can I do this? how to do that? please kindly give me an example for reference, thanks.
T-code A, Report A
T-code B, Report B
variant 1 is set in the screen of Report, I want to call T-code B with vartiant 1 in the T-code A.
Thanks in advance.Hi,
you can't use call transaction with variant.
1. in SE93, create a transaction with variant type. so that without varianet you can't execute the transaction.
2. try to use Submit Statement.
Examples:
*Submit report and return to current program afterwards
SUBMIT zreport AND RETURN.
*Submit report via its own selection screen
SUBMIT zreport VIA SELECTION-SCREEN.
*Submit report using selection screen variant
SUBMIT zreport USING SELECTION-SET 'VARIANT1'.
*Submit report but export resultant list to memory, rather than
*it being displayed on screen
SUBMIT zreport EXPORTING LIST TO MEMORY.
Reward if found helpful
Regards,
SB -
Call tranasaction with skip first screen in ecc6
Hi,
We are doing upgrade from 4.7 to ecc 6. We are getting an error while running a report( The addition "AND SKIP FIRST SCREEN" can't be used with "CALL TRANSACTION .. USING". ) in ecc6. This is not showing error in 4.7. Call transaction with skip first screen is fine in 4.7. But it is throwing an error in ecc6.
Could anybody provide me the pointers to rectify this error.
Regards,
RameshHi
Did you pass all the mandatory field values to the calling transaction , Because when you use this addition you need to pass all the mandatory field values then only it works fine. Check out whether you are passing all the mandatory field values.
Regards
Pavan -
CALL TRANSACTION AND SKIP FIRST SCREEN to specified tab in TCODE 'IW32'
Hi,
I am using CALL TRANSACTION AND SKIP FIRST SCREEN in ALV Grid Report to call IW32 tcode and it goes to tcode skipping the first screen. But it goes to the default header tab in the tab control. Whereas I wish to go to the specified tab 'OPERATIONS'.
Can any one help me, as to how to resolve this issue ?
Thanks in advance.Sridher,
I have the similar requirement. but in my case its COSTS tab. Could you please provide the code you have used for this to work?
I used standard "call transaction with mode 'E' ". This seems to be working but I am not pleased by my effort. Is there any proper way that you might have followed ?
Greatly appreciated your help.
Regards,
Reddy
Maybe you are looking for
-
I can send calls from Mac but incoming calls do not show up on Mac.
Just downloaded Yosemite 10.10 on 10-21-14. I can make calls on my mac but unable to receive calls on my Mac. No notifications for incoming calls on my mac. Everything else runs fine. Messaging and calls from my mac works fine. I am running IOS 8.1 o
-
My ipad is disabled and it says i need to connect to itunes when i connect it to itunes, it says it wont recognize it until i put my passcode into my ipad, but with my ipad disabled, this is immposible, how can i resolve this problem?
-
Can I and how do i put an app on my pC . I want to use pc/iPad/iPhon for the same app
-
Unzipping the file downloaded from Oracle forum
Dear All, Hope im in the right discussion room. I downloaded the Oracle 11g from Oracle Forum (special thanks to Oracle) but i also saw that it has a special unzipping software to unzip the downloaded files. Can i use the WinZip to unzip or any other
-
How to serialize the txt file?
HI, part of my program is as followings: FileInputStream f = new FileInputStream ("c:/test1.txt"); ObjectInputStream s =new ObjectInputStream (f); but,there is an exception when debugging when it runs to second line above.I think this is the problem