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

status message looping

Former Member
0 Likes
612

Hey i have fields in table control

custno,custname,matno,matname,itemno,itemname,status.

IN PBO

I have checked condition whether status = ERROR,

if so it will highlight the record line.

IN PAI.

I used

LOOP at itab.

FIELD CUSTNO module custcheck.

FIELD MATNO module matnocheck.

FIELD ITEMNO module ITEMcheck.

...........

ENDLOOP.

my requirement.

Initially i have error status record hightliged using (LOOP AT SCREEN..INSTENSIFIED) in tablecontrol saying that "change material no." in STATUS FIeld.

but if user changes custno or item no, the corresponding check has to be checked and if error at STATUS field,then same highlight in records should appear with message display as "Material not found' or 'Item not found' at table control.

Again if he enters correct input at material no or item no, Normally it should say 'pls change material no' in status

as this is the first error appears.

how to do this..

ambichan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
571

CHAIN.

FIELD CUSTNO.

FIELD MATNO.

FIELD ITEMNO.

MODULE CHECK ON CHAIN-REQUEST.

ENDCHAIN.

in MODULE CHECK please do ur check one by one as u did in

module custcheck,module matnocheck,module ITEMcheck.

if your through error message inside this then the message diplayed first will get diplayed in status.

regds

gv

5 REPLIES 5
Read only

Former Member
0 Likes
572

CHAIN.

FIELD CUSTNO.

FIELD MATNO.

FIELD ITEMNO.

MODULE CHECK ON CHAIN-REQUEST.

ENDCHAIN.

in MODULE CHECK please do ur check one by one as u did in

module custcheck,module matnocheck,module ITEMcheck.

if your through error message inside this then the message diplayed first will get diplayed in status.

regds

gv

Read only

0 Likes
571

hey venkat.

Your reply worked out for me.

Thanks a lot..i am back from this headache.

you people are like doctors for us(we are really patients) for consultantion.really i can see big competitions in replying the messages in this forum..

Thanks a lot from my side. Anyway i will close the thread

before that i thaught of asking two question here..can i?

1-After modify <tablecontrol>,

Message S001.

if i use

Message type 'S', i can see error text displayed

in STATUS field at table control also.

if we use Messate type E or W.

STATUS field does not update error value, but compels the user to enter the missed data.

Is it possible that in E or W message type. STATUS field

also get updated simultaneously?

2-Next question is, i am using STATUS field passing text error(as constant), now i want to retrieve from message class and assign it to STATUS Field..

How to retrieve message class and assign with LTAB-STATUS.?

i will surely close this thread rewarding points..

thanks.

Ambichan.

Read only

0 Likes
571

B4 displaying error message u update the table control itab with status field

modify <table control itab > tranporting status index <table control>-currentline

then

message e...

2nd question

message exxx into LTAB-STATUS.

" this will write the message text into LTAB-STATUS & will not display message in status bar.

then modify LTAB.

regds

gv

Read only

0 Likes
571

1) The type message E and W stop the programm at the point where you call them, so if you want to update something you have to do it before, in the same module (PAI) where you check fields value.

CHAIN.

FIELD FIELD-1,

FIELD-2,

FIELD-3,

....... MODULE CHECK.

ENDCHAIN.

MODULE CHECK.

IF FIELD = 'ERROR'.

STATUS = ERROR.

MESSAGE E.....

ENDIF.

ENDMODULE.

2) You should know class and number message (you call it in your programm), so you can retrieve text message by fm WRITE_MESSAGE

Read only

0 Likes
571

Hey venkat,

Thanks for your reply.

I have done

MODIFY MYTAB FROM LTAB index ZTABCTL_CURRENTLINE

transporting KBN STATUS.

and then.

MESSAGE E010.

But what happend is..i cant see status updated in tabcontrol.but if i use MESSAGE S010 Status gets updated

in table control.

I want to do below two things.

1.I want to update status in table control before display error.

2.While displaying the E010,cursor should place at

field3.

if i use SET CURSOR FIELD 'LTAB-KUNNR' before message statement also not working..

what could be reason?

just thinkng...

ambichan.