Saving in Selection Screen
hi..
i have a requirement that i have to save the entries in selection screen to the db.
if i click save button it is asking for variants.
suggest me..
reply asap.. thanks in advance...
Hai Tommy.
Create your own PF status. There disable the SAVE button on STANDARD toolbar and add one customized button in APPLICATION TOOL BAR.
AT SELECTION-SCREEN.
ok_code = sy-ucomm.
CASE ok_code.
WHEN 'SAVE'.
move s_matnr-low to wa
move p_mbrsh to wa-mbrsh
INSERT ZTABLE from wa.
ENDCASE.
You can't use standard toolbar save button for saving the selection screen data to DB.
Hope this piece of code solves your problem.
Cheers,
Suvendu
Similar Messages
-
SHD0 - Selection screen of the variant appears without changes after saving
Dear all,
I created a variant for the transaction MB11 with SHD0.
In the selection screen, I hide various fields.
When I run the variant everything is working normally.
But after saving the document, the selection screen appears again without the hidden fields.
Any ideas how to avoid, after saving, the selection screen without the hidden fields?
Thanks in advance.
CarlesHello Madhu,
Thanks for your response.
I checked the link. When I have created the transaction variant I used a similar procedure.
My issue is that, when I used the variant, I loop again on the selection screen at the end. And it doesn't have the chagnes i made.
Cordially
Carles
Edited by: carles.bostezo on Sep 5, 2011 12:40 PM -
3.5 Web report. Save Selection screen and navigation state??
Hi,
When we use BEx Analyzer, using excel, we have these two features:
1. If query have selection screen, we can save variants, as in SAP R/3.
2. If in the query results we perform drilldown, filters, and so on, we can save this as a new workbook.
Now, I am using Web access. I use 0ADHOC web template. I have modified to ask always for variables.
For feature 1, is there any possibility of saving the selection screen? Any property of web template?
For feature 2: I can save a view in the standard template, but there are no button to recover it. Modifying this template is too hard for me. I have seen an object to select query view, but I have to specify queries and views, and I need an open solution.
Is there any template or easy way for offering the user the possibility of saving a navigational state for any query and after recovering any of this states (as a workbook in excel).
I don't know if views are the only option.
Thanks a lot.Santi,
Did you look into Bookmarks?
http://help.sap.com/saphelp_nw04/helpdata/en/5d/53213c51febb2be10000000a11402f/content.htm
This will solve your second issue at least.
Regards,
Gilad -
Saving Selection Screens in Webdynpro Abap
Hi ,
Could you please throw some light on how to save the selection screens in Webdynpro Abap ?? Just like variants in normal Abap?
Thanks and Regards
Alok SharmaHI,
I dont think there is automatic saving of varients in web dynpros just like normal selection-screen.
Just check this link you might get some idea.
Link[Save Varient|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f028c2b9-1730-2d10-71ae-ce300ea00573?quicklink=index&overridelayout=true]
Regards and Best wishes. -
Error in selection screen variant saving .
Hi All ,
I have a selection screen with 4 radio buttons and some parameters , based on selection of the radio buttons the parameters change for input , now by default one radio button is selected and now if i try to save it and then when i try to hide any one of the radio button and some parameters the system throws an error saying that all radio buttons of the groub ' rb1' are not hidden , now can you tell me how to achieve functionality .Hi,
According to me your all Radiobutton comes under a single Group ' rb1' ,
Try Your code with different radiobutton Groups, It will Work.
Do let me know the outcome.
Thanks
Saurabh -
Add fields in KOB2 & KSB2 report in selection screen as well as output
Dear All,
I have an issue in which i have to add fields in KOB2 & KSB2 report.
i need to add below fields to KSB2 report.
1) Internal order
2) Vendor
3) Purchasing group
I also need to add profit centre in selection screen for KSB2
Similarly for KOB2 i need to add below fields
1) Cost centre
2) Vendor
3) Purchasing group
I also need to add cost centre as input for KOB2 report.
I have gone through note 325546 "CO line item reports: Creating a user-defined field" which can be helpful.
However i am not sure as to how do i add fields in input screen as required.
Other alternative is to create a Z report however when i try and copy the report both KOB2 & KSB2 call same report "RKAEP000".
I am not able to get as to how do i differentiate the call of different screens when ZKOB2 is called or when ZKSB2 is called.
I could identify " c_item_group" field having different values however i couldnot get a proper logic as to how correct screen can be called based on input
Please suggest .
Thanks,
RonakHi Raymond,
The note 747588 is good as soon as you are adding fields from the same table only.
When I have added additional table into KAEP_SCOVP selection view below COVP (just because the extra fields I need are not in COVP) they will show up in KOB1 as selection criteria, but not getting saved.
Any idea if any ABAP should be regenerated or what extra steps are required when adding more tables into Selection View?
Thank you! -
How to refresh value in selection screen field
Hi Experts,
I have a requirement to refresh the value in selection screen.while i run the report in selection screen i selecting one variant for look the output if i use some other field value with same variant without save its working fine i am avle to see the data but while i come back to again selection screen and selecting some other variant that extra add value is not getting refresh its showing with new variant.Its happening for only one variant not for all if i select some other variant then its getting refresh value in same field.Any one can help me for this issue.
Thanks.Hi,
That means, I believe - the value that is "not changing" is saved in the particular variant. You can easily verify it by starting the report without variant and then selecting the variant in question. Remove the value from screen and save the variant again. Don't forget to check of variant needs to be transported from development system...
cheers
Janis -
How to dispay report with layout option in selection screen?
Hi all,
I have designed a report which also has a list box in the selection screen for the type of saved layout that users have saved. I want the report to be displayed in the layout that the user has entered.
Eg: if user chooses \RP from the listbox in the selection screen; then the layout format for \RP should be displayed as output of the report.Can anyone tell me how to do this?Thanks in Advance.Hi ,
parameters:p_vari type disvariant.
data: v_save type c.
v_save = 'A'.
data:i_variant type disvariant.
write the code in the At selection screen on value request p_vari.use the FM reuse_alv_variant_f4.
then in the at selection screen check weather the selected variant is existed by using the FM reuse_alv_variant_existance
and in the main GRID FM pass the variant internal table.
or check BALV* in the Se38 for examples
Regards,
Bharani, -
Problem while hide a block on selection screen on button press
Hi,
I have added two buttons on the application toolbar of the selection screen. I have input fields under two blocks on the selection-screen. Initially the second block is hidden. If I press the button 1 the second block should be made visible.
For this to happen, I captured the button 1 click event using the following statement.
IF sscrfields-ucomm = 'FC01'.
Inside the if ... endif, I looped at the screen and made the second block visible. It was working fine.
loop at screen.
if screen-group4 = '013'.
screen-invisible = 1.
screen-active = 0.
endif.
endloop.
Later the second button was added. Now when i run the report for the first time, if button 2 is clicked the hidden block appears on the selection screen even though i have not added any code for it.
Just to check, i commented the logic to display the hidden block on button 1 click event. Even without any code the first time i press any of the two buttons added on the application toolbar the hidden block is displayed.
I saved a variant for the report.
During execution of the report, if i select any variant then the hidden block is displayed.
Can anyone please tell me how to fix this problem.
Regards,
T2.Hi All,
The problem is solved.
Everyone was confusing between the pushbutton on the selectio-screen and on apllication toolbar
(where you have the execute icon).
Please find the code below. Thanks for you time and help. I appreciate it.
REPORT ztest.
INCLUDE <icon>.
* TABLES *
TABLES: t001, " Company Codes
lfa1, " Vendor Master (General Section)
sscrfields. " Fields on selection screens
* To capture button press event.
DATA: gv_button_press TYPE c.
* Menu Painter: Program interface for dynamic texts
DATA: gs_dyntxt TYPE smp_dyntxt.
* SELECTION SCREEN *
SELECTION-SCREEN FUNCTION KEY 1.
SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-s01.
* Company Code.
SELECTION-SCREEN BEGIN OF BLOCK ccode WITH FRAME TITLE text-s02.
SELECT-OPTIONS: s_bukrs FOR t001-bukrs OBLIGATORY MEMORY ID buk.
SELECTION-SCREEN END OF BLOCK ccode.
SELECTION-SCREEN END OF BLOCK blk1.
SELECTION-SCREEN BEGIN OF BLOCK dsel WITH FRAME TITLE text-s04.
* Vendor Master.
SELECTION-SCREEN BEGIN OF BLOCK vend WITH FRAME TITLE text-s07.
SELECT-OPTIONS: s_konzs FOR lfa1-konzs MODIF ID aw1.
SELECT-OPTIONS: s_txcd1 FOR lfa1-stcd1 MODIF ID aw1.
SELECT-OPTIONS: s_txcd2 FOR lfa1-stcd2 MODIF ID aw1.
SELECTION-SCREEN END OF BLOCK vend.
SELECTION-SCREEN END OF BLOCK dsel.
* INITIALIZATION *
INITIALIZATION.
* Populate the Application toolbar button attributes.
PERFORM populate_app_toolbar_buttons.
* Hide the dynamic screen intially.
PERFORM hide_screenfields.
* AT SELECTION SCREEN *
AT SELECTION-SCREEN.
* Capture the button press event.
PERFORM capture_button_press.
* AT SELECTION-SCREEN OUTPUT. *
AT SELECTION-SCREEN OUTPUT.
* Show/Hide the dynamic selection screen based on button press.
PERFORM adapt_screen.
*& Form populate_app_toolbar_buttons *
* Display Icon on the application toolbar buttons. Also set the *
* function codes for these buttons. *
FORM populate_app_toolbar_buttons.
CLEAR gs_dyntxt.
WRITE icon_fencing TO gs_dyntxt-icon_id AS ICON.
MOVE text-b01 TO gs_dyntxt-quickinfo. " Dynamic Selections
MOVE gs_dyntxt TO sscrfields-functxt_01.
ENDFORM. " populate_app_toolbar_buttons
*& Form hide_screenfields *
* Initially hide the Dynamic selection screen. *
FORM hide_screenfields.
LOOP AT SCREEN.
IF screen-group1 = 'AW1'.
screen-invisible = '1'.
screen-active = '0'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDFORM. " hide_screenfields
*& Form capture_button_press *
* Set the flag based on button press event. Appication bar button *
* tcode is available only at 'At Selection-screen' event. *
* Use the captured data at 'At Selection-screen Output' event. *
* Screen adjustments is possible only under this event. *
FORM capture_button_press.
IF sscrfields-ucomm = 'FC01'.
IF gv_button_press IS INITIAL.
gv_button_press = 'X'.
ELSEIF gv_button_press EQ 'X'.
CLEAR gv_button_press.
ENDIF.
ENDIF.
ENDFORM. " capture_button_press
*& Form adapt_screen *
* Show/Hide the dynamic selection screen based on button press *
* captured at 'At selection-screen' event. *
FORM adapt_screen.
* If button press flag is initial hide the dynamic selection screen.
IF gv_button_press IS INITIAL.
LOOP AT SCREEN.
IF screen-group1 = 'AW1'.
screen-invisible = '1'.
screen-active = '0'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
* Elseif button press flag is 'X' show the dynamic selection screen.
ELSEIF gv_button_press EQ 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'AW1'.
screen-invisible = '0'.
screen-active = '1'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
ENDFORM. " adapt_screen
Regards,
T2
Message was edited by: Titu Joseph -
Adding a new field to the selection screen of a LDB
Hi all,
I want to add a new field Clearing date(BSEG-AUGDT) in the dynamic selection screen of the report RFUMSV00.
For adding a new field i have copied the SAP view of a Logical database to CUS view.
Next i had added the Clearing date(BSEG-AUGDT) to the function group Document header(01) and selected the check box Preselect and saved the view.
But still i am not able to find the newly added field in the dynamic selection screen of the report.
Please suggest me where i am going wrong or how to do this.
Thanks in advance
AjayHi Srini,
Thanks for your Reply
I have kept 01 against the field BSEG-AUGDT and selected the preselect check box also.
But still that field is not visible in the dynamic selection screen.
Thanks
Ajay.D -
Problem with variable in the woorkbook selection screen.
Hi All,
I have Problem with Variable in the selection screen. I have four variable in the report in this sequence
<b>Plant (optional), calendar month (mandatory), material (optional), Customer (mandatory). </b>
In Development system, I changed the query to fix the problem for a formula. saved and executed the query. In the selection screen appeared four variables and executed. after executing the query and I saved the work book also. I logged out of the Bex Analyzer. In the RSRT I generated the report by clicking the Generated Report push button. and again logged into the Bex analyzer and ran the work book, now in the selection screen, appeared three Variables only, I am missing the variable <b>Customer</b>.
The old report which is already in the Production system is working fine. What could be the mistake I did in the development system.
It is very urgent, I need to deliver this object as soon as possible.
Can I anybody help on the same.
Thanks in advance
NarendraYunus,
I did what you said. I removed the variable from characteristic restrictions, saved the query and executed the query, appeared three variables Plant, Calender month and material. executed and saved the work book. disconeted from Bex analyzer, in RSRT Generated Report and logged into Bex analyzer ran the work book for selection Plant, calender month and material and went into change query definition and added the variable for customer which was removed earlier and and ran the query for selections Plant, Calender monmth, Material and customer. saved the work book. disconnected from Bex analyzer and closed all excel sheets and work books. In RSRT Generated Report and again connected to Bex analyzer and ran the work book, now appeared only three variables again missed variable customer.
Yunus does any missed n the procedure what i did.
It is helped what Chris was answered.
Many Many Thaks for your time and replies.
Thaks in advance
Narendra -
How to include text lable in Variable selection screen (Web Reporting)
Hi Experts,
I have created one query and in Web Report-->variable selection screen I have one Date field for that field I have to display a label stating that user to input date in the format YYYY.MM(like a text label).Actually I have created 10 to 12 report . I need u r suggestion such that a single change will reflect my requirement in all the reports and I have created all the reports for same multiprovider.
Thanks in Advance
Yours,
BalaBala,
Prompts can originate from one of two places: either via Designer and using the @prompt functionality or while creating the report building a prompt in the Query Filters panel. If the prompt was built using the @prompt method, and all 10-12 reports are using that particular @prompt, then one change via Designer will cause all reports to reflect the new verbiage. If you built the 10-12 reports using the prompt in the second scenario, then each individual report needs to be opened, modified and then saved. If you must use the latter method, then you can open the first report, modify the prompt verbiage, then highlight the new verbiage with your mouse and hit Control-C (which copies that text to the Clipboard of your Windows system). Then go to the second report, locate the verbiage that needs to be changed, delete it, then Control-V (which pastes), and voila, some keyboarding strokes are saved....
Thanks,
John -
To Load ALV Layout in report selection screen
Hi...
I want the selection screen option for user so that he can select any of the saved layouts.
I have done some coding after refering to some threads in here.But I can't proceed further...plz help
<b>selection screen</b>
SELECTION-SCREEN BEGIN OF BLOCK 006 WITH FRAME TITLE text-006.
PARAMETERS: p_layout LIKE disvariant-variant. " layout
SELECTION-SCREEN END OF BLOCK 006.
<b>data declarations</b>
DATA: wa_variant TYPE disvariant.
DATA: w_variant_save TYPE c VALUE 'A'.
DATA: gs_variant TYPE disvariant.
DATA: gs_layout TYPE lvc_s_layo.
DATA: g_repid LIKE sy-repid.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_layout.
PERFORM variant_input_help.
FORM variant_input_help .
DATA: tl_dynpfields TYPE TABLE OF dynpread.
DATA: wl_exit TYPE c.
DATA: wal_variant LIKE wa_variant.
DATA: wal_dynpfields TYPE dynpread.
Get values from the selection screen to determine layout set
wal_dynpfields-fieldname = p_layout.
APPEND wal_dynpfields TO tl_dynpfields.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
DYNAME = sy-cprog
DYNUMB = '1000'
TRANSLATE_TO_UPPER = ' '
REQUEST = ' '
PERFORM_CONVERSION_EXITS = ' '
PERFORM_INPUT_CONVERSION = ' '
DETERMINE_LOOP_INDEX = ' '
TABLES
DYNPFIELDS = tl_dynpfields
EXCEPTIONS
INVALID_ABAPWORKAREA = 1
INVALID_DYNPROFIELD = 2
INVALID_DYNPRONAME = 3
INVALID_DYNPRONUMMER = 4
INVALID_REQUEST = 5
NO_FIELDDESCRIPTION = 6
INVALID_PARAMETER = 7
UNDEFIND_ERROR = 8
DOUBLE_CONVERSION = 9
STEPL_NOT_FOUND = 10
OTHERS = 11
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 tl_dynpfields INTO wal_dynpfields.
CASE wal_dynpfields-fieldname.
WHEN 'p_layout'.
wa_variant-variant = wal_dynpfields-fieldvalue.
ENDCASE.
ENDLOOP.
wa_variant-report = sy-repid.
wa_variant-variant = p_layout.
wa_variant-username = sy-uname.
**Invoke function to provide drop down entries
CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
EXPORTING
IS_VARIANT = wa_variant
I_TABNAME_HEADER =
I_TABNAME_ITEM =
IT_DEFAULT_FIELDCAT =
I_SAVE = w_variant_save
I_DISPLAY_VIA_GRID = ' '
IMPORTING
E_EXIT = wl_exit
ES_VARIANT = wal_variant
EXCEPTIONS
NOT_FOUND = 1
PROGRAM_ERROR = 2
OTHERS = 3
IF SY-SUBRC IS INITIAL.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4
IF wl_exit IS INITIAL.
p_layout = wal_variant-variant.
ENDIF.
ELSE.
message I033 WITH TEXT-034.
ENDIF.
*gs_variant-variant = p_layout.
*gs_variant-report = sy-repid.
FREE: tl_dynpfields.
g_repid = sy-repid.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = g_repid
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
I_CALLBACK_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE =
I_GRID_SETTINGS =
<b>IS_LAYOUT </b> = <b>??</b>
<b> IT_FIELDCAT = ??</b>
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT = wal_variant
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
I_HTML_HEIGHT_TOP = 0
I_HTML_HEIGHT_END = 0
IT_ALV_GRAPHICS =
IT_HYPERLINK =
IT_ADD_FIELDCAT =
IT_EXCEPT_QINFO =
IR_SALV_FULLSCREEN_ADAPTER =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
<b>T_OUTTAB = </b><b>??</b>
EXCEPTIONS
PROGRAM_ERROR = 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.
ENDFORM. " variant_input_help
wat steps shud i takeHi ,
I have used the below FM for layout help,
data: gs_variant like disvariant,
gs_variant-report = sy-repid.
call function 'REUSE_ALV_VARIANT_F4'
exporting
is_variant = gs_variant
i_save = 'A'
i_display_via_grid = 'X'
importing
es_variant = gs_variant
exceptions
not_found = 1
program_error = 2
others = 3
if sy-subrc = 0.
pa_var = gs_variant-variant.
endif.
Note pa_var is your select options field in the SELECTION SCREEN,
call function 'REUSE_ALV_GRID_DISPLAY' "
exporting
i_bypassing_buffer = 'X'
i_buffer_active = 'X'
i_callback_program = sy-repid
i_callback_top_of_page = 'TOP_OF_PAGE'
is_layout = gs_layout
it_fieldcat = gt_fieldcat
i_save = 'A'
is_variant = gs_variant
it_events = gt_events
tables
t_outtab = gt_output
exceptions
program_error = 1
others = 2
hope this helps you.
Regards,
Raghavendra -
Transporting user defined selection screen from one server to another
How to transport a user defined selection screen (0100) from one server to another.
PBO and PAI modules written in PBO and PAI events for the selection screen are
not transported.
How to transport the modules in the events for the selection screen.Hi,
Krishna, <b>All</b> the Objects(prms,classes,tables,stru...) will be transported thru Transport Objects only..
Check Utilities->version->Version Mgt -> Here u will have the Transport number(if it's created under trnasportable obj).If you do not find TP no,then u would hav saved that as a Local Object.
Then Relase the TP no from SE10 Trnx.
Rgds,
Jothi.P -
Calling Adobe Interactive Form from a selection screen
Hi,
I have to design an interactive adobe form online scenario,it goes like this :
A certain tcode will call a selection screen when we enter values in the selection screen it will open an adobe form,which will have a submit button,on clicking the button data gets saved in a z table.
I will be designing the form in Web Dynpro,is it possible to call such a form through a selection screen?? Can someone please provide some idea on how to implement the above scenario.
Thanks !!Hello,
for the online scenario you need a communication partner for the form. In WD, you have a partner to exchange the data with. But from a selection screen... who would be your partner? You can of course display a form, a PDF file, a new one (generated) or a uploaded/ stored one, you can even edit the fields, but you don´t have any partner to send the data to.
To cut this... you need a webservice if you want to exchange some data immediately (online scenario).
Regards Otto
Maybe you are looking for
-
i can't figure out what's wrong with my volumeLevel() method in this code, can anyone please show me what's wrong with it? thanks! class volumes int currentVolume; void volumeUp() if(currentVolume == 5) System.out.printl
-
After upgrading to the 7.0, and making MSN my homepage, I normally view the stock reports and their is always a video presentation, but now that area is completely blank and a spinning circle in the tab plane keep turning for about 1 minute or longer
-
I'am getting a new computer and wants to re-install CS5 on my new computer without having to buy again. I have CS5 32 bit version running on windows XP (this was an upgrade from CS4-CS3) going to new 64 bit computer with Windows 7. How can I re-insta
-
Wired ethernet stops working on c2d MBP
I am a new 15 inch C2D MBP owner and I'm just starting to learn all the Mac stuff... I need your help because I have a serious problem with wired ethernet stability under macOS. I need to know if it's something specific to my machine or if anyone els
-
SyndicationAgent.app on 10.4.11 Yes or No ?
I just upgraded to 10.4.11 on a Power PC Dual 2.7 Tower. Right away I got this pop up "SyndicationAgent.app has been updated. Do you want to allow the new version to access the same keychain items ( such as passwords) as the previous version This cha