Application Development 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:Β 

Perform in Script

Former Member
0 Kudos
141

Hi All,

I am using perform statement in script.

following is code.

I debug the program & check tha value of in_tab-name = it_mara-matnr, in_tab-value = ''.

Why it is taking it as blank?

πŸ˜• PERFORM GET_VAL IN PROGRAM ZGET_VAL

πŸ˜• USING &IT_MARA-MATNR&

πŸ˜• CHANGING &DESCR&

πŸ˜• ENDPERFORM

In my Program my code is :

REPORT zget_val .

TABLES makt.

DATA descr LIKE makt-maktx.

DATA it_makt LIKE makt OCCURS 0 WITH HEADER LINE.

FORM get_val TABLES in_tab STRUCTURE itcsy

out_tab STRUCTURE itcsy.

READ TABLE in_tab INDEX 1.

IF NOT in_tab-value IS INITIAL.

SELECT * FROM makt INTO TABLE it_makt

WHERE matnr = in_tab-value.

ENDIF.

DATA descr(40).

LOOP AT it_makt.

descr = it_makt-maktx.

out_tab-name = 'maktx'.

out_tab-value = descr.

APPEND out_tab.

ENDLOOP.

ENDFORM.

7 REPLIES 7

Former Member
0 Kudos
66

Hi Diliip,

Didn't you solve this?

Brad

0 Kudos
66

Dear Brad,

Again i m facing the sdame prob. the value is comming blank.

Regards,

Dilip

0 Kudos
66

Hi Dilip,

How is it that it was working before and not now?

The coding you had within the external perform really needed some cleaning up (from when you last posted it). Perhaps this needs some work?

Brad

0 Kudos
66

Yes Brad,

There was problem in my main program.

I corrected it , thanx now i also tested it properly.

Regards,

Dilip

0 Kudos
66

So is everything working now?

Brad

0 Kudos
66

Dear Brad,

My script is properly working. Also testing is colplete by users.

Thanks for your prompt reply.

Regards,

Dilip

0 Kudos
66

No problems Dilip,

Can you please close the thread.

Cheers,

Brad