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

HELP.. URGENT

former_member2382
Active Participant
0 Likes
411

Hi All,

Can anybody provide me the peace of code for this...

If transaction code is IQS1 and IQS2 and condition type ZC.

If complete button triggered. (Function Code: MDDF)

Action text field from QMSM or Long text not equal to space.

If text field is blank.

Trigger error that required field is missing.

Else.

Continue.

Endif.

Endif.

Endif.

Regards,

Parvez.

Hi All,

Can anybody provide me the peace of code for this...

If transaction code is IQS1 and IQS2 and condition type ZC.

If complete button triggered. (Function Code: MDDF)

Action text field from QMSM or Long text not equal to space.

If text field is blank.

Trigger error that required field is missing.

Else.

Continue.

Endif.

Endif.

Endif.

Regards,

Parvez.

2 REPLIES 2
Read only

Former Member
0 Likes
384

Try this code:

IF SY-TCODE EQ 'IQS1' OR SY-TOCE EQ 'IQS2' AND CONDITION-TYPE EQ 'ZC'.
IF SY-UCOMM = 'MDDF'.
IF QMSM-TEXT  EQ  ' ' OR LTXT EQ ' ' . .
MESSAGE 'REQUIRED FIELD MISSING' TYPE 'E'.
ELSE.
CONTINUE.
ENDIF.
ENDIF.
ENDIF.

Read only

former_member2382
Active Participant
0 Likes
384

Hi Vijayalaxmi,

Thanks for the reply..

Have used the same code but the thing is that CONTINUE stmt is working in IF & ENDIF. It seems we can use that in loops like do, while or so..

thanks,

parvez.