Skip to Content
author's profile photo Former Member
Former Member

FOX code question

Hi

I have quick question about VARV, VARC and VARI statements in FOX code.

I have characteristics called PPN and it has three counding objects OBJ1, OBJ2 and OBJ3.

Now I have created a exit variable for PPN and that variable is multiple selection that gives me multiple values. Variable works OK.

I wish to use these values into the fox code so I am written following code to read each value .Name of the variable is ZCL_PN. For some reason it doesnot work

Can someone help to identify what is the issue?

Thanks

DATA PPN TYPE ZFCSTPPN.

DATA PPNVAR TYPE ZFCSTPPN.

DATA TOTALCOUNT TYPE F.

DATA COUNT TYPE F.

PPN = VARV(ZCL_PN).

TOTALCOUNT= VARC(ZCL_PN).

COUNT = 1.

DO .

IF COUNT < TOTALCOUNT.

PPNVAR = VARI( ZCL_PN, COUNT ).

FOREACH SORG,SCHN,PPN.

***LOGIC HERE

ENDFOR.

COUNT = COUNT + 1.

ENDIF.

ENDDO.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 02, 2007 at 04:24 PM

    Hi Al Gon,

    this is the wrong forum. Please post your question here:

    Business Planning

    Best Regards,

    Marcel

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.