on 03-18-2008 5:09 AM
Hi,
now i am getting F4 help for 101 Movement type from the feild ZMEH-DOCNO. Now I want add some Movement types (103,104) to that excisting F4 help this movement types and data picking from Mseg
Please give me solution
Hi Santosh!
The names of the table / dataelement/Domain will not be of any help as these as Customer Development Objects (Objects Stating with "Z")
I require the entries in the table "ZMEH"
Go to SE11.
GIve the table name as ZMEH
Click on Display
Then go to the table entries and
Post the values u maintain there ...
Cheers
Kripa Rangachari.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
this are the values in zmeh
MANDT DOCYR DOCNO WERKS GMBLNR DELE_INDI BUDAT ITMCAT
520 0000 0000000000 00.00.0000
520 2007 7000000001 INDF 5000002555 30.09.2007 PO Based Items
520 2007 7000000002 INDF 5000002573 31.10.2007 PO Based Items
520 2007 7000000003 INDF 5000002561 05.11.2007 PO Based Items
520 2007 7000000004 5000002671 12.12.2007 RDN Item
520 2007 7000000005 5000002691 12.12.2007 Other Items
520 2007 7017000001 INEE 5000002616 04.12.2007 PO Based Items
520 2007 7700000001 INGQ 5000002672 04.12.2007 PO Based Items
520 2007 7700000002 INGQ 5000002577 04.12.2007 PO Based Items
520 2008 7000000001 INDF 04.02.2008 PO Based Items
I guess wither you must have the Fixed Values in the domain referring the data element or the value table ...
Can you post those details ?
Cheers
Kripa Rangachari.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
use the FM DD_DOMVALUES_GET to read all the possible value which are defined in the domain.
Now to this, add the required fields which needs to be added. display it using the FM 'F4IF_INT_TABLE_VALUE_REQUEST.
please find the sample code.
This method can be used when you want to display the additional fields only for a certain reports. if you want to display the additional values when ever F4 is click on that domain, then i would recomment to add the values to the domain in value range. if there is no value range defined, then add it in the value / check table.
DATA: lt_value TYPE STANDARD TABLE OF dd07v,
ls_value TYPE dd07v,
lt_new TYPE STANDARD TABLE OF seahlpres,
ls_new TYPE seahlpres,
lt_retval TYPE STANDARD TABLE OF ddshretval,
ls_retval TYPE ddshretval,
lt_field TYPE STANDARD TABLE OF dfies ,
ls_field TYPE dfies ,
c_x(1) TYPE c VALUE 'X'.
CLEAR ls_field.
ls_field-fieldname = 'DESGN'.
ls_field-intlen = 3.
ls_field-leng = 3.
ls_field-outputlen = 3.
ls_field-reptext = 'Designation'.
APPEND ls_field TO lt_field.
CLEAR ls_field.
ls_field-fieldname = 'TEXT'.
ls_field-intlen = 101.
ls_field-leng = 50.
ls_field-outputlen = 50.
ls_field-lowercase = 'X'.
ls_field-reptext = 'Description'.
APPEND ls_field TO lt_field.
* Get the desgnation domain value
CALL FUNCTION 'DD_DOMVALUES_GET'
EXPORTING
domname = 'ZDESN' "Domain Name
text = c_x
langu = sy-langu
TABLES
dd07v_tab = lt_value
EXCEPTIONS
wrong_textflag = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.
* Fill all the standard values
LOOP AT lt_value INTO ls_value.
MOVE ls_value-domvalue_l TO ls_new-string.
APPEND ls_new TO lt_new .
MOVE ls_value-ddtext TO ls_new-string.
APPEND ls_new TO lt_new.
CLEAR ls_new.
ENDLOOP.
* New shipment value
ls_new-string = 'SPM'.
APPEND ls_new TO lt_new .
ls_new-string = 'Senoir Project Manager'.
APPEND ls_new TO lt_new.
* F4 help hit list displaying
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'DESGN'
window_title = 'New Domain values'
TABLES
value_tab = lt_new
field_tab = lt_field
return_tab = lt_retval
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.
ELSE.
* Fill the selected value
CLEAR ls_retval.
READ TABLE lt_retval INTO ls_retval INDEX 1.
MOVE ls_retval-fieldval TO p_desn2.
ENDIF.
Reward points if useful.
Edited by: Niyaz Ahamed on Mar 18, 2008 11:21 AM
Hi Santosh!
How are you getting the F4 help for the movement type 101 from field "ZMEH-DOCNO" .... ?
Cheers
Kripa Rangachari.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.