cancel
Showing results for 
Search instead for 
Did you mean: 

reg.script

Former Member
0 Kudos

Hi Friends,

iam facing one proble in this program iam not gettting ekko data and ekko-ebeln value . so ,please correct the program and send it to me . reards are helpful answers.

Thanks& regards,

Narasimha Rao.

PROGRAM ZAN_GOODS_RECEIPT.

*----


TABLES DECLARATION.

tables : likp,lips,ekko,ekpo.

*----


FORM STRUCTURE DECLARATION.

form f_head tables in_tab structure itcsy

data:l_ebeln(10) type n.

data: begin of l_ekgrp occurs 0,

ekgrp type ekko-ekgrp,

end of l_ekgrp.

read table in_tab with key name = 'EKKO-EBELN'.

if sy-subrc = 0.

l_ebeln = in_tab-value.

select ekgrp

from ekko

into table l_ekgrp

where ebeln = l_ebeln.

endif.

read table out_tab with key name = 'EKGRP'.

if sy-subrc = 0.

out_tab-value = l_ekgrp.

modify out_tab index 1.

endif.

endform.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

form f_head tables in_tab structure itcsy

out_tab structure itcsy.

data:l_ebeln(10) type n.

data: begin of l_ekgrp occurs 0,

ekgrp type ekko-ekgrp,

end of l_ekgrp.

read table in_tab with key name = 'EKKO-EBELN'.

if sy-subrc = 0.

l_ebeln = in_tab-value.

select ekgrp

from ekko

into table l_ekgrp

where ebeln = l_ebeln.

endif.

read table out_tab with key name = 'EKGRP'.

if sy-subrc = 0.

out_tab-value = l_ekgrp.

modify out_tab index 1.

endif.

CHECk with THis.

If any doubts:REFER:

Regards,

Shiva

Answers (3)

Answers (3)

former_member188685
Active Contributor
0 Kudos

Why are you asking the same question again and again.....?

Can Any one Guess...? May be it is old post. I just found

this thread..

Edited by: Vijay Babu Dudla on Sep 25, 2008 5:44 AM

Former Member
0 Kudos

Hi,

did you call the form in the script as follows.

/: perform f_head tables in program ZAN_GOODS_RECEIPT

/: using &ekko-ebeln&

/: changing &ekgrp&

/: endperform.

Thanks,

NN.

Former Member
0 Kudos

Hi...

You have sent the form but how r u selecting in_tab and is there any data in in_tab.....

wht is the select query to select data in in_tab.

Regards,

sg