Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Insert code in prgram to check sales order exits in your own program

Hi Experts

I want to insert a coding in IDOC , can anyone write in abap coding and show .....The program is to check if sales order for category PSTYV ( CATEGORY ) for items ...

if found set flag true else set flag false...

Eg

clear flag

  • insert code

to check s/o for ZTAC item found

if found

set flag = true

else

set flag = false

So how can I write a a code in ABAP

Thanks in advanced

Piroz

Tags:
replied

check table for category is TVPT so you should just SELECT in this table and if SY-SUBRC = 0 then the category exists...

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question