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

dictionary

Former Member
0 Likes
548

what is diffrence between select single and select single * ?

4 REPLIES 4
Read only

Former Member
0 Likes
523

Vijay,

[Please|;

[Search|;

[In SDN|;

Read only

Former Member
0 Likes
523

SELECT SINGLE field1 field2 FROM MARA WHERE MATNR = v_matnr.

will bring only field1 and field2

SELECT SINGLE * FROM MARA WHERE MATNR = v_matnr.

will bring all the fields

Read only

former_member190578
Participant
0 Likes
523

select single * : all field will selected from the table into a structure or table

select single ???: you have to decide what field do you want, and in what field or structure or table the contents will fill.

example:

ST_MARA type MARA. " only a structure like DDIC-table MARA

select single * from MARA where MATNR eq P_MATNR into ST_MARA.

All data/fields for this material are move into the structure ST_MARA.

select single werks from MARA where MATNR eq P_MATNR into ST_MARA_WERKS.

ONLY the data for the field WERKS is selected into the field WERKS from the structure ST_MARA

For more than one field:

select single WERKS MTART from MARA where MATNR eq P_MATNR into corresponding fields of ST_MARA.... (or into (ST_MARA-WERS, ST_MARA_MTART)....

Read only

Former Member
0 Likes
523

Vijay,

Have you you look at link which i gave you Above?

behind please search in SDN?

Amit.