cancel
Showing results for 
Search instead for 
Did you mean: 

Fetch vbeln parameter from VL02,.VL71

Former Member
0 Kudos

Dear experts,

There is a standard smartform of delivery note that works

both with VL02n as well as VL71.

I have replaced this smartform with my newly developed smartform.In order to fetch the input parameter i am using

get parameter id

Here there is a restriction.Though VL02n gives correct output,

VL71 also give correct output provided delivery no is given in text box.

But when we are taking multiple printouts or single printout

by selecting checkboxes in VL71 then i get blank delivery note.

I used debugger but could not find the chosen list in sap memory area as variable anywhere.

My idea is to pick from NAST table in a way concurrent users should be able to do.Anybody can help me or tell me a way

out ?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi friend,

I have the same problem as what u had faced.

This problem can be only solved by SD consultants.

They will do some config in SPRO to make sure the VL71 is coming perfectly.

Just let me know if you need more guide.

Thank you.

mrsara27.......

Former Member
0 Kudos

Yea, actually not clear to me how through SPRO

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Aditya,

If You want all selected deliveriee, u can take those from stack.

in your driver programm.

Put break-point on your driver programm . While dubugging click on standard tab which is after Desktop3 tab.

You will find the stack.Click on programm SAPLKKBL.

You can see T_OUTTAB now.

try code to get T_OUTTAB.

If sy-tcode = 'vl71'

DATA: ch(20) TYPE c VALUE 'SAPLKKBL(T_OUTTAB)'.

FIELD-SYMBOLS : <temp> TYPE ANY.

ASSIGN (ch) TO <temp>.

endif.

T_OUTTAB is internal table contains all the data.

You can check in debugging.

Take those entries having SELFL = 'X'.

You can get all the deliveris in T_OUTTAB-VBEKN.

Former Member
0 Kudos

Dear ,

Thats a very helpful finding but retrieving the data from this itab

.Is it possible ?

Former Member
0 Kudos

Hello Aditya,

Please try it yaar. I have done one sample program to fetch the internal table from stack. Check it out.I have seen the internal table IT_output in stack while debugging mode.

Please note that instead of 'SAPLKKBL(T_OUTTAB)' in previous answer write '(SAPLKKBL)T_OUTTAB' .

*Check this example

Report Ztemp.

data : vbak type standard table of vbak.

select * from vbak into table vbak up to 10 rows.

perform stack in program temp1.

.........................................

Report Ztemp2.

form stack.

data str(20) type c value '(ZTEMP)VBAK'.

field-symbols <field> type any.

assign (str) to <field>.

*check values of field.

*Check stack in debugging mode.

endform.

Edited by: Anil Mane on Aug 7, 2008 2:23 PM

Former Member
0 Kudos

But type c never goes in corresponding fields of internal table.

Former Member
0 Kudos

Hello,

Just check it yaar.

I will tell you how it will work.

1. DATA: ch(20) TYPE c VALUE '(SAPLKKBL)T_OUTTAB'.

Ch will be having value '(SAPLKKBL)T_OUTTAB'.

2. FIELD-SYMBOLS : <temp> TYPE ANY.

<temp> is not having any value now.

3.ASSIGN (ch) TO <temp>.

Third statement assignes the value of T_OUTTAB to <temp> which is from program SAPLKKBL.

So now <temp> is internal table of type T_OUTTAB and it is similar to T_OUTTAB.

All values of T_OUTTAB are copied to <temp> now.

This is possible due to characteristics of field-symbols.

Just try it..............................

All the best..