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

PARARMETER Statement

Former Member
0 Likes
772

Hi All

I am new to ABAP. I went on the course BC400 in December but have only just started working with ABAP and I am trying remember what I learnt.

I thoughht I would go back to the course notes and try a few things out. The dev system already has the spflight tables installed so I tried out a program that teaches the use of the PARAMETERS statement.

I have the following statements

DATA wa_flight TYPE SFLIGHT.

DATA wa_connid TYPE SFLIGHT-connid.

DATA wa_carrid TYPE SFLIGHT-carrid.

Parameter pa_car LIKE wa_flight-connid.

Parameter pc LIKE wa_flight-carrid.

When I run the program the first parameter has a picklist associated with it that has 4 fields (ID, No., Depart city and arrival city)

The second parameter has no values for the picklist.

Can someone tell me where the picklist for the first parameter is defined, ie where does it come from. Is it a by-product of the PARAMETERS statement ? Also why is there no values for the second parameter even though they are coming from the same table.

Thanx in advance from a newcomer.

Asif

1 ACCEPTED SOLUTION
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
737

Hi,

THis picklist is called Value help, that comes from various sources as follows

1) From a search help ( Which is based on a database table) So values come from a table in this case.

2) Domain fixed values you can give some fixed values do the domain of the data element of the Table field.

3) The values can come from Check table if you have a foriegn key assignment for that table field.

Check the link

http://help.sap.com/saphelp_47x200/helpdata/en/9f/dbad1135c111d1829f0000e829fbfe/content.htm

Regards,

Sesh

Message was edited by:

Seshatalpasai Madala

6 REPLIES 6
Read only

Former Member
0 Likes
737

Hi,

The search help is attached to the table and the values for the first parameter come from there. The values for second parametr will be filled based on what value you choose for first parameter. Try choosing LH or AA for carrid and connid value help will be populated. You can then choose a value for connid.

Regards,

Nithya

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
738

Hi,

THis picklist is called Value help, that comes from various sources as follows

1) From a search help ( Which is based on a database table) So values come from a table in this case.

2) Domain fixed values you can give some fixed values do the domain of the data element of the Table field.

3) The values can come from Check table if you have a foriegn key assignment for that table field.

Check the link

http://help.sap.com/saphelp_47x200/helpdata/en/9f/dbad1135c111d1829f0000e829fbfe/content.htm

Regards,

Sesh

Message was edited by:

Seshatalpasai Madala

Read only

Former Member
0 Likes
737

HI Asif,

Check the f1 help and goto the technical attributes. Check out what is the data element . In the domain of that element there would be some fix values present,

or there will be a value table defined in the domain.

Those values are coming from the value table 'SPFLI' which is defined in domain.

Pls reward points if this ans. is useful.

Thanks and Regards,

Saurabh

Read only

Former Member
0 Likes
737

Hi Asif,

THE search help is allocated with fields n whenever u define parameters using the like statement it will get attached with that parameter .

There is a option for this at the time of table creation..

The other parameter ur using may not have search help assigned to it thats why..

Hope it will help u ...

Read only

Former Member
0 Likes
737

Hi All

Thanx for your replies. I think the reason for the picklist is that the check table foor connid has values in it while there are no records in the carrid check table.

Saurab, I cant find technical attributes, do you mean Technical Settings ?

Regards

Asif

Read only

0 Likes
737

Hi,

Yes you can see the techical settings from the F1 help that you get for the field, form there you can know from which table field this screen field has been created, what is the data element, what search help is there etc, basically your trigger point should be F1 help and then technical settings.

Regards,

Sesh