cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Sales Order overall blocked status SPSTG

former_member431487
Participant
0 Kudos
11,379

Hi,

I understand sales order overall blocked status is based on credit block+delivery block+billing block. I have a sales order that is not having any of those blocks yet overall blocked status shows as Blocked. Below is the various processing status in my sales order header -

Overall status Being processed

Rejection status Partially rejected

Delivery status Not delivered

Credit status Approved

Overall blkd status Blocked

There is no order workflow status blocked either. Can you suggest why it is showing overall blkd status as Blocked.

Thanks.

View Entire Topic
michael_piesche
Active Contributor

(1) What status is relevant for Overall blocked status

As you correctly noted, you need to check the status of those fields, that the "Overal blkd status" is based on. Have you actually done that? Your list of status is not sufficient to answer this question for you. You would need the following:

VBUK-SPSTG - Overall blocked status

  • The value of this field is calculated according to the following values:
    a. Overall header delivery block status + b. overall header billing block status + c. header credit check status

a. VBUK-LSSTK - Overall delivery block status

  • The value of this field is calculated using the following values:
    Item delivery block status + Document header delivery block + user status for header

b. VBUK-FSSTK - Overall billing block status

  • The value of the overall billing block field is calculated using the:
    Billing block status of item + sales document billing block + user status header

c. VBUK-CMGST - Overall status of credit checks

(2) How is SPSTG actually derived from the three other status?

Look at Include LV45P078 Form VBUK-SPSTG_ERMITTELN to actually see how in coding the "Overall blocked status" is derived:

From FSSTK and LSSTK to SPSTG, the logik is the following:

*           | _ A B C                                                 *
*         -----------                                                 *
*         _ | _ A B C                                                 *
*         A | A A B B                                                 *
*         B | B B B B                                                 *
*         C | C B B C                                                 *

From CMGST to SPSTG:

  • If CMGST is B or C, then SPSTG is C

Status to Text:

  • If you need to find out, how a status value is translated to a status text, check the function module: RV_DOCUMENT_HEAD_STATUS_TEXTS where VBUK_IN-VBELN would be your sales document number
  • And for most status, you will find the text in table TVBST - SD Documents: Processing Status: Texts

(3) Still not sure where or why the status is set this way?

If you find out, that either the Overall delivery or the billing block status is causing this, but you dont know why, check the following Includes to find out more how those are created:

  • LV45P081 vbuk-fsstk_ermitteln
  • LV45P080 vbuk-lsstk_ermitteln

If it is still unclear to you, why the "Overall blocked status" is set the way it is, check for Include LV45P079 Form STATUS_KOPF and see if there are any enhancements or modifications present, that would cause this effect.

former_member431487
Participant
0 Kudos

michael.piesche - Thanks for your detailed answer but unfortunately this is too technical for me and I will need help of ABAP consultant to debug.

Regarding your first line, as I mentioned in my question I already checked that there is no Delivery block, billing block and credit block in document header.

michael_piesche
Active Contributor
0 Kudos

karan.singh14, based on your question, you did not mention the values of LSSTK (Overall delivery block status), FSSTK (Overall billing block status) in VBUK !

You only mentioned the two following VBUK relevant values:

  • SPSTG (Overall blocked status = Overall blkd status in VA03) with the value of C = Blocked
  • CMGST (Overall status of credit checks = Credit Status in VA03) with the value of A = Approved

=> The other values you mention, are, based on Standard SAP, not relevant to the Overall blocked status SPSTG.
e.g. 'Delivery Status' (LFSTA) in VA03 which is derived from items VBUP-LFSTA is not the same as 'Overall delivery block status' (LSSTK) from VBUK-LSSTK

So again, please check VBUK and the values for LSSTK and FSSTK, at least one of those should be C = Blocked (and the other one being empty or also C), in order for SPSTG to be C = Blocked, after you have shown, that CMGST is A = Approved (assuming there is no interfering custom implementation).

(If you cant check VBUK through SE16N, I strongly recommend to pass this issue to a colleague of yours with more rights to access the system.)

former_member431487
Participant
0 Kudos

michael.piesche - Sorry my bad, I misunderstood. I did check the other 2 status you told and both are set to blank in VBUK. So here is the case -

CMGST - A

LSSTK - Blank

FSSTK - Blank

SPSTG - C

Based on your answer it seems there is some custom thing going on. I will check further with developer, thanks for your inputs.

michael_piesche
Active Contributor
0 Kudos
Karan Singh, you are welcome. Let us know about the outcome of that.
Did you also try saving the document again, if necessary by switching to tab paycards or making a dummy change (e.g. description). Maybe this will correct the issue, but than still something unusual has happened before.
IanYin
Product and Topic Expert
Product and Topic Expert
0 Kudos
As for FSSTK and LSSTK. If no block it is ' '. If block it is 'B' or 'C'. So, how to set them to value 'A'?