03-03-2011 4:09 AM
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
03-03-2011 8:47 PM
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
03-03-2011 8:47 PM
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
03-04-2011 5:30 AM
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
03-04-2011 11:34 AM
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