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

partner function

Former Member
0 Likes
556

hi,

may i know how should i put the select-options for above in selection screen.

table is vbpa and i would like to have :

sold to (AG) ; bill to (RE) ; ship to (WE)

thanks

5 REPLIES 5
Read only

Former Member
0 Likes
519

Hi,

Check this code.


DATA: V_PARVW TYPE VBPA-PARVW.
SELECT-OPTIONS SO_PARVW FOR V_PARVW.

INITIALIZATION.
* For initializing the values in the select-options..

SO_PARVW-SIGN = 'I'.
SO_PARVW-OPTION = 'EQ'.
SO_PARVW-LOW = 'AG'.  " Sold-to
APPEND SO_PARVW.

SO_PARVW-LOW = 'RE'.  " Bill-to
APPEND SO_PARVW.

SO_PARVW-LOW = 'WE'.  " Ship-to
APPEND SO_PARVW.

Thanks,

Naren

Read only

Former Member
0 Likes
519

hi

good

if you know that you have to put select-options than you can put them as per your reququirement,

1- Sold to Party

2-Bill to Party

3-Ship to Party

go through this link to know the details about the select-options

http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/select_o.htm

thanks

mrutyun^

Read only

Former Member
0 Likes
519

Hi,

tables: vbpa.

select-options: s_parvw for vbpa-parvw.

initialization.

s_parvw-sign = 'I'.

s_parvw-option = 'EQ'.

s_parvw-low = 'AG'.

append s_parvw. clear s_parvw.

s_parvw-sign = 'I'.

s_parvw-option = 'EQ'.

s_parvw-low = 'RE'.

append s_parvw. clear s_parvw.

s_parvw-sign = 'I'.

s_parvw-option = 'EQ'.

s_parvw-low = 'WE'.

append s_parvw. clear s_parvw.

regards,

donepudi

Read only

0 Likes
519

hi,

i need to have 3 separate select-options for each of the partner function. the select option is customer number field for user to input.

i do not think the reply can work.

please advice.

thanks

Read only

Former Member
0 Likes
519

hi eliana,

try this,

initilization.

s_soldto-low = 'AG'.

append s_soldto.

s_billto-low = 'RE'.

append s_billto.

s_shipto-low = 'WE'.

append s_shipto.

then u can get the default values for your three slect-options at the lower level.

regards,

seshu.