Application Development 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: 

Problem in creating dynamic select-options creating from ';' seperated file

Former Member
0 Kudos

Hi all,

My requriement is selection screen fields will come from a flat file like below(first row is field names and remaining r field values)

For example for VBAK table

VBELN;VKORG;VTWEG;SPART

3999202;B227;BD;XX

file can be vary(number of fields) and based on table .

Please let me know how can i convert this file in to the selection-screen fields and how can i pass these values in the select statement WHERE condition....

Thank you very much,

Krishna D

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

You can use the SPLIT command


SPLIT c AT del INTO c1 ... cn.

[http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb33f3358411d1829f0000e829fbfe/content.htm]

--

Raul Natu

3 REPLIES 3

Former Member
0 Kudos

Hi

You can use the SPLIT command


SPLIT c AT del INTO c1 ... cn.

[http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb33f3358411d1829f0000e829fbfe/content.htm]

--

Raul Natu

Former Member
0 Kudos

Hi,

First Split the Data using Field Symbold.Because you don't know how many fields are there in the text file.

Pass the values to the below Syntax

SELECTION-SCREEN DYNAMIC SELECTIONS FOR NODE|TABLE <node>.

declares a node <node> of a logical database for dynamic selections in the selection include.

You have an Example in the Below Link.

http://help.sap.com/SAPhelp_nw04/helpdata/en/67/93b80914a911d2953c0000e8353423/content.htm

Thanks,

Venkat.

Edited by: Venkatesh Kolluru on Mar 4, 2011 6:32 AM

Edited by: Venkatesh Kolluru on Mar 4, 2011 6:32 AM

kesavadas_thekkillath
Active Contributor
0 Kudos

Hi,

Hi,

Instead of creating the select-options in selection screen based on the flat file values,

You can create dynamic range variables inside your program which will act similarly as select options.

Check my code in this thread