Is this simple code correct?Hello,I was wondering if someone could just confirm whether I got the logic right for the following code.Ist should do this:Exclude (by setting sy-subrc to 4) whenat current date,the sales ststus(MVKE-VMSTA ) is N1 or Z2 A

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/18 18:18:48
Isthissimplecodecorrect?Hello,IwaswonderingifsomeonecouldjustconfirmwhetherIgotthelogicrightforthefo

Is this simple code correct?Hello,I was wondering if someone could just confirm whether I got the logic right for the following code.Ist should do this:Exclude (by setting sy-subrc to 4) whenat current date,the sales ststus(MVKE-VMSTA ) is N1 or Z2 A
Is this simple code correct?
Hello,I was wondering if someone could just confirm whether I got the logic right for the following code.Ist should do this:Exclude (by setting sy-subrc to 4) whenat current date,the sales ststus(MVKE-VMSTA ) is N1 or Z2 ANDMMPP status (MARC-MMSTA ) is 11 or 01 ANDplant stock unrestricted (MARD-LABST ) is zero IF SYDATUM LE MVKE-VMSTD AND MVKE-VMSTA = 'N1' or MVKE-VMSTA = 'Z2' AND MARC-MMSTA = '11' or MARC-MMSTA = '01' AND MARD-LABST = 0.SY-SUBRC = 4.ENDIF.I'm worried whetehr all these AND OR statements will work in the sequence that I want them to...

Is this simple code correct?Hello,I was wondering if someone could just confirm whether I got the logic right for the following code.Ist should do this:Exclude (by setting sy-subrc to 4) whenat current date,the sales ststus(MVKE-VMSTA ) is N1 or Z2 A
Oh right,Thanks I didn't realise brackets could be used in statements.I suppose they would have the same relevance as when used for numeric statements i.e.process the brackets frist then do the rest...Thanks again!查看原帖>>