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

Close/Open PO

Former Member
0 Likes
434

Hi

For each PO = PO (Z01-EBELN) AND PO Line = PO Line (Z01-EBELP), extract all 50 ntn field (NTEM001-NTEM050) from Z01.

b. For each PO line number, if any one of the NTEM001 through NTEM050 fields contain the value "CFC", then the PO is considered in CLOSED status. There is only one "CFC" possible on a PO line in the ntn fields so as soon as the CFC match is found, there is no need to loop through the remaining field.

I am getting error to perform this check for OPEN/CLOSE PO line. Can someone help?

Hi

For each PO = PO (Z01-EBELN) AND PO Line = PO Line (Z01-EBELP), extract all 50 ntn field (NTEM001-NTEM050) from Z01.

b. For each PO line number, if any one of the NTEM001 through NTEM050 fields contain the value "CFC", then the PO is considered in CLOSED status. There is only one "CFC" possible on a PO line in the ntn fields so as soon as the CFC match is found, there is no need to loop through the remaining field.

I am getting error to perform this check for OPEN/CLOSE PO line. Can someone help?

1 REPLY 1
Read only

Former Member
0 Likes
378

Can someone tell me how to write this in code?