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

To add fields to std script form

Former Member
0 Likes
540

HI Friends,

Using ITCSy structure , when i try to add fields its not picking up the data .

please can any body help in this ..

if any body have any sample program please send it to me.

Here my requirement is to add two new fields (bkpf-bktxt,bseg-sgtxt) in main window of script.

im declaring my perform like this:

perform <formname> in program <prog name>

using &bsik-blnr&

changing &v_y&.

my report form look like this:

&----


*& Report ZFI_VENDOR

*&

&----


*&

*&

&----


REPORT ZFI_VENDOR.

TABLES : bsik,bkpf.

data:v_y type bkpf-bktxt,

  • v_z type bseg-sgtxt,

x(20) type c .

Form Z_HEADER tables INPUT STRUCTURE ITCSY

tables OUTPUT STRUCTURE ITCSY .

break-point.

CLEAR : v_y,

x.

loop at input WHERE NAME = 'BELNR'.

x = INPUT-VALUE .

select single bktxt from bkpf into v_y where belnr = x.

  • select single sgtxt from bseg into v_z where belnr = x.

endloop .

output-name = 'bktxt'.

output-value = v_y.

append output.

*output-name = 'sgtxt'.

*

*

*output-value = v_z.

*

*

*

*append output.

please cany body can guide me in abvoe what is problem...

its very urgent.

Good solutions will get good reward points.

Regards,

Vamsi

4 REPLIES 4
Read only

Former Member
0 Likes
518

x = INPUT-VALUE .

before this statement u need to read the input table otherwise in debug u can check input-value will be null

Madhavi

Read only

0 Likes
518

Can u give clear idea with any example..

Read only

0 Likes
518
Read only

Former Member
0 Likes
518

HI ,

I dont have any sample code with me, but i can suggest you the tips.

1.In your code there was no END PERFORM statement, it should be there. It won't give any syntax error in the script. The control goes into the program once the control reached to END PERFORM in the script.

2.And do not append values to your output table, as your output table has the entries(If our perform statement contains 2 changing parameters then the output table has already 3 entries), you just modify the value in the output table.

3.And you said you want to add 2 new fields based on one field, then your perform statement should be 2 changing parameters and one using parameter.

4. Do not use small letters in the ' ' like (output-name = 'bktxt'), use always capital letters.

Rgds,

Bujji

Edited by: Bujji on Feb 5, 2008 12:42 PM