Reply from CIpinza on May 23 at 10:47 AM Hi. Another way to avoid duplicates condition types can be done with an specific Condition Value Formula. With this option, the user no need to maintain header or item. Please be carefull because this logic is not controlling which condition type is deleted. Regards, Claudio Ipinza. FORM frm_kondi_wert_608. * Validaci?n para evitar duplicidad de condiciones IF sy-tcode = 'VA01' OR sy-tcode = 'VA02'. DELETE ADJACENT DUPLICATES FROM xkomv COMPARING kschl. ENDIF. ENDFORM.
| | | ---------------Original Message--------------- From: Tigerlim Sent: Wednesday, May 23, 2012 10:12 AM Subject: Duplication of Header Condition and Item Condition in Sales Order This is the code which is applied. DATA: WA_XKOMV LIKE XKOMV, W_INDEX LIKE SY-TABIX. CLEAR: WA_XKOMV, W_INDEX. LOOP AT XKOMV. IF SY-TABIX GT 1. W_INDEX = SY-TABIX - 1. READ TABLE XKOMV INDEX W_INDEX INTO WA_XKOMV. IF WA_XKOMV-KSCHL = XKOMV-KSCHL AND WA_XKOMV-KPOSN = XKOMV-KPOSN. MESSAGE E001(00) . "Error message ENDIF. ENDIF. ENDLOOP. | | Reply to this email to post your response. __.____._ | _.____.__ |
No comments:
Post a Comment