08-10-2007 8:48 AM
Hi All,
Can someone please explain me what this piece of code is doing,
CLEAR NUM_OP.
IF RESB-BAUST = '0'.
NUM_OP = resb-posnr.
ELSE.
SELECT SINGLE POSNR INTO (NUM_OP)
FROM *RESB
WHERE AUFST EQ RESB-BAUST
AND AUFWG EQ RESB-BAUWG
AND MATNR EQ RESB-BAUGR.
ENDIF.
I find this in one query. Await your responses.
Vivek
08-10-2007 9:14 AM
Hi,
This query is populating <b>posnr</b> field into variable <b>num_op</b> if <b>resb-baust</b> = 0.In second condition, it is selecting first record & populating <b>posnr</b> field into variable <b>num_op</b> that is satisfying <b>aufst ,aufwg & matnr</b> fields of <b>*RESB</b> with the fields <b>baust, bauwg & baugr</b> of <b>RESB</b>.
Hope this helps.
Reward if helpful.
Regards,
Sipra
08-10-2007 8:51 AM
Hi,
*RESB is nothing but resb only....if the value of baust is not '0' then its selecting from db table and populating the NUM_OP value.
Regards,
Nagaraj
08-10-2007 8:53 AM
HI
*RESB is the replica of the RESB table, it will hold all the data same as RESB.
if you want to change the RESB values without intrupting the database thne you can change in *RESB.
we can find this of quries in SAPSCRIPT driver programs
Regards
Sudheer
08-10-2007 8:56 AM
Hi
*RESB is the nothing but the same RESB table,if you want to change the RESB values without intrupting the database thne you can change in *RESB.
Reward all helpfull answers
Regards
Pavan
08-10-2007 9:14 AM
Hi,
This query is populating <b>posnr</b> field into variable <b>num_op</b> if <b>resb-baust</b> = 0.In second condition, it is selecting first record & populating <b>posnr</b> field into variable <b>num_op</b> that is satisfying <b>aufst ,aufwg & matnr</b> fields of <b>*RESB</b> with the fields <b>baust, bauwg & baugr</b> of <b>RESB</b>.
Hope this helps.
Reward if helpful.
Regards,
Sipra
08-10-2007 10:19 AM
Hi Sipra,
Thanks a lot for that info, it is quite clear now. But i would like to know about what exactly these fields mean, BAUST, BAUWG, BAUGR, AUFST, AUFWG. I know what it stands for, but a little confused as to how to interpret the same or should i ask this qns in PP forum?
Vivek
08-10-2007 12:58 PM
Hi Vivek,
If you post it there you will get clear & detailed relevant answers.
Hope this helps.
Reward if helpful.
Regards,
Sipra
08-10-2007 12:59 PM
Hi Vivek,
If you post it there you will get clear & detailed relevant answers.
Hope this helps.
Reward if helpful.
Regards,
Sipra
08-10-2007 2:55 PM