Hide selection screen in BDC
Hi Experts,
i created a bdc for VA01 transaction. i use include bdcrecx1 in my code every time while i run the prog it shows a selection screen to select generate session or call transaction methode, but i want to hide that screen for user by automatically selecting call transaction radio button with processing mode 'N' and update mode 'A'
can anyone explain with sample code...
Hi arun ,
please close this duplicate entry.
Regards
prabhu
Similar Messages
-
HI ALL,
I HAVE TWO SEPARATE SELECTION SCREEN IN MY PROGRAM,ONE OF MY OWN GENERATED AND OTHER ONE IS SELF GENERATED SCREEN OF THE BDC.
NOW I WANT TO HIDE THE SELECTION SCREEN FOR THE BDC. HOW CAN I GO FOR IT.
THANKS AND REGARDS,
SUGEET.Hi again,
1. ur requirement is NOT USING bdcrecX1 SCREEN.
I suppose u are using CALL TRANSACTION for this.
2. so what we should do (i also did the same)
3. just declare important variables
in your program at the top.
DATA: bdcdata LIKE bdcdata OCCURS 0 WITH HEADER LINE.
messages of call transaction
DATA: messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.
error session opened (' ' or 'X')
4. and copy the routines FORM (from bdcrecx1)
just like :
Start new transaction according to parameters *
FORM bdc_transaction
tables bdcmsg structure yhrs_bdcmsg
USING tcode p_param1 p_param2 showflag.
DATA: l_mstring(480).
REFRESH messtab.
clear bdcmsg.
refresh bdcmsg.
CALL TRANSACTION tcode USING bdcdata
MODE ctumode
UPDATE 'S'
MESSAGES INTO messtab.
LOOP AT messtab.
SELECT SINGLE * FROM t100 WHERE sprsl = messtab-msgspra
AND arbgb = messtab-msgid
AND msgnr = messtab-msgnr.
IF sy-subrc = 0.
l_mstring = t100-text.
IF l_mstring CS '&1'.
REPLACE '&1' WITH messtab-msgv1 INTO l_mstring.
REPLACE '&2' WITH messtab-msgv2 INTO l_mstring.
REPLACE '&3' WITH messtab-msgv3 INTO l_mstring.
REPLACE '&4' WITH messtab-msgv4 INTO l_mstring.
ELSE.
REPLACE '&' WITH messtab-msgv1 INTO l_mstring.
REPLACE '&' WITH messtab-msgv2 INTO l_mstring.
REPLACE '&' WITH messtab-msgv3 INTO l_mstring.
REPLACE '&' WITH messtab-msgv4 INTO l_mstring.
ENDIF.
CONDENSE l_mstring.
IF showflag = 'X'.
WRITE: / messtab-msgtyp, p_param1, p_param2, l_mstring.
endif.
move-corresponding messtab to bdcmsg.
bdcmsg-mstr1 = l_mstring.
append bdcmsg.
ELSE.
IF showflag = 'X'.
WRITE: / messtab.
endif.
move-corresponding messtab to bdcmsg.
bdcmsg-mstr1 = l_mstring.
append bdcmsg.
ENDIF.
ENDLOOP.
SKIP.
REFRESH bdcdata.
ENDFORM. "BDC_TRANSACTION
Start new screen *
FORM bdc_dynpro USING program dynpro.
CLEAR bdcdata.
bdcdata-program = program.
bdcdata-dynpro = dynpro.
bdcdata-dynbegin = 'X'.
APPEND bdcdata.
ENDFORM. "BDC_DYNPRO
Insert field *
FORM bdc_field USING fnam fval.
CLEAR bdcdata.
bdcdata-fnam = fnam.
bdcdata-fval = fval.
APPEND bdcdata.
ENDFORM. "BDC_FIELD
5. Make all this in your own Z Include.
6. I have used this approach and it works fantastic.
regards,
amit m. -
Hi,
Can anyone explain me how to hide the selection screen in SAP MSS for reports under reporting workset.
Thanks,
UshaYou should have a variant defined ie a default one
also check the iview properties also -
Hide selection screen option on the base of Transaction code
Hi ,
i have created one report with two diffrenet transaction code .
now we have two different selection options on the base of Transaction code.
how can i do coding for this .
anyone has any sample code ..
thanks,
JackThanks Subramanian,
INITIALIZATION.
if sy-tcode = tcd1.
perform first_selection_screen.
elseif sy-tcode = tcd2.
perform second_selection_screen.
endif.
FORM first_selection_screen..
SELECTION-SCREEN BEGIN OF BLOCK s1 WITH FRAME TITLE text-s02.
SELECT-OPTIONS: s_date FOR vbrk-fkdat.
SELECT-OPTIONS: s_kunag FOR vbrk-kunag.
SELECTION-SCREEN END OF BLOCK s1.
ENDFORM.
But in this perform if i write code for selection-screen then it gives me syntax error.
error message: within form or function module, selection-screen option is not allowed.
Thanks,
Jack -
can you tell me how to get a file from desktop to selection screen.
iam using the KD_GET_FILENAME_ON_F4 function module .
F4 functionality is not getting.
regards
RAj.Check out this
CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG which has export parameters like:
INITIAL_DIRECTORY etc
CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
EXPORTING
DEFAULT_FILENAME = '
corp-abc\sap-abap\'
CHANGING
FILE_TABLE = ITAB_FILE1_TABLE
RC = RC_FILE
EXCEPTIONS
FILE_OPEN_DIALOG_FAILED = 1
CNTL_ERROR = 2
ERROR_NO_GUI = 3
NOT_SUPPORTED_BY_GUI = 4
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. -
Hide Selection Screen in OVS?
Is it possible? I've defaulted the values in phase 1 - but I would like to skip straight to the selection list rather than having the user click "search." I can't see a way to do it, unless I custom program a value help. That's not really worth the effort at this point.
Thanks in advance.
-BryanThat is exactly what I was looking for.
I guess I need to read the comments of the generated code a little closer - it was right there!
Thank you! -
How to hide a selection screen comment ?
Hi Experts,
I have an issue in Interactive report...
I know by using LOOP AT SCREEN we can modify screen elements like HIDE ... in the AT SELECTION-SCREEN OUTPUT event
But my question is i need to HIDE Selection screen comment also...I can this be achieved....???
Please do reply me with a solution...
Thanks in Advance...
Reddy ArunHi Reddy,
Please go through below code..
it will fulfill ur requirements
REPORT 123.
PARAMETERS : RB_USER RADIOBUTTON GROUP za .
PARAMETERS : RB_MAN RADIOBUTTON GROUP za .
PARAMETERS : RB_MAN1 RADIOBUTTON GROUP za DEFAULT 'X'.
AT SELECTION-SCREEN OUTPUT.
PERFORM f13000_check_radio.
FORM f13000_check_radio.
IF rb_man1 = ''.
LOOP AT SCREEN.
IF screen-NAME = 'RB_MAN'.
IF rb_man = 'X'.
screen-active = 0.
rb_man = ''.
ELSE.
screen-active = 1.
ENDIF.
MODIFY SCREEN.
ENDIF.
IF screen-NAME = 'RB_USER'.
IF rb_user = 'X'.
screen-active = 0.
RB_USER = ''.
ELSE.
screen-active = 1.
ENDIF.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ELSE.
LOOP AT SCREEN.
IF screen-NAME = 'RB_USER'.
screen-active = 1.
MODIFY SCREEN.
ENDIF.
IF screen-NAME = 'RB_MAN'.
screen-active = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
ENDFORM. " f13000_check_radio -
Dynamic creation of selection screen by using POWL-Personal Object Work Lis
Hi Expert,
I am using POWL to display Report.For that there is one selection screen and once the user press enter a report will display.
In this case i am desiging the selection screen but not able to Hide/Display fields on the basis of user action on the selection screen input/Drop down selection.
Can u plz tell me how i can handle redesigning of selestion screeen depending on user interaction.
Thanks
MaheshHi,
I want to hide selection screen field depending on the user action on the drop down.
Also there is a check box in the selection screen,if the user check that check box then 2 fields in ALV will not display otherwise it will display.
Thanks -
Selection screen texts missing
Hi friends,
I am working on a BDC program and when I execute my program, I see that the texts are missing in the selection screen. Can anyone tell me what should be done in order to display the texts in the selection screen in BDC.
Thanks,
RAJ.Hi Raj,
1. i suppose u are using
include bdcrecx1.
2. Due to this,
u will have to MANUALLY
type them / enter them
thru the menu GOTO-->TEXT ELEMENTS
3. Since its an include,
the system does not automaticlly recognise it.
4. However, u can check FROM DICT Option.
5. Those which are manual,
u will have to write them / enter them.
regards,
amit m. -
Skip the selection screen using BDCTAB call transaction
Hi experts,
I am using BDCTAB for call transaction SWI1 I need to skip the selection screen. Can you please tell me how to skip the selection screen using BDC call transaction?
Thank you in advance.....hi,
the first step is to pass some values to the selection screen, at least Date From and Date To; otherwise, it´ll take a long time. The second step is to emulate the Execute button, which is done with '/08'.
PERFORM fields USING 'BDC_OKCODE' '/08'.
Third step is to catch the programme and screen number. -
Selecting fields in BDC screens
Hai,
Can we select fields(check boxes) from BDC screen if so, tell me how can we select fields in BDC programming.
Thank you in advanceHai,
as u said that we can select check boxes while recording, but my problem is i'm using this procedure in creating STO delivery in VL10B, here we enter ship-to party and date as input and in second screen we click on show/hide documents button and after that we check the STO document no. which was created for our suppl. plant on given date and press background button, so here my problem is STO document no. place is getting changed every time.
Thank you can you once verify recording for VL10b. -
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 -
Logical Database (PNPCE) , selection screen hide.
Hi Gurus,
i have couple of questions related to logical database pnpce.
1.Since i know logical database has there own selection screen , my requirement is i want to add my custom fields to the selection screen other than what is provided is it possible or not.
2. i want to hide the selection screen of the logical database, but i do want to create my own in which i will be declaring some select options of the standard logical database screen has, like pernr, organisation unit, etc, how do i communicate the entered data with the logical database if i dont use the logical database standard selection screen, hope i could able to explain my problem, please see into my problem and let me know thanks in advance,
hussainiHussain,
LDB have standard selection screens, if at all you want to customize those standard selection screen you would have to define a report category for your program. You`ll have to configure in the spro settings for your corresponding report category.
If you would like to declare your own selection criteria, you can very well do it and these criteria are visible below the standard selection criteria. You can process these elements in your program and not in the LDB standard program. Use the normal selection screen events in your program for processing your selection criteria.
Hope this info is helpful, reward points if convinced.
Regards -
Filename disappears on selection screen -BDC
Hi all,
I have an issue with my BDC,the seleection screen for picking up the file using parameters doesnt comes up in my parameter box. following is the code i'm using :
DATA: g_filename TYPE string.
**************FILE UPLOADING/DOWNLOADING**************************************
SELECTION-SCREEN BEGIN OF BLOCK block WITH FRAME TITLE text-001.
PARAMETERS : in_file LIKE rlgrap-filename OBLIGATORY.
SUC_FILE LIKE RLGRAP-FILENAME OBLIGATORY,
SUCI_FIL LIKE RLGRAP-FILENAME OBLIGATORY,
ERR_FILE LIKE RLGRAP-FILENAME OBLIGATORY.
SELECTION-SCREEN END OF BLOCK block.
For Browsing the Input File Name on the Presentation Server *
AT SELECTION-SCREEN ON VALUE-REQUEST FOR in_file.
CALL FUNCTION 'C13G0_GET_FILENAME_F4'
CHANGING
x_filename = in_file
EXCEPTIONS
mask_too_long = 1.
PERFORM get_filename USING in_file.
Using call function for uploading a file *
START-OF-SELECTION.
g_filename = in_file.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = g_filename
filetype = 'ASC'
has_field_separator = 'X'
TABLES
data_tab = it_bdc.
END-OF-SELECTION.
NEED HELP GURUS !
EAGERLY WAITIN FOR REPLIES,
SACHINi guess the FM u had used should contain one more exporting parameter,
but use his
AT SELECTION-SCREEN ON VALUE-REQUEST FOR in_file.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = v_repid
dynpro_number = syst-dynnr
field_name = 'IN_FILE'
IMPORTING
file_name = in_file. -
Hide the Range Option in Multiple Selection screen
Hai,
I Give the values In single Values In Selection Option Screen.
I want to need Hide the Range Option Include or Exclude In Multiple selection screen.
Regards,
Geethajust check this it may help you
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/840ad679-0601-0010-cd8e-9989fd650822">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/840ad679-0601-0010-cd8e-9989fd650822</a>
here restricting the selection screen
regards
shiba dutta
Maybe you are looking for
-
I've tried copying and pasting the old file in to replace the old, but then I couldn't get firefox to open at all. Then I went in and just replaced the bookmark backups, but nothing showed up.
-
Help needed with using network disk with iMovie with NFS or AFP
Hi, I have iMac with iMovie08 that talks to a remote disk hosted under Linux over a gigabit network using SMB (Samba). It all works ok and I have done a few movies. Now, I have done some tests with NFS and AFP (AppleTalk) and it seems that these are
-
Labwindows/CVI 7.1 Remote user Interface using Enterprise Connectivity Toolkit
I have an application programmed in Labwindows/CVI 7.1 controlling an Electromagnetic Instrument. Now am interested in extending its usability by adding remote user interface.The goal is to have the application available to be accessed to remote use
-
Generating 2 test reports for the same test - XML and HTML
Hi All, I have a special test requirement. Need to generate 2 test reports for the same test. One in HTML and the other in XML format. Is there any direct method for that? How it can be implemented? Thanks in advance. SajK
-
Hi, While creating ARE-3 document the error is coming as "You cannot create ARE3 for duty paid Deemed exports excise invoice! Message no. 4F326". Can anybody guide me on this issue as it is urgent. Thanks&Regards PSK