‎2007 May 14 4:19 PM
Hi, All:
I came across a issue on dialog programming recently.
on the screen, there is one Input/Output field and another table control.
when I do validation on Input/Output field as the following:
IF field1 IS INITIAL.
MESSAGE E001(zmsg) WITH text-007.
ENDIF.
If It failed to pass validation. The table control automatically diable (table control changed to gray, User can't input). Is there any way, no matter Input/Output field validate successfully or not, keep table control enable (user can Input data any time). Thanks in advance.
‎2007 May 14 5:46 PM
Hi,
Press enter to continue after the warning message appears..
Thanks,
Naren
‎2007 May 14 4:22 PM
Hi yunfa,
1. This happens bcos the message is of type E (Error).
2. due to this reason, we have to use
CHAIN-ENDCHAIN concept. (please see f1 help on this syntax)
3. That will keep the fields open for input, when E message is issued from the module mentinoed inside chain-endchain.
regards,
amit m.
‎2007 May 14 5:24 PM
Hi, Admit m:
Thanks for you quick response. but I don't know how to put Input/Output field and Table Control in the CHAIN and ENDCHAIN. I just know how to put several Input/Output fields in the CHAIN and ENDCHAIN. Can you give me an example.
thanks a lot.
‎2007 May 14 5:29 PM
I don't think you can do this. Have you seen an example of a standard SAP transaction that behaves the way you want this one to?
Rob
‎2007 May 14 5:30 PM
Hi,
In that case..Don't give error message..Give warning or success message..
IF field1 IS INITIAL.
MESSAGE <b>W001</b>(zmsg) WITH text-007.
ENDIF.
Thanks,
Naren
‎2007 May 14 5:36 PM
Hi, Naren:
Thanks. but I try to put warning as the following, the same issue, table control
still grayed, Is there any other way to do that.
IF field1 IS INITIAL.
MESSAGE W001(zmsg) WITH text-007.
ENDIF.
‎2007 May 14 5:46 PM
Hi,
Press enter to continue after the warning message appears..
Thanks,
Naren
‎2007 May 14 5:56 PM
Hi, Naren:
The waning message comes, but the Table Control is still grayed.
I want to message come and table control enable (user can input).
Thannk, Naren.
‎2007 May 14 5:48 PM
Hi,
You can use the Information message, then use EXIT command .... then it will exit from that Modules ..
Regards
Sudheer
‎2007 May 14 6:01 PM
Hi,
Ok...Try giving S or I message..
MESSAGE s001.
OR
MESSAGE i001
Thanks,
Naren