Field Heading in F4IF_INT_TABLE_VALUE_REQUEST
Dear all,
I am calling function F4IF_INT_TABLE_VALUE_REQUEST on F4 help request.
Values are fetched and shown as desired, but how should I name the fields?
Suppose the output field is MATNR, then the fieldname should read 'Material' but as of now its reading F0001.
I am passing following fields.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield =
window_title =
value_org =
TABLES
value_tab =
return_tab =
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
Thanks
Hi
You can refer the following code for help.
FORM F_F4help using p_field .
types : begin of t_plant,
ORACLE_PLANT type ZPLANT,
WERKS type WERKS_D,
end of t_plant.
data lth_REF_PLANT type table of t_plant.
data : l_retfield type DFIES-FIELDNAME.
l_retfield = 'WERKS'.
select ORACLE_PLANT WERKS from ZXREF_PLANT into table lth_REF_PLANT.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = l_retfield
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = p_field
value_org = 'S'
tables
value_tab = lth_REF_PLANT
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.
ENDFORM.
You can populate return field value ( l_retfield )to be passed to select-options when user select some record.
Thanks and Regards,
Harpreet Singh
Similar Messages
-
hi all
In alv report out put the field heading is too long.
So I want to disply the heading in two rows.
Like April 2006 prior month personal,
Is to be disply like in one row April 2006.
And in next row prior month personal.
Please send the reply as early as possible to [email protected]i think it is not possible like that , u can increase the length of that field in fieldcatalog
wa_fieldname-outputlen = '100'.
and in layout u can use
wa_layout-colwidth_optimize = 'X'. -
Base line date field ( header data 2nd tab) to be made noneditable in MIRO
Hi friends,
My requirment is to make Base line date field ( header data 2nd tab) to be noneditable in Tcode MIRO .
This base line date should be noneditable only for one specific company code.
Help me with some clues.
regards
Sathishwhy cant you use a screen variant....In SHd0..
also check this..
[http://forums.sdn.sap.com/click.jspa?searchID=37685778&messageID=8389969] -
Add field header in T-Code KKED and S_ALR_87013028
Hi! I need to add the field header in T-Code KKED and S_ALR_87013028.
a.) Customer Order Qty
b.) Min Production Qty
c.) Customer Target Price
d.) Selling Price
I'd review the coding many times and make me so confused. p/s: I'm beginner of abap.
Can anyone help me? Thanks~!try to look for the field catlog of the already existing table
and try to add this
by using exits or implicit enhancemnt -
Fill Field 'Header text' in FB01
Hi,
Now: documents (FB03) in field header text have date from documents date from invoices. I would like to have another date which automatic print here. For example one date 01.01.2000 .
Can change it in tcode or it's more advance setup.
ThanksHi
A substitution may fulfil your purpose.
Regards -
To display variable date in the ALV field header
HI all,
I have an ALV list and one of the field headers is "Total received till 14.03.2008".
Now the date field here is variable. it is being fetched from an internal table and displayed in thee field header of an ALV list.
cud y'all pls tell me how to display this variable date.
thanx,
pkHi,
Just have a look on the following code,i hope this is enough to
meet your requirement.
type-pools: slis.
data: x_fieldcat type slis_fieldcat_alv,
it_fieldcat type slis_t_fieldcat_alv,
l_layout type slis_layout_alv,
x_events type slis_alv_event,
it_events type slis_t_event.
data: begin of itab occurs 0,
vbeln like vbak-vbeln,
posnr like vbap-posnr,
male type i,
female type i,
end of itab.
select vbeln
posnr
from vbap
up to 20 rows
into table itab.
x_fieldcat-fieldname = 'VBELN'.
x_fieldcat-seltext_l = 'VBELN'.
x_fieldcat-tabname = 'ITAB'.
x_fieldcat-col_pos = 1.
append x_fieldcat to it_fieldcat.
clear x_fieldcat.
x_fieldcat-fieldname = 'POSNR'.
x_fieldcat-seltext_l = 'POSNR'.
x_fieldcat-tabname = 'ITAB'.
x_fieldcat-col_pos = 2.
append x_fieldcat to it_fieldcat.
clear x_fieldcat.
x_fieldcat-fieldname = 'MALE'.
x_fieldcat-seltext_l = 'MALE'.
x_fieldcat-tabname = 'ITAB'.
x_fieldcat-col_pos = 3.
append x_fieldcat to it_fieldcat.
clear x_fieldcat.
x_fieldcat-fieldname = 'FEMALE'.
x_fieldcat-seltext_l = 'FEMALE'.
x_fieldcat-tabname = 'ITAB'.
x_fieldcat-col_pos = 3.
append x_fieldcat to it_fieldcat.
clear x_fieldcat.
x_events-name = slis_ev_top_of_page.
x_events-form = 'TOP_OF_PAGE'.
append x_events to it_events.
clear x_events .
l_layout-no_colhead = 'X'.
call function 'REUSE_ALV_LIST_DISPLAY'
exporting
i_callback_program = sy-repid
is_layout = l_layout
it_fieldcat = it_fieldcat
it_events = it_events
tables
t_outtab = itab
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.
form top_of_page.
*-To display the headers for main list
format color col_heading.
write: / sy-uline(103).
write: / sy-vline,
(8) ' ' ,
sy-vline,
(8) ' ' ,
sy-vline,
(27) '***'(015) centered,
sy-vline.
write: / sy-vline,
(8) 'VBELN'(013) ,
sy-vline,
(8) 'POSNR'(014) ,
sy-vline,
(8) 'MALE'(016) ,
sy-vline,
(5) 'FMALE'(017) ,
(10) sy-datum,
sy-vline.
format color off.
endform.
Reward points,if it is useful.
Thanks,
Chandu. -
Field Header displayed in Foreign Language while reteriving records.
Hi all,
I am facing MultiLingual problem when i reterieve the main table records,The field Code /Header is displayed in one Foreign Language like (French/german). the need is to display the Field Code/Header in English. what modification i need to put in code if i need to display the Header in english.
The problem
Approve Posición de catálogo GUID Client Code Proveedor Número de contrato País de utilización Identificación del proveedor ............
something like this for the Field header, but the record values are displaying as English.
i am using com.sap.mdm JAVA API, and the new patch 5.5.42.65
what will be the reason and how to rectify it?
With Thanks,
Mary JosephHi,
This happened to me also. What happens in display mode PARVW shows one value but when u double click on the record it shows the original value. This is the value that is stored internally in table. Use this value in ur select query.
Regards,
Raghavendra. -
Field heading not shown for 1ROWCOUNT
Hi Gurus,
My query is based on an infoset which contains 5 infoobjects (No ODSs). 1ROWCOUNT is available in the IS which I have used in the report. Apart from 1ROWCOUNT there are 4 other KF in the report (All are 'Hide can be shown').
When I excecute the report, and select only 1ROWCOUNT in the report, the field heading is blank. That is the field heading is blank in place of "Number of Records". but as soon as I add any other key figure or if I change the property of 1ROWCOUNT as "always show" in query designer and execute, the field heading is displayed.
Please let me know if anyone has the solution for it...
Thanks & Regards,
ShreyasHi Keshu,
I have resolved the issue using your suggestion.
But, I have one query.
Shouldn't the heading be picked up automatically from the data element?
Thanks,
David. -
How to download header and field heading of ALV ??
how can we download header of the alv and the field heading .?
when we are downloading ALV report into XLS .
Is it possible or not .?
thanks in advance
Naval bhattHi Naval,
To download Data from ALV to XLS a button os toolbar is available see
I think it work for your work or you may use "GUI_Download "FM in your Program.
Souman -
Setting field header width in table control
I have created a table control by using the wizard and i am populating my internal table data in to this.
Here i have small issue.
There are two fields called recoverable, identifiable with char (1).
These two field headers are displayed as R, I on the table control.
Is there any way that i can adjust the field width to accomodate the header.
points will be awarded immediately.
ThanksIn SE51 (Screen Painter), select/click-on the field (not the column header).
Press F2 (to get the Properties window) and set the Visible Length to a larger number. Save and activate the screen. -
Contract custom fields header data is not getting Saved(SRM7.02)
Hi Experts,
I have created a custom tab on the Header screen of SRM contract and that tab has 10 custom fields..Also, meta data custom fields properly binded to the custom webdynpro screen..But the problem here is when the data is filled on the custom tab screen and press SAVE button, after reopening the contract the custom field values are getting disappered. Version SRM7.02
Thanks for quick response..
Thanks,
Krishna.Hi Experts,
Please reply
Thanks,
Krishna. -
FB01 - New Field - Header Document - copy FI_HEADER_SUB_1300IM
Hi,
We need to add a new field at first screen at FB01 transaction code, same like BKPF-REINDAT "Invoice Receipt Date" . We have created an APPEND at BKPF adding this new field BKPF-ZZFEC_REC_FAC.
We are using a copy of the BADI: FI_HEADER_SUB_1300IM and add this field at the subscreen SAPMF05A - 1300.
The field is not updated at the BKPF-ZZFEC_REC_FAC when we save the FI document.
We made this entry at
module d1300_pai input.
perform put_value.
endmodule.
form put_value .
* import header data from main screen
call method exit->get_data_from_screen_pai
exporting
flt_val = 'ES'
importing
ex_bkpf = g_bkpf.
* set reference fields
g_bkpf-xref1_hd = bkpf-xref1_hd.
*test to move to the XREF2_HD and works at this field
write bkpf-zzfec_rec_fac to g_bkpf-xref2_hd.
* Is not working.. ¿?
g_bkpf-zzfec_rec_fac = bkpf-zzfec_rec_fac.
* put data to main screen
call method exit->put_data_to_screen_pai
exporting
im_bkpf = g_bkpf
flt_val = 'ES'.
endform.
Following the program the value is lost...
Do we have to add the new field somewhere else? use a BTE or a substitution
thanks in advance.Hi
Have u seen the sample?
The PBO of the sample has this code:
IF exit IS INITIAL.
CALL METHOD cl_exithandler=>get_instance_for_subscreens
CHANGING
instance = exit
EXCEPTIONS
* NO_REFERENCE = 1
* NO_INTERFACE_REFERENCE = 2
* NO_EXIT_INTERFACE = 3
* DATA_INCONS_IN_EXIT_MANAGEM = 4
* CLASS_NOT_IMPLEMENT_INTERFACE = 5
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.
ENDIF.
CALL METHOD exit->get_data_from_screen_pbo
EXPORTING
FLT_VAL = 'DE'
IMPORTING
ex_bkpf = g_bkpf
ex_x_no_input = g_no_input.
loop at screen.
if g_no_input = 'X'.
screen-input = 0.
modify screen.
endif.
endloop.
The PAI:
call method exit->get_data_from_screen_pai
EXPORTING
FLT_VAL = 'DE'
importing
ex_bkpf = g_bkpf.
* set reference fields
g_bkpf-xref1_hd = bkpf-xref1_hd.
g_bkpf-xref2_hd = bkpf-xref2_hd.
* put data to main screen
call method exit->put_data_to_screen_pai
exporting
im_bkpf = g_bkpf
flt_val = 'DE'. -
WCTL Transaction - Add Custom Field Header level
Hi All,
Here at my client's place guys are doing PoC on WCM (PM being used for last couple of years) and the requirement is to have a custom field at Header level of WCTL (WC Application Change ) with F4 option.
I have created a custom field with z table for master data to it (will be used as check table for this field) and appended it to the WCAAP - WCM: Application using append structure option.
Now I need to add this field at the header level of the mentioned transaction. I searched throgh for any available exits, BADI's or enhancement spots with no success. Even Inforums i couldnt find any help and hence this message.
Will appreciate any inputs in this regard,
Thanks,
Lakshmi Narayana.Hi Narasimhan,
First of all thank you verymuch for the quick reply.
I tried to search for the BADI definition (BADI_WCM_WAPI_001) and Enhancement Spot (ES_WCM_BADI) (se18) with no success. We are using ECC6.0 with SAP_ABA patch level 10, EA-APPL (SAP Enterprise Extension PLM, SCM, Financials) at level 7.
Does this has any impact on why I couldnt find it or is there something that I am doing wrong... Please guide me...
Thank you once again for your time.
Rgds,
Lakshmi Narayana -
DATA:S_YEAR(4) TYPE C.
TYPES:BEGIN OF TY_YEAR,
YEAR TYPE GJAHR,
END OF TY_YEAR.
DATA: WA_YEAR TYPE TY_YEAR,
IT_YEAR TYPE STANDARD TABLE OF TY_YEAR.
DATA: BEGIN OF value_tab OCCURS 0,
name(29) type c,
END OF value_tab.
DATA :field_tab LIKE dfies OCCURS 0 WITH HEADER LINE.
DATA : return_tab LIKE ddshretval OCCURS 0 WITH HEADER LINE.
DATA: lt_return TYPE STANDARD TABLE OF ddshretval,
lw_return TYPE ddshretval.
SELECT-OPTIONS : S1_YEAR FOR S_YEAR NO INTERVALS NO-EXTENSION DEFAULT '2010'.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR S1_YEAR-LOW.
S_YEAR = SY-DATUM+0(4).
S_YEAR = S_YEAR - 50.
DO 100 TIMES.
S_YEAR = S_YEAR + 1.
WA_YEAR-YEAR = S_YEAR.
APPEND WA_YEAR TO IT_YEAR.
CLEAR WA_YEAR.
ENDDO.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'S1_YEAR'
value_org = 'S'
TABLES
value_tab = IT_YEAR
FIELD_TAB = FIELD_TAB
return_tab = lt_return.
IF sy-subrc NE 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
else.
READ TABLE lt_return INTO lw_return INDEX 1.
MOVE lw_return-fieldval TO S1_YEAR-LOW.
clear lw_return.
ENDIF.Hi athadu,
Try this code, i hope it will help you....
Selection Screen------------------------------------------------*
selection-screen begin of block b1 with frame title text-001.
selection-screen skip 1.
parameters : p_bsrno type zfi_collect-bank_srno obligatory.
selection-screen skip 1.
selection-screen end of block b1.
at selection-screen on value-request for p_vkbur.
perform fill_lgort1.
perform f4_lgort1.
if flag = 0 and p_vkbur <> space.
perform disable_input_fields.
endif.
*& Form FILL_LGORT1
form fill_lgort1 .
refresh git_lgort[].
select distinct avkorg avkbur b~bezei
into table git_lgort
from tvkbz as a inner join tvkbt as b
on avkbur = bvkbur
where a~vkorg = p_vkorg
and b~spras = 'EN'.
sort git_lgort by vkbur.
endform. " FILL_LGORT1
*& Form F4_LGORT1
form f4_lgort1 .
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'VKBUR'
dynpprog = 'ZRSD189A'
dynpnr = '1000'
dynprofield = 'P_VKBUR'
value_org = 'S'
display = 'F' "Override readiness for input
tables
value_tab = git_lgort[]
return_tab = t_return "Return value
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.
endform. " F4_LGORT1 -
Mandatory field - Header text and Reference field for company code
Hi
In transaction code FB60, I want to make header text and reference field mandatory at the company code level.
For one company code , the header text and the reference field should be made mandatory but for the other 8 company codes , those fields should not be mandatory.
if I make the fields mandatory via the document type , then it will be applicable for all the company codes using the document type.
thanks in advance
Kind regards
sap studentHi Chintan
I have written the validation rule and it is working fine.
Thanks
kind regards
sap student
Maybe you are looking for
-
Editing or Adding a Parameter in IView
Hello All, This is a modified version of the question that I had put up earlier. I thought probably should add more details to it. We have EP 6 with the latest support pack. We installed the business package 50.3.1 for Assets. One of the iView we wer
-
ITunes Web-Based or iTunes Match?
I'm sorry if this is not in the correct place. I searched for about an hour and did not find anything. I have a really old ipod classic that i'm wanting to replace. My main issue in deciding between itunes and something like Amazon, is while I'm an A
-
Could not create OneNote in a Doc library with OneNote Notebook document template
I use SharePoint 2013 and created a document library with Document Template as Microsoft OneNote 2010 Notebook. Sounds pretty basic...ah. When I try to create new OneNote Notebook from the library, I get this error "OneNote can not open the specified
-
Minor issues with CreditRating tutorial
Just in case someone else encounters these problems with the CreditRating tutorial in the Quick Start for BPEL: The Eclipse wizard doesn't seem to be able to add the home="${orabpelHome}" attribute to the bpelc task in the build.xml. In my case it's
-
How to check whether a file exist in the program folder or not?
Hi guys, how to check whether a file exist in the program folder or not? Let is say i recieve a file name from user then i want to know if the file is there not and act on that base. abdul