Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

dropdown list not reflected

Former Member
0 Likes
1,289

I've to create a number of dropdown list for different fields like zclass,zpricing,zbid_type. Although Iu2019ve created drop down list for each field using Value-range field, itu2019s not reflected only for ZCLASS field as well as Competitive bid of Zbidtype.I am not getting why itu2019s not reflected.

I've to create a number of dropdown list for different fields like zclass,zpricing,zbid_type. Although Iu2019ve created drop down list for each field using Value-range field, itu2019s not reflected only for ZCLASS field as well as Competitive bid of Zbidtype.I am not getting why itu2019s not reflected.

6 REPLIES 6
Read only

Former Member
0 Likes
1,078

hi guru,

please go through this example,

types: begin of t_ekko,

ebeln type ekko-ebeln,

end of t_ekko.

data: it_ekko TYPE STANDARD TABLE OF t_ekko,

wa_ekko like line of it_ekko.

TYPE-POOLS: VRM.

DATA: NAME TYPE VRM_ID,

LIST TYPE VRM_VALUES,

VALUE LIKE LINE OF LIST.

PARAMETERS: P_PARM(10) AS LISTBOX VISIBLE LENGTH 10.

*********************************************************

*AT SELECTION-SCREEN OUTPUT.

AT SELECTION-SCREEN OUTPUT.

SELECT ebeln

up to 10 rows

from ekko

into table it_ekko.

loop at it_ekko into wa_ekko.

VALUE-KEY = wa_ekko-ebeln.

VALUE-TEXT = wa_ekko-ebeln.

APPEND VALUE TO LIST.

endloop.

NAME = 'P_PARM'.

CALL FUNCTION 'VRM_SET_VALUES'

EXPORTING

ID = NAME

VALUES = LIST.

********************************************************

*START-OF-SELECTION.

START-OF-SELECTION.

WRITE: / 'SELECTED VALUE KEY:', P_PARM.

thanks & regards,

anji.

Read only

0 Likes
1,078

Actually I am doing it in SRM server, I have to do only some configurations in SPRO and coding to be done only for zbid_type where i'll have 2 values "Single Source" & "Competitive Bid". If Single Source is selected ,another field is displayed(Compliant ) with a Yes/No drop down. If "No" is selected , 'reason ' field is displayed as a drop down with 4 options such as:

1.Work started

2.Verbal commitment made to vendor

3.Insufficient time to conduct competitive sourcing process

4.other

Please help me.

Read only

Former Member
0 Likes
1,078

@Davulluria

Actually the sample code given by u is showing some syntax error like " No component exists with the name EBELN .

Read only

Former Member
0 Likes
1,078

CALL FUNCTION 'BBP_PD_PO_GETDETAIL'

EXPORTING

username = sy-uname

tables

ACTIVITYGROUPS = gt_activitygroups

return = gt_return . .

loop at gt_activitygroups into gs_activitygroups.

if gs_activitygroups-AGR_TEXT eq 'REQUISITIONERS' and CS_METADATA-ENABLED = 'Single Source'.

CS_METADATA-ENABLED = 'Yes/No'.

  • CS_METADATA-ENABLED = ABAP_TRUE.

  • CS_METADATA-ENABLED = 'Single Source'.

ELSE.

  • CS_METADATA-ENABLED = ABAP_FALSE.

CS_METADATA-ENABLED = 'Competitive Bid' .

I need to mention 4 options here only if No is selected. suppose options are a,b,c,d. Please help me what to write here.

ENDIF.

  • if CS_METADATA-ENABLED = COMPETITIVE_BID.

endloop.

ENDIF.

Read only

Former Member
0 Likes
1,078

The following error comes when i try to execute in srm portal--

Error application is coming up.

20110603

NAYAKN

030208

sap1020t

http://sap1020t.na.ngrid.net:8000/sap/bc/webdynpro/sapsrm/wda_l_fpm_oif/

CALL_FUNCTION_PARM_UNKNOWN

Function parameter "USERNAME" is unknown.

Method: DISPLAY_FIELDS of program ZCL_PDO_DYN_MDF_HD_PTP========CP

Method: /SAPSRM/IF_PDO_META_CONF_BO~GET_BO_HDR_FIELD_METADATA of program /SAPSRM/CL_PDO_META_CONF_PROV=CP

Method: /SAPSRM/IF_PDO_META_CONSUMER~GET_FIELD_METADATA of program /SAPSRM/CL_PDO_META_BO_PO=====CP

Method: /SAPSRM/IF_PDO_META_CONSUMER~GET_FIELD_METADATA of program /SAPSRM/CL_PDO_META_BO_PO_ADV=CP

Method: /SAPSRM/IF_PDO_META_CONSUMER~GET_FIELD_METADATA of program /SAPSRM/CL_PDO_META_HANDLER===CP

Method: UPDATE_META_DATA_ELEMENT of program /SAPSRM/CL_CH_WD_MAP_META_HDLRCP

Method: UPDATE_META_DATA of program /SAPSRM/CL_CH_WD_MAP_META_HDLRCP

Method: /SAPSRM/IF_CLL_MAPPER~REFRESH of program /SAPSRM/CL_CH_WD_DODM_PO_H_BD=CP

Method: WDDOMODIFYVIEW of program /1BCWDY/0MGZK6AUP9R6BBXI0MPE==CP

Method: IF_WDR_VIEW_DELEGATE~WD_DO_MODIFY_VIEW of program /1BCWDY/0MGZK6AUP9R6BBXI0MPE==CP

http://sap1020t.na.ngrid.net:8000/sap/bc/webdynpro/sapsrm/wda_l_fpm_oif/

Function parameter "USERNAME" is unknown.

Please tell me what 2 do ?

Read only

0 Likes
1,078

hi,

you need to enhance the WD component to display the dropdown list.

check this [link|]

regards.