03-10-2011 5:56 AM
Hi all.
I've like to get a Credit Status text in sales order header.
but I don't know which table has it.
I think that status value of a Credit Status is VBUK-CMGST.
If you know that, please let me know.
Regards.
Rie.
03-10-2011 7:56 AM
Hi
Try this function module which SAP is using,
CALL FUNCTION 'RV_DOCUMENT_HEAD_STATUS_TEXTS'
EXPORTING
VBUK_GELESEN = CHARX
VBUK_IN = VBUK
WINDOW_SENDEN = SPACE
IMPORTING
VBSTT_WA = VBSTT.
And you can use VBSTT-CMGST_BEZ as the text you want.
You can also check the table TVBST, here you can give the language, table name VBUK , field name CMGST and status as blank,
You will get the texts as Not Performed.
Best Regards,
Nikhil Patil
Edited by: Nikhil Patil on Mar 10, 2011 8:59 AM
03-10-2011 6:25 AM
Hi,
Get the values from database view DD07V. Pass Domain name (CMGST) , language and value to get the text.
Regards,
Srini.
03-10-2011 6:35 AM
Thank you for your reply, Srini Vas.
It's a different value...
It displayed 'Not performed' on VA03, and VBUK-CMGST is initial.
and I checked DD07V-DDTEXT, this value is 'Credit check was not executed/Status not set'.
It's different...
Do you know that?
Regards.
Rie.
03-10-2011 6:46 AM
03-10-2011 7:56 AM
Hi
Try this function module which SAP is using,
CALL FUNCTION 'RV_DOCUMENT_HEAD_STATUS_TEXTS'
EXPORTING
VBUK_GELESEN = CHARX
VBUK_IN = VBUK
WINDOW_SENDEN = SPACE
IMPORTING
VBSTT_WA = VBSTT.
And you can use VBSTT-CMGST_BEZ as the text you want.
You can also check the table TVBST, here you can give the language, table name VBUK , field name CMGST and status as blank,
You will get the texts as Not Performed.
Best Regards,
Nikhil Patil
Edited by: Nikhil Patil on Mar 10, 2011 8:59 AM
03-11-2011 12:14 AM
Thank you for your repry, Nikhil and Andrea.
I can get the text using TVBST.
I appreciate you helping me !
Regards.
Rie.
03-10-2011 8:02 AM
05-04-2021 1:48 PM