Screen field pass as a parameter
Hi,
Can i pass a screen field as import parameter or table to user exit ???
Regards
Nitin Varshney
Hi Doug,
You can write a custom Java iView, calculate the variable param there and use URLGenerator to get the URL for the SAP transaction. Then just display it in an IsolatedHTMLContainer in the iView.
Regards,
Patrick.
Similar Messages
-
Imposing selection fields into a screen field
Hello Frnds,
I have a FM in which I am calling a report. That report doesn't have any selection screen but it calls a user defined screen in which i have an input field PARTNER (KNA1-KUNNR).
In my FM i have import parameter as partner same type as in the report screen field and an export parameter sy-subrc.
Now my issue is I wanna impose the import parameter partner to the screen field in my report which is called. How could I do that?
I am using a submit statement to call the report from the FM.
Please feel free to ask 4 more details or 4 any other questions...!
Note: I do not have standard selection screen for my report. I have to impose the FM import parameter to the screen field in the report.
Thanx in advance,
Abhi...!hi abhi satya
Use EXPORT and IMPORT Statement
in report export the field value and in FM import those value
regards
Deva -
Screen fields without parameter id's in IW26 pseudo-selection screen
The initial screen of IW26 looks like a selection screen but isn't. It uses a number of screens as follows:
1) For notification/status/order: IQS0 1050 (IQSO is the function group)
2) For Notification Reference Object: IWO1 0100
3) For Notification Responsibilities: IQSO 7326
4) For Notification Start/End Dates: IQS0 7330
5) For Notification Item: IQS0 7324
6) For Notification Malfunction Data: IQS0 7328
If you look at IQS0 7330, you'll see that the only the "Priority" screen field has a parameter id.
If you look at IQS0:7324, you'll see that none of the Item-Related screen-fields have parameter ID's.
Same for IQS0:7328 - none of the Malfunction-related fields have parameter id's.
So - if we do a call transaction/skip first screen, we can't preset any of the Item-related screen fields in 7324, nor any of the Malfunction-related screen fields in 7330, nor any of the Date-related fields in 7328 except Priority.
If we were dealing with a "regular" selection-screen here, I know how to get around this problem - do a "submit program" with the selection-screen parameters and select-options "preset" in the with-clause of the submit.
But here we don't have a regular selection-screen. We have the screens 7330, 7324, and 7328 in IQS0. So I can't do a "submit program".
So how do I preset screen-fields on these screens when SAP has provided no parameter ids for them?
(I assume here that I can's use "submit program" because I'm not trying to present real selection screen fields.)
Sorry if this is a dumb question, but I've only dealt with this problem before when the transaction has a real selection screen and I can use "submit program" with a with clause in which the parameters and select-options are preset.
Thanks for any help anyone can provide.
IHi Rich -
I've done the ten because you confirmed my suspicion that nothing "clean" can be done here. I thought maybe some kind of customer screen exit would allow parameter id's to be assigned on the fly rather than in Dictionary, or something like that, but if you've never heard of this then I'm sure it can't be done.
Anyway, the issue regarding the BDC is not the usual one of maintainability over time - it's a political one.
The functional analysts want to use a 3rd party product to create a simpler front-end screen for IW26 - the guys on the shop floor don't want to chase the trees.
We told them that this third party product has recently been known to cause headaches (in fact, by pure coincidence there was a post tonight 12/26 about this product.)
They said - well what else are you going to do, write a BDC?
I hadn't looked at IW26 so I assumed it had a regular selection screen and said to them that a BDC wouldn't be necessary - a call transaction or submit program would suffice.
But of course I spoke too soon, unless I can get an OSSN with the parameter IDs.
Anyway - that's the history here.
BTW, I am going to blog on this topic of "missing" parameter ID's for two reasons:
a) it ticks me off;
b) if IW26 is to be efficiently called as a service, these missing ID's have got to be there;
c) there's no reason to go to a 3rd party product just to avoid using a BDC when parameter IDs are missing.
I know, I know - I'll blog about anything ...
Regards
djh -
Rgarding screen field values passing to program
Dear all, i have searched in SDN and cud not find the answer, i am working on a MB_MIGO_BADI for which i have to design a screen. now i have designed the screen ,and in the PAI method i have written the code. but im unable to get the screen field values that i entered in the screen into this method,(in order to concatenate the screen fields)can any one tell me how to declare variables in the method as well as when we create the screen. please give me in detailed steps.
Thanks in advance,
NarenHi,
If you go to se18 open the BADi and go to menu path GOTO> SAMPLE CODE you can check out a sample implemenation. You can declare Instance level attributes and use those to transfer data.
Regards,
Himanshu -
Pass values of a screen-field to another screen's field.
Hello everyone,
Its urgent.
My requirement is as follows.
When I execute the QM02 transaction and enter a notification number, it takes me to the change notification screen (screen no: 7200)
Here, I was supposed to add a button in the application toolbar which would take me to the ZPBR01 transaction.
I created an enhancement and the button has been successfully created.
I created another enhancement to write the logic of this button.
And the button takes me to Create PBR screen.
However , the requirement also mentions that values of material and part from screen 7200 of QM02 to the ZPBR01 transaction.
RQM00-MATNR, RQM00-MAWERK are screen field names (in QM02)
And I want to display them in ZPBR01 transaction's
LS_ZPBR-PART_NO, LS_ZPBR-PBR_TYPE. How can this be done?
It would be of great help if anyone could help me with this.
Thanks in advance.Hi.
To transfer data from one screen to another program, you could use memory export.
In the first program
export l_value to memory id ‘ZNA1’.
in the ZPBR01 transaction
import l_value from memory id ‘ZNA1’.
Regards
Miguel -
Unable to capture screen fields in eCATT
Problem description 1 : Unable to capture screen fields in eCATT
Recording using SAP GUI Method.
Problem description 2 :Unable to capture Tab controls while recording
in eCATT using SAP GUI Method.
Thaks for any suggestion you could provide me and once again for your courtesy attention.
Regards,
Eric MonteiroHi Phani,
Please try below code:
*data declaration for reading values given by user in the selection screen field.
DATA: BEGIN OF i_tab OCCURS 0.
INCLUDE STRUCTURE rsselread.
DATA: END OF i_tab.
MOVE: 'LOGSYS' TO i_tab-name,
'P' TO i_tab-kind. u201CP For parameter
APPEND i_tab.
MOVE: 'GP_SIMVE' TO i_tab-name,
'P' TO i_tab-kind. u201CCheck if field is Parameter
APPEND i_tab.
*move program name and screen number into local variable.
l_prog = sy-repid. u201C(Try by directly passing program name also)
l_dynnr = sy-dynnr. u201C(Try by directly passing Screen number also)
*calling function module to get the value given by user.
CALL FUNCTION 'RS_SELECTIONSCREEN_READ'
EXPORTING
program = l_prog
dynnr = l_dynnr
TABLES
fieldvalues = i_tab.
Hope this should slove your issue.
Thanks & Regards,
Gaurav. -
F4 Help for the selection screen field
Hi Gurus,
I have to display F4 help for a selection screen field. i am using following code:
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'CODE'
dynpprog = lw_repid
dynpnr = sy-dynnr
VALUE_ORG = 'S'
TABLES
value_tab = gi_text
field_tab = li_fields_tab
return_tab = pi_return_tab
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
My internal table gi_emp has two fields CODE & TEXT. When i select 1 particular value, it returns the CODE value in the pi_return_tab table.
But my requirement is i have to capture the corresponding TEXT value for the Returned CODE. Ex: following is the F4 help being displayed: -
001 test
001 test1
but is i select code 001(First Value), i also need to capture it's corresponding Text value. In return table pi_return_tab i have only Code value.
Please help me out.
Note: Based on return code i can't search into the internal table gi_code, because as shown in the example, code has multiple text.Sachin,
I think this is what you need. The following code will return the key and the text (OR any other columns), if both columns are in the selection screen the selected values (both columns) will also be passed to the corresponding parameters. If you only need the text to be in the return table and not passed to the selection screen then set the parameter for text with NO-DISPLAY option.
REPORT zktest01 .
DATA :
BEGIN OF value_tab OCCURS 0,
field LIKE e070-trkorr,
text LIKE e07t-as4text,
END OF value_tab.
DATA: t_fldtab LIKE dfies OCCURS 0 WITH HEADER LINE,
t_rettab LIKE ddshretval OCCURS 0 WITH HEADER LINE,
t_dynmap LIKE dselc OCCURS 0 WITH HEADER LINE.
PARAMETERS : p_field LIKE value_tab-field,
p_text LIKE value_tab-text. "NO-DISPLAY.
INITIALIZATION.
t_fldtab-tabname = 'VALUE_TAB'.
t_fldtab-fieldname = 'FIELD'.
t_fldtab-langu = 'E'.
t_fldtab-position = 1.
t_fldtab-offset = 0.
t_fldtab-fieldtext = 'Key'.
t_fldtab-reptext = 'Key'.
t_fldtab-leng = 20.
t_fldtab-intlen = 20.
t_fldtab-outputlen = 20.
t_fldtab-datatype = 'CHAR'.
t_fldtab-inttype = 'C'.
t_fldtab-headlen = 20.
t_fldtab-keyflag = 'X'.
t_fldtab-lowercase = ' '.
APPEND t_fldtab.
t_fldtab-tabname = 'VALUE_TAB'.
t_fldtab-fieldname = 'TEXT'.
t_fldtab-position = 2.
t_fldtab-offset = 20.
t_fldtab-fieldtext = 'Text'.
t_fldtab-reptext = 'Text'.
t_fldtab-leng = 60.
t_fldtab-intlen = 60.
t_fldtab-outputlen = 60.
t_fldtab-headlen = 60.
t_fldtab-keyflag = ' '.
t_fldtab-lowercase = ' '.
APPEND t_fldtab.
value_tab-field = '101'.
value_tab-text = 'dddd'.
APPEND value_tab.
value_tab-field = '202'.
value_tab-text = 'aaaa'.
APPEND value_tab.
t_dynmap-fldname = 'FIELD'.
t_dynmap-dyfldname = 'P_FIELD'.
APPEND t_dynmap.
t_dynmap-fldname = 'TEXT'.
t_dynmap-dyfldname = 'P_TEXT'.
APPEND t_dynmap.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_field.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'FIELD'
dynpprog = 'ZKTEST01'
dynpnr = '1000'
dynprofield = 'P_FIELD'
value_org = 'S'
TABLES
field_tab = t_fldtab
value_tab = value_tab
return_tab = t_rettab
dynpfld_mapping = t_dynmap
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc EQ 0.
ENDIF.
START-OF-SELECTION.
Jeffrey Satriadi -
How to link a search help to a selection screen field
Hi All,
I am using field PKWRG from PA0017 table in selection screen. I need F4 help there as in Tcode PA30 . But this field does not have value table or check table. However, it has a search help attached 'TRV_PKWRG' .
But, I donot know how to assign a search help to a selection screen field. Please help.
Regards,
NibhaHello,
Fetch all the data which from the table which you want to show in the search help and pass the value to the FM
F4IF_INT_TABLE_VALUE_REQUEST and the selection-screen event must be
at selection-screen on value request parameter or selection option variable.
BCALV_TEST_FULLSCREEN
BCALV_TEST_FULLSCREEN_CALLS
BCALV_TEST_FULLSCREEN_PRINT
BCALV_TEST_FULLSCREEN_STATUS
BCALV_TEST_GRID
BCALV_TEST_GRID_DRAG_DROP
BCALV_TEST_GRID_EDITABLE
BCALV_TEST_GRID_EVENTS
BCALV_TEST_GRID_INDEX
BCALV_TEST_GRID_TOOLBAR
BCALV_TEST_HIERSEQ_LIST
BCALV_TEST_LIST
BCALV_TEST_LIST_PRINT
BCALV_TEST_LIST_STATUS
BCALV_VERIFY_DTYPES_D0100_F01
BCSMENUF01
BDLCOF10
BDLDVI10
BDLTREDF -
F4 hep for selection screen field
Hello ,
Im trying to create custom f4 help for Parameter ekbe-belnr by using below code. It displaying F4 values for EKBE-belnr. But when i select any value in F4 hlep , its not displaying in Selection Field. How can i reflect selected value in to selection field.
REPORT YMP.
Parameter: p_belnr type ekbe-belnr.
types: begin of tys_itab,
belnr type ekbe-belnr,
end of tys_itab.
data: itab type table of tys_itab.
at selection-screen on value-request for p_belnr.
select belnr from bkpf into table itab .
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE =
retfield = 'BELNR'
PVALKEY = ' '
DYNPPROG = Sy-repid
DYNPNR = SY-DYNNR
DYNPROFIELD = ' '
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
tables
value_tab = itab
FIELD_TAB =
RETURN_TAB =
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Thanks for ur time and help
sanjanahi,
<b>F4IF_INT_TABLE_VALUE_REQUEST</b>
This FM is used to dsiplay values stored in an internal table as input
help.This FM is used to program our own custom help if no such input help
exists in ABAP dictionary for a particular field. The parameter VALUE_TAB is used to pass the internal table containing input values.The parameter RETFIELD
is used to specify the internal table field whose value will be returned to the screen field or RETURN_TAB.
If DYNPNR,DYNPPROG and DYNPROFIELD are specified than the user selection is passed to the screen field specified in the DYNPROFIELD. If RETURN_TAB is specified the selectionis returned in a table.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = field from int table whose value will be returned
DYNPPROG = SY-CPROG
DYNPNR = SY-DYNNR
DYNPROFIELD = 'screen field'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = internal table whose values will be shown.
RETURN_TAB = internal table of type DDSHRETVAL
EXCEPTIONS
parameter_error = 1
no_values_found = 2
others = 3.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'BELNR' " or belnr
DYNPPROG = Sy-repid " or SY-CPROG
DYNPNR = SY-DYNNR
DYNPROFIELD = 'p_belnr'
VALUE_ORG = 'S'
tables
value_tab = itab
regards,
Ashok Reddy -
Need help on search help on selection screen field
Hi guyz,
Please tell me how to pass the parameter or restrict the below search help.
*s_bsart FOR ekko-bsart . " Doc. Type*
For the above selection screen field i need to display the data only for cat = F if i click search help.
Thanks,
Mohamed KaleelHi,
Use At selection-screen for value-request for s_bsart.
SELECT_OTPIONS: s_bsart FOR ekko-bsart.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_bsart.
CALL SCREEN 100 STARTING AT 10 5
ENDING AT 50 10.
MODULE value_list OUTPUT.
SUPPRESS DIALOG.
LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
SET PF-STATUS space.
NEW-PAGE NO-TITLE.
s_bsart-low = 'F' / 'CAT=F'.
write :/ s_bsart-low.
Hide: s_bsart-low
clear s_bsart-low.
ENDMODULE.
AT LINE-SELECTION.
LEAVE TO SCREEN 0.
This will resolve the issue.
Regards,
Gurpreet -
How to hide OM infotype screen field
Hello Experts.
Please let me know how to hide OM infotype Screen field ? i want to hide Percentage field on IT1011.
I know i can create alternative screen "Z" and hide the field and attach alternative screen to the Module pool.
Please let me know if i can do this using BADI so there will not be any change to standard.
Regards,
SaurabhHi Shiva,
To get the detail about a table filed you can use DDIF* function module.
Here in this particular case you can use FM DDIF_FIELDINFO_GET.
Pass the table name & field name.
After executing that FM you can check DFIES_TAB in Tables parameter. i t will be having an entry.
Check for filed name as KEYFLAG , if it is not initial ie. X then supplied filed is Primary Key.
If KEYFLAG is initial then supplied filed is not a primary key.
Thanks & Regards
Satyam -
Transaction iView - pass web dynpro parameter
Hi!
I created a web dynpro (ABAP) iView with a button on it. Selecting the button opens a transaction iView. (SAP GUI for Windows) I want to pass a web dynpro parameter to the SAP GUI iView and write the value of this WD parameter into a screen field at SAP GUI.
I suppose I have to use 'Application Parameters' as described at [help.sap.com|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/88/266a3e54a2e946e10000000a114084/frameset.htm], but until now any attempts failed...
Best regards,
SandraHi Sandra, did you solve this? I am facing the same requirement.
Thanks -
User exit for IW31 which capture screen field Po number
Hi all
I have the requirement that when we save work order created by IW31. It shud trigger any user exit or BADI.
In that we have to validate the screen field Purchase order number BSTKD from the Ztable entries.
My problem is that no user exit passes this value as export parameter. so without that how can I get this value in the include program. Please let me know the user exit which hit after save and passes PO value so I can validate this field. Thanks!!!
Quick answer will highly be appreciated!!
Nikhilesh VyasHello Kiran
Thanks for ur reply
But this Badi does not have purchase order number as parameter in any method which call after user press save button.
Please let me know any other alternative if u have ...thanks!! -
Default sales org on selection screen using set and get parameter!!
Hi,
I need to default value on selection screen using SET n GET parameter...logic to be used should be:
Sales Organisation:
This field should be filled by default using the user parameter id VKO. (using sentence GET PARAMETER and SET PARAMETER)...
Hope i need to write the code in initialisation and what shud b the content?
Regards
Gunjanhi,
TABLES <table name>.
SET PARAMETER ID VKO FIELD <tablename-fieldname>.
call transaction 'zxx'.
try this sample program,
REPORT BOOKINGS NO STANDARD PAGE HEADING.
TABLES SBOOK.
START-OF-SELECTION.
WRITE: 'Select a booking',
SKIP.
GET SBOOK.
WRITE: SBOOK-CARRID, SBOOK-CONNID,
SBOOK-FLDATE, SBOOK-BOOKID.
HIDE: SBOOK-CARRID, SBOOK-CONNID,
SBOOK-FLDATE, SBOOK-BOOKID.
AT LINE-SELECTION.
SET PARAMETER ID: 'CAR' FIELD SBOOK-CARRID,
'CON' FIELD SBOOK-CONNID,
'DAY' FIELD SBOOK-FLDATE,
'BOK' FIELD SBOOK-BOOKID.
CALL TRANSACTION 'BOOK'.
regards,
siva
Message was edited by:
Shan -
Regarding Search help on selection-screen field
Hi there,
I am working on custom tables.
I have a requirement to maintain search pattern on a selection-screen field.
selection-screen parameter: p_name which is company name filed from Z table.
By giving a string like Holl* and by pressing F4 on the field p_name it has to popup a dialogbox having list of company names starting with Holl.
Thanks in advance.
-TulasiHi
Go through the link given below :
How to create a search help for my own fields in selection screen
F4 search help on report selection screen
also try :
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
RETFIELD = 'VKORG'
PVALKEY = ' '
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'P_VKORG'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'C'
TABLES
VALUE_TAB = T_TABLE1
FIELD_TAB = field_tab
RETURN_TAB = RET_TAB
DYNPFLD_MAPPING = DYN_TAB
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
With Regards
Nikunj shah
Maybe you are looking for
-
My original eMac came with the Jaguar 10.2 installed (and included the eMac 10.2 installation discs). I have since upgraded as far as 10.2.8, but am considering upgrading to 10.3+ (possibly 10.4+ eventually). Would I still be able to keep the Apple O
-
TV@nywhere and ProLink driver/soft?
Had anybody tried ProLink PlayTV HD driver/software with TV@nywhere card? Both cards are based on the same CX23881 chipset and ProLink card has very good marks according to this ( http://www.3dvelocity.com/reviews/playtv/playtvhd.htm ) review. The dr
-
System Administrator Password Reset Q after Upgrade eMac
I recently upgraded my Moms eMac from 40GB to 80GB. It took me about one hour and I booted it up. The drive was from my broken eMac. I am trying to update some of the software (Apple Download) and it will not allow me to do any changes. I keep gettin
-
Max (date) in sub-query
I have an issue with a big view and several queries running on it where the max (date) is required in the sub-select (example below). When I run traces and explain, the perf problem is when the where cluase is evaluated, the view is pulled second tim
-
I'm used to having my color picker look like this: http://www.google.com/imgres?um=1&hl=en&sa=N&biw=1241&bih=606&tbm=isch&tbnid=KvF4JDOAY_MDp M:&imgrefurl=http://www.graphicdesignforum.com/forum/showthread.php%3Ft%3D46065&docid=e1kp XcnECq6QbM&imgurl