04-21-2006 5:39 AM
Hi All,
I hav requirement that depending on the Overall staus of a Sale Order i hav to get the data's of the Invoice details.
For this i need to capture the filed value of <b>"GBSTA_BEZ"</b> for that particular Sale Order in the T-Code Va02 or 03. but wen i chkd the screen it seems to be displaying through structure only.
Any idea where can i get the value of this particular field in any DB table or through any other method.
Help and Suggestions will be much apprieciated.
Thanks & Regds.
Ramesh.
04-21-2006 5:43 AM
Ramesh,
Look at the VBKD table, you will find all the statuses there.
Regards,
Ravi
04-21-2006 6:38 AM
Hi Ravikumar Allampallam,
Evn I chkd in the VBKD DB table also in the related tables but its not available, But its displaying through the structure <b>"VBSTT"</b>, i chkd for the field if stored in any toher table but its not.
Do we have any other method to get that Field Value.
Thanks & Regds.
Ramesh.
04-21-2006 6:40 AM
04-21-2006 6:42 AM
04-21-2006 6:46 AM
04-21-2006 7:09 AM
Hello Ramesh,
Use FM RV_DOCUMENT_POS_STATUS_TEXTS to derive the status. It uses table TVBST to detereminet the status.
04-21-2006 7:22 AM
Hello Ramesh,
Just to elaborate, For header level status it uses VBUK table with field GBSTA and for item level it uses VBUP-GBSTA fields. Pass the values to the table TVBST as
SPRAS = sy-langu.
TBNAM = VBUK/VBUP
FDNAM = GBSTK
STATU = VBUK-GBSTA/VBUP-GBSTA.
03-27-2007 5:54 AM
it looks like VBUP should use GBSTA, and VBUK use GBSTK, so it should be:
Pass the values to the table TVBST as
SPRAS = sy-langu.
TBNAM = 'VBUK' / 'VBUP'
FDNAM = 'GBSTK' / 'GBSTA'
STATU = VBUK-GBSTA / VBUP-GBSTA