Getting corresponding charecterirstic value from ausp by passing tplnr
I am trying to write a simple query to pass the TPLNR to OBJEK in ausp along with converted ATINN (for AP_HOLD) and get the charateristic value (ATWRT). Somehow I am not able to succeed in this. I tried it in few ways. It is ending with error. Somehow I could not relate it.
tplnr is my parameters.
I am trying in following way.
TABLES : ekbe, rbkp_blocked,ekko,viqmel,iloa,ausp.
PARAMETERS : char1(20) TYPE C.
TYPES:BEGIN OF zausp,
objek TYPE ausp-objek,
atinn TYPE ausp-atinn,
atwrt TYPE ausp-atwrt,
END OF zausp.
SELECT objek atinn atwrt into table it_ausp FROM ausp.
" this sample program should/will get funclocand find its AP_HOLD characteristics value
loop at it_ausp.
WRITE :/10 ausp-objek.
I am not able to figure out where I am actually committing mistake. At debug I can see values in the table.
I would welcome your ideas/suggestions.