cancel
Showing results for 
Search instead for 
Did you mean: 

get contract possible status

Former Member
0 Kudos

Hello,

I created a selection screen to select contracts using some details like contract status.

When using table tj02t in the status selection-option, i get all the status even those not related to contract.

How can i limit the list to contract status only?

Thanks,

Hazem.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Refer class /SAPSRM/CL_PDO_SO_SEARCH_BASE method /SAPSRM/IF_PDO_SO_SEARCH_BASE~GET_VALUE_RANGES

This is called from Advanced Search window to get the status drop down values.

Best Regards,

Sushil.

Answers (1)

Answers (1)

laurent_burtaire
Active Contributor
0 Kudos

Hello Hazem,

using BS13 transaction, double click on object type CTR.

In the new screen (transactions allowed), use menu bar Goto > Object type info.

Here, you will have system status set by the transaction: use them as value range for selection in your select-option.

Regards.

Laurent.

Former Member
0 Kudos

Hello Laurent,

I did it another way using FM BBP_DOC_STATUS_GET with contract object type as parameter. This way, i get the possible statuses in the table et_status.

But i'll try also what you said.

Thanks and best regards,

Hazem.