F4 functionality for a field in structure
dear all
my problem is i need to provide f4 help functionality for the field 'name' in structure 'cdir' is it possible. if possible please suggest me how to proceed.
thanx in advance
Hi,
If you want to provide F4 functionality on that field in your program then check this link
F4
But if u r thinking in standard structure then its of no use as structures dont hold any values.
Regards,
Amit
Reward all helpful replies.
Similar Messages
-
Assigning search help (F4 functionality ) for recipient field in IW32
Hi,
my requirement is to assign search help (F4 functionality) for recipient field in components tab of IW32. anybody help me to assign search help for it. same way i need to assign that in MIGO, MB21, MB1A goods recipient field.hi,
refer to the following link:
http://www.saptechies.com/how-to-add-f4-help-to-a-field-on-screen-module-pool/
i hope it helps
regards -
Java user-defined function for mapping a complex structure
All,
Hope one of you can help me with this. I have a structure with over 15 fields and would like to concatenate all the fields into one target field and while I do this, I need to ensure that each field is padded with blanks as defined the data type. Can one of tell me if this is possible with a java user-defined function and if so, what type of logic is needed.
Input_MT
Field_1 string len=10 "need"
Field_2 string len=6 "java"
Field_3 string len=7 "help"
Field_4 string len=8 "asap"
etc,
Output_MT
DataOut string "need java help asap "
(for some reason the exact spaces in between the words disappear in my Preview message)
I have several fields in the input mt and therefore I find graphical mapping using concatenate and my own user defined function padWithSpace too messy.
Thank you for you help.Hi,
If your final req is to write all these fields next each other in a file, you can configure this in receiver file adapter by specifying the fixed length for each field.
If you want the padded string as your MM o/p, you can create a simple user defined funtion with 15 fields as input and 15 constants for their lengths, and find out the length of the each string and pad it with required no of spaces.
int max_len = 10;
int actual_len;
actual_len = a.lengh();
for(int i=0; i < (max_len-actual_len; i++)
a = a.append(" ");
return a;
praveen -
Require user specific F4 functionality for a field in a program output
Dear all,
My requirement is i am using a field for ex: bukrs, name1 for an output. when iam using this two field in a program, if that program executes, i need F4 functionality for user specific. f4 functionality should show depends upon the name1.
In a template i have these two variables, when i give name1 as 'ABCD' and press f4 for the bukrs it should display only bukrs which are mapped to ABCD. Lets assume one table is there for name1 mapper to bukrs.
How it is possible. if so please let me know.
Regards
Arani BhaskarHello Arani,
I think solution to your problem lies in using MATCHCODE addition to parameters and select-options as well.
(This is from SAP F1-Help)
... MATCHCODE OBJECT search_help
*Effect*
This addition links the input field of the parameter to a search help search_help from the ABAP Dictionary. The name of the search help must be entered directly. For the input field of the parameter on the selection screen, the input help key is displayed. When the input help (F4) is requested, the user is displayed the hit list from the search help. When an entry is selected, the respective value is placed into the input field. If no search help for the specified name exists in the ABAP Dictionary, a message is displayed in the status line when the input help is requested.
The addition MATCHCODE OBJECT cannot be used together with the additions AS CHECKBOX or RADIOBUTTON.
*Note*
The predecessors of search helps in the ABAP Dictionary were socalled matchcode objects. This is why you have the name MATCHCODE OBJECT for this addition. Matchcode objects that have not yet been replaced by search helps continue to be supported by this addition.
*Example*
Linking the parameter p_carrid with a suitable search help. When you choose the input help on the selection screen, a list with the names of the airline carriers is displayed. If a name is selected, the corresponding abbreviation is placed in the input field.
PARAMETERS p_carrid TYPE s_carr_id
MATCHCODE OBJECT demo_f4_de.
Moreover, please read about using MATCHCODE, hope it helps you, Arani.
Thanks: Zahack -
REPORT_ATTRIBUTE_ERROR_MESSAGE functionality for Input Field & Drop down UI
Hi,
We have requirement to handle error messages. In a data input form, if we get multiple errors we are displaying all errors in a message area. When we click on error message, focus should go to the UI element which causes to the error.
We have used 'CALL METHOD lo_message_manager->report_attribute_error_message' by exporting the element and attribute name. This method works fine incase of Input Field type UI element. When we run the application on DISPLAY action errors are displaying for both fields 'INPUT FIELD' and 'DROPDOWNBYINDEX' . But we have URL on the error related to 'INPUT FIELD' and when we click on error message control/cursor going to the INPUT FIELD.
But we could not find same functionality incase of DropDownbyIndex UI Element.
Please help us to resolve the problem. Does SAP Web Dynpro ABAP provide this functionality?
Below attached written code for reference.
CASE lo_action->name.
WHEN 'DISPLAY'.
IF lv_num1 IS INITIAL.
report message
CALL METHOD lo_message_manager-report_attribute_error_message
EXPORTING
message_text = 'Please enter the value'
element = lo_el_numbers
attribute_name = `NUM1`
params =
msg_user_data =
is_permanent = ABAP_FALSE
scope_permanent_msg = CO_MSG_SCOPE_CTXT_ELEMENT
msg_index =
cancel_navigation =
is_validation_independent = ABAP_FALSE
ENDIF.
IF lv_age eq '999'.
report message
CALL METHOD lo_message_manager-report_attribute_error_message
EXPORTING
message_text = 'Please enter the age'
element = lo_el_personal_info
attribute_name = `AGE`
params =
msg_user_data =
is_permanent = ABAP_FALSE
scope_permanent_msg = CO_MSG_SCOPE_CTXT_ELEMENT
msg_index =
cancel_navigation =
is_validation_independent = ABAP_FALSE
ENDIF.
ENDCASE.
Thanks
VenkatHi venki,
The problem you have told that when you are displaying the error message for input box and drop down by idx using the report_attribute_error_message. Then you click on the error message raised by input box , the focus goes to the input box but the same thing will not happen with the dropdownbyidx.
I have also try the same this its not working for dropdownbyidx but it is working for dropdownbykey.
You can try this.
Regard
Manoj Kumar -
Implementing sort functionality for Z fields in inbox items
Hi all,
i have a requirement where i got to add a Z-field in the "Sort by" as well as "Then Sort by" dropdown in the inbox search. I have managed to add the item, nevertheless, i am unable to implement the sort functionality for the same.
Can someone help?
Is there anyways of making this simple?
Thanks in advance,
NishaHi Jason,
thank you very much with the note 1388298 our
Z-fields on the web-dynpro for "Item Basic Data" are visible now.
We have also Z-fields for "Account Assignment".
This fields are still not available.
Is it also possible to add these fields with component configuration?
I haven't found anything in the oss.
You will get 10 points because my original question has been answered.
Thanks in advance for your help!!
Kind Regards
Stefan -
Search Help functionality for Custom Field in CRM 6.0
Hi,
We have added custom field PRODUCT_ID into component BT120H_CPL. For this field, I need to provide search help in WebUI. Can you please give some suggestion on the same.
Regards,
Ramki.Hi Ram,
Here is the sample code.
Outbound plug:
Global attribute : GR_CITYCODE_F4 Instance Attribute Private Type Ref To IF_BSP_WD_POPUP
data declaration
DATA: LT_COL_DEF TYPE TABLEVIEWCONTROLTAB,
LS_COL_DEF TYPE LINE OF TABLEVIEWCONTROLTAB,
LV_REGION TYPE REGIO,
LV_COUNTRY TYPE LAND1,
LR_ENTITY_HEADER TYPE REF TO CL_CRM_BOL_ENTITY,
LR_ENTITY_ADDR TYPE REF TO CL_CRM_BOL_ENTITY.
TRY.
LR_ENTITY_HEADER ?= TYPED_CONTEXT->header->COLLECTION_WRAPPER->GET_CURRENT( ).
CATCH CX_SY_MOVE_CAST_ERROR.
ENDTRY.
CHECK LR_ENTITY_HEADER IS BOUND.
LR_ENTITY_ADDR ?= LR_ENTITY_HEADER->GET_RELATED_ENTITY( IV_RELATION_NAME = 'BuilStandardAddressRel' ).
CHECK LR_ENTITY_ADDR IS BOUND.
getting region and country
CALL METHOD LR_ENTITY_ADDR->GET_PROPERTY_AS_VALUE
EXPORTING
IV_ATTR_NAME = 'REGION'
IMPORTING
EV_RESULT = LV_REGION.
CALL METHOD LR_ENTITY_ADDR->GET_PROPERTY_AS_VALUE
EXPORTING
IV_ATTR_NAME = 'COUNTRY'
IMPORTING
EV_RESULT = LV_COUNTRY.
appending citycode and description to internal table
LS_COL_DEF-COLUMNNAME = 'ZZCITYCODE'.
LS_COL_DEF-TITLE = 'City Code'.
APPEND LS_COL_DEF TO LT_COL_DEF.
LS_COL_DEF-COLUMNNAME = 'TEXT'.
LS_COL_DEF-TITLE = 'Description'.
APPEND LS_COL_DEF TO LT_COL_DEF.
CLEAR: GT_CITYCODE[].
fill the internal table GT_CITYCODE whcih must appear in popup.
FREE GR_CITYCODE_F4.
GR_CITYCODE_F4 = COMP_CONTROLLER->WINDOW_MANAGER->CREATE_DECISION_POPUP( IV_TITLE = 'City Code'
IV_DESCRIPTION = 'City Code'
IV_VISIBLE_ROW_COUNT = 10
IV_DISPLAY_TABLE = GT_CITYCODE
IV_VISIBLE_COLUMNS = LT_COL_DEF ).
GR_CITYCODE_F4->SET_ON_CLOSE_EVENT( IV_EVENT_NAME = 'CITYCODE_F4_SELECTED'
IV_VIEW = ME ).
GR_CITYCODE_F4->OPEN( ).
on close event ****************************************************************
where you can set the value of the field *********************************
METHOD EH_ONCITYCODE_F4_SELECTED.
Added by wizard: Handler for event 'CITYCODE_F4_SELECTED'
data declaration
DATA: LR_OUTPUTNODE TYPE REF TO CL_BSPWDCMP_BSPWDCOMPONEN_CN01,
LR_ENTITY TYPE REF TO IF_BOL_BO_PROPERTY_ACCESS,
LR_HEADER TYPE REF TO ZL_BP_HEAD_ACCOUNTDETAILS_CN00,
LV_ROW_INDEX TYPE STRING,
LV_EVENT_NAME TYPE STRING,
LV_VALUE TYPE STRING,
LS_CITYCODE TYPE ZTB0000A31PL2T .
LR_OUTPUTNODE ?= GR_CITYCODE_F4->GET_CONTEXT_NODE( 'OUTPUTNODE' ).
LV_ROW_INDEX = LR_OUTPUTNODE->GET_SELECTEDROWINDEX( ).
LV_EVENT_NAME = LR_OUTPUTNODE->GET_EVENT_NAME( ).
GR_CITYCODE_F4->CLOSE( ).
IF LV_EVENT_NAME = 'OK'.
LR_ENTITY ?= ME->TYPED_CONTEXT->HEADER->COLLECTION_WRAPPER->GET_CURRENT( ).
READ TABLE GT_CITYCODE INTO LS_CITYCODE INDEX LV_ROW_INDEX.
LR_HEADER ?= ME->TYPED_CONTEXT->HEADER.
LR_HEADER->GS_CITYCODE_F4 = LS_CITYCODE.
LV_VALUE = LS_CITYCODE-ZZCITYCODE.
setting city code
LR_ENTITY->SET_PROPERTY_AS_STRING( IV_ATTR_NAME = 'ZZCITYCODE'
IV_VALUE = LV_VALUE ).
ENDIF.
ENDMETHOD.
Hope this helps.
Regards,
Ruby. -
Need user define function for the message mapping structure
Hi All
I am new to XI.I need the java code for Udf for the following structure.
i have two input and one out put as error.
order_nos----
user define function-------error message
order_details----
num of orders---- i.e. 10
order_details------ i.e. whole order records details
1.i have to compare the 1st input with 2nd one means if the ist input contain 10 means there are 10 orders in 2nd input.if not then i have to give error message .
2.then i have to check the fields in 2nd input has no null values.if no values the output will be error message.
Edited by: Rohit Kumar on Dec 18, 2008 4:43 PMHi Sudhir
thanks for your continues help.i need some help so that i can fulfill my requirmrnt
this is my message mapping xml.
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:methodCall_MT xmlns:ns0="http://www.dfdsf">
<num_orders>10</num_orders>
<test_mode />
- <order_x> ( which is order details)
<order_id>t78tyu8t</order_id>
<order_date />
<mfg_id />
<catalog_id />
<first_name />
<last_name />
<recipient />
<message />
<address1 />
<address2 />
<address3 />
<city />
<state />
<zip />
<country />
<country_code />
<phone />
<subtotal />
<tax />
<shipping />
<total />
<shopatron_total />
<fulfiller_total />
<shipment_id />
- <additional_info>
<in_store_pickup />
- <express_shipping>
<express_shipping_flag />
<express_shipping_text />
<express_shipping_arrival />
</express_shipping>
</additional_info>
- <discount>
<discount_description />
<discount_percentage />
<discount_total />
</discount>
<lang_id />
<currency_id />
<packing_list />
<num_items />
- <items>
<item_id />
<quantity />
<price />
<part_number />
<fulfiller_total />
<shopatron_total />
- <options>
<option_x />
</options>
</items>
</order_x>
</ns0:methodCall_MT>
this my mapping where under one element number elements are there.when i am excuting the code to check the null value its always giving the there is null val but i have filled evrything.its due to first its checking the order_x and which will be always null.uder this all data will be filled.please suggest what to change in the udf.the code given by u is working fine but its failing in this scenario because it getting the parent filed is null. -
F4 / Help Functionality for input field in custom java iView
Hi,
As we see many F4 help on each input field in a transaction, how can we mimic the same functionality in a Custom Java iView. For example, ME23N, you can search a PO based on some criteria, when i create a new custom java iview using BAPI_PO_DISPLAY, how can provide that F4 or help functionality to the Purchase Order field.
Your help is really appreciated.
Thanks,
VijayHi Vijay,
the F4 Help functionality is always of big concern when you're switching from a R/3 or ABAP-SAP GUI environment to a webfront end. First of all: the convinience you're used to of creating a seach help and adding it to your data fields is gone, i.e. the current development status in the portal/java/webdynpro implies that you have to do most of the work on your own. Simple value helps might not be a problem, but complex ones are (as the one you've described). Here is a link to a tutorial in Java-webdynpro, maybe it gives you an idea:
https://www.sdn.sap.com/sdn/developerareas/webdynpro.sdn?page=TutWD9_OVS.htm
Regards,
Ulli -
Need the opposite of the Mid function for String fields
My report has a field for last name and I only want the first 14 letters of each last name to show on the report. I figured out how to show the letters beyond 14 using the Mid function. Is there a function to show the first 14 (ie., the opposite of the Mid function)?
Hi Shannyn,
Use this formula:
Left(,14)
This will give you the first 14 letters of each last name field.
I hope this helps.
Regards,
Zack H. -
RfcSet.... function for RFC_BCD fields.
Hello:
I am using nwrfcsdk to call a SAP remote function, the IMPORT parameter of this function includes a DEC field which I defined as:
RFC_BCD maxNivAprob = 2;
in a C++ calling program.
There is no an RfcSetBdc function so, which RfcSetu2026 should I use to send this value to the Remote Function? Do you have an example?
Regards.I solved my problem and I share it:
In the ABAP remote function I defined an IMPORT field parameter as:
VALUE(I_MAXNIV_APROB) LIKE HRRHAS-TDEPTH
(HRRHAS-TDEPTH is defined as DEC with length of 5).
Using the nwrfcsdk and C++ language, I defined that field in the next way:
SAP_UC * maxNivAprob = "00005"; // or SAP_UC * maxNivAprob = " 5"; // four spaces before 5
I set the parameter in the next way:
RfcSetNum(fnh, cU("I_MAXNIV_APROB"), maxNivAprob, strlenU(maxNivAprob), &errorInfo);
And it worked.
Regards.
Edited by: Eduardo Gironas on Aug 7, 2009 9:20 PM -
PCUI 4.0, Search Help Required for New field
Hi everyone
I am working in CRM 4.0 Sales Order application
We created a new field in CRM sales Order in Header level in SAP GUI through EEWB.
The search help for the new field is working fine in SAP GUI. We want to add the same field with F4 help functionaliity in PCUI as well.
The field has been added in structure CRMT_BSP_SLS_OD1_General. It also shows domain value for the field however Origin of input field ie empty
The field has been added in PCUI and is successfully showing data inputted in SAPGUI
However we need search help functionality for the field
i tried these two steps
1) i checked on domain value checkbox and changed the field from input to dropdown. However the dropdown is empty in PCUI. Whenever i check box domain values for some field then all the possible values in SPA GUI are displayed in PCUI, however this is not working here.
2) I put Value_table in F4 of the field
This is also throwing up empty values
Am i missing something in this case
Please let me know how to go about it
TIA
AsadHi Frederic
Thanks for your response
I am not sure what is meant by regenerating the field group in this case
I added the entries for my view in the field group and generated the layout of the field group (If this is what you mean)
The field is working fine. I am able to save values to the field and able to see values saved in GUI.
I haven't linked search help of the field in PCUI
I am not sure how to go about it.
I used the data element in the structure for the field.
The data element has Domain entry in <b>Entry Help/Check</b> of the structure
If i check the Domain Value checkbox in my field group then the domain values should be available in dropdown if the field is dropdown
However i am not able to see the possible values of the field (It is present in SAP GUI)
Does something else needs to be done in this case
TIA
Asad -
Selection screen control for a field in the report painter report
Hi,
Could you please advice me as to how we can add exclude selection functionality for a field on the selection screen of a report made by trhough report painter report.
Your prompt reply will be really appreciated.
Thanks,
Ramesh.look at this code and try
select-options : S_NODEID for ZNODETAB-ZNODEID.
at selection-screen on value-request for s_nodeid-low
perform f4_nodeid using 'S_NODEID-LOW'.
at selection-screen on value-request for s_nodeid-low
perform f4_nodeid using 'S_NODEID-HIGH'.
end-of-selection.
FORM f4_nodeid USING p_field.
declare it_node.
select znodeid from ZNODETAB into table it_node.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'ZNODEID'
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = p_field
value = space
value_org = 'S'
display = 'F'
TABLES
value_tab = it_node
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
endform -
Parameter Binding for BLOB field
I would like to find out how I can bind a BLOB field as one of the parameters to an INSERT statement to be passed to an ExecuteSQL call?
I was trying to use the Add function for BLOB field of the OParameterCollection object, but was having problem instantiating the BLOB object itself - getting object not opened error!?!
Would appreciate any advice!
Thanks,
John.Hi Karuna,
Breakpoint's answer is a bit misleading - there's no need for the parameter ID to appear in SE11. All you need is logic on your screen to utilize the parameter ID. You have two options for that: Either use the field settings in the screen painter (i.e. check the SET field and GET field checkboxes, at least Get field would be required - just seeing the parameter ID is not sufficient) or add some coding to your PBO coding to retrieve upon startup of the screen the value via GET PARAMETER statement (requiring also possibly a SET PARAMETER in the PAI for the field if you want to set it).
Most likely the first approach is what you want. The second is more flexible, but also needs more care to avoid unexpected behavior...
Cheers, harald -
SAP SCRIPT function for converting to lowercase or uppercase
Hello,
Does anyone know an built-in function for printing fields in lower or uppercase with SAP SCRIPT
Regardshi,
Check this way..
DATA: DELIM(40) TYPE C VALUE ' '.
DATA: CON_ANREX LIKE Q0002-ANREX.
CALL FUNCTION 'STRING_UPPER_LOWER_CASE'
EXPORTING
DELIMITER = DELIM
STRING1 = RECORD-ANREX
IMPORTING
STRING = CON_ANREX
EXCEPTIONS
NOT_VALID = 1
TOO_LONG = 2
TOO_SMALL = 3.
IF SY-SUBRC EQ 0.
RECORD-ANREX = CON_ANREX.
ENDIF.
Regards,
Santosh
Maybe you are looking for
-
New iPhone 5s backed up from old phone cant get KEYNOTE etc
I bought the new iphone 5s and backed it up from my old phone. I went to itunes excited about getting the free apps that they were offering such as keynote and pages etc. Its not recognizing that I purchased the new phone. Help... what do I need to d
-
any precautions before updating iOS 5.1 on ipad and iphone?
-
Swap airport extreme with time capsule
My family has an Airport Extreme (2 years old) with two additional Airport Expresses for Airplaying music from iPad, iPhones and iPod Touches. Just purchased a 2 TB Time Capsule for backup purposes of the MacBook Pro. Would like to exchange the Air
-
Database limits of oracle lite
Could anyone please tell me the database limits(eg table size,number of columns etc) of oracle8i lite Thanks, Debu
-
Imovie update for apple tv 1080p
Any idea when?