cancel
Showing results for 
Search instead for 
Did you mean: 

FM CRMPSST_FIND_ACTUAL_STATUS

Former Member
0 Kudos

Hi

in FM CRMPSST_FIND_ACTUAL_STATUS

Im passing parameters

IS_STATUS - " Im passing User Status" and selecting X for STAT_FIELD, DATE_FIELD AND TIME_FIELD

IS_JSTO - This GUID im selecting from CRM_JSTO table

OBJNR - What GUID should i be passing for this? I tried using same GUID from CRM_JSTO table but im not getting any output values

Im assuming im not passing the correct parameter values, please point me in right direction

Krishna

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Krishna,

Call FM CRM_ORDER_READ in the table ET_STATUS delete all entries with USER_STAT_PROC eq space.



delete et_status where USER_STAT_PROC eq space.
delete et_status where active eq space.

the line 1 is the current status.

There are a lot of sap notes for FM CRMPSST_FIND_ACTUAL_STATUS see if one of then can help you.

Holpe this helps.

Best Regards,

Caíque Escaler

samantak_chatterjee
Active Contributor
0 Kudos

Hi Krishna,

You need to pass the Order Item GUID if you are going to change the Order Item Status. So, in this case your OBJNR will contain the following information s_orderadm_i-guid -

Have a look at the sample code below.


CALL FUNCTION 'CRMPSST_FIND_ACTUAL_STATUS'
            EXPORTING
              is_status = ls_status_list
              objnr     = ls_orderadm_i-guid
              is_jsto   = ls_crm_jsto
            IMPORTING
              wert      = lv_stat_wert
*         DATE      =
*         TIME      =
            TABLES
              it_jstat  = lt_status_bw.

If you are going to change the Order Header Status, you need to pass the Order Header GUID.



 CALL FUNCTION 'CRMPSST_FIND_ACTUAL_STATUS'
          EXPORTING
            is_status = ls_status_list
            objnr     = ls_orderadm_h-orderadm_h_guid
            is_jsto   = ls_crm_jsto
          IMPORTING
            wert      = lv_stat_wert
*         DATE      =
*         TIME      =
          TABLES
            it_jstat  = lt_status_bw.

I guess you are aware of retrieving the Order Header and Item Guids from the respective tables..

Hope this helps.

Thanks,

Samantak.

Edited by: Samantak Chatterjee on Sep 13, 2010 8:27 PM

Former Member
0 Kudos

Hi Samantek

I tried passing both GUID's for ORDERADM_H and ORDERADM_I still not getting any results

Do i need to complete input for every import parameter perhaps?

Krishna