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

how to write the logic

Former Member
0 Likes
402

Hi,

Intially i written like this code.

*Panthom item check

data:c_y(01) TYPE c VALUE 'x'.

IF p_phant = c_x .

DELETE lt_stpox WHERE dumps = c_y.

DELETE lt_stpox WHERE rekri = c_y.

ENDIF.

now they r telling to write like this way..Hiw to achievwe this and wht they r doing like this ??please help

clear lb_recursive.

READ TABLE lt_stpox WHERE rekri eq u2018Xu2019 TRANSPORTING NO FIELDS.

IF sy-subrc eq 0.

set a local flag (ex. lb_recursive = u2018Xu2019) to indicate the parent material is a recursive BoM.

Endif.

DELETE lt_stpox WHERE rekri = c_y.

Hi,

Intially i written like this code.

*Panthom item check

data:c_y(01) TYPE c VALUE 'x'.

IF p_phant = c_x .

DELETE lt_stpox WHERE dumps = c_y.

DELETE lt_stpox WHERE rekri = c_y.

ENDIF.

now they r telling to write like this way..Hiw to achievwe this and wht they r doing like this ??please help

clear lb_recursive.

READ TABLE lt_stpox WHERE rekri eq u2018Xu2019 TRANSPORTING NO FIELDS.

IF sy-subrc eq 0.

set a local flag (ex. lb_recursive = u2018Xu2019) to indicate the parent material is a recursive BoM.

Endif.

DELETE lt_stpox WHERE rekri = c_y.

1 REPLY 1
Read only

Former Member
0 Likes
354

Hi,

Changes your thread title and post your requirement clearly.

Thansk,

Archana