FM CRMPSST_FIND_ACTUAL_STATUS

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

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

Similar Messages

Maybe you are looking for

  • Non-English character problem in Oracle 10g Express Edition

    Hi There; I have a table. It's name is INSTITUTION. It has a NUMBER INS_ID and NVARCHAR2(50) INS_NAME . INS_NAME can contain Turkish characters, such as "ğ,ü,ş,ç,ö". According to business logic, there can not be a repetition on the INS_NAME. User wil

  • Issues with iTunes 7.1 with Windows Vista

    I recently purchased a laptop with Vista previously installed. After I installed iTunes I noticed problems with quitting iTunes, interface glitches, and at times it will freeze/shut down when iTunes Store is opened. I'm not sure if this is resolvable

  • Windows 8 Problems with Airport/Airtunes

    Installed Windows 8 from Windows 7, reinstalled latest version of iTunes and Airport Utility.  iTunes now no longer "sees" Airtunes speakers (connected through multiple Airport Express units throughout house).  Speakers are seen by all Apple devices

  • Photo Booth crashes all the time!

    Photo Booth crashes if I use any effect other than Normal. I've already repaired my permissions and deleted the preferences file... I don't know what else to do

  • My phone won't get 4G

    I used to get 4G but recently my phone only get 3G. I've turn off and back on, restart, changed to LTE/CDMA, start on safe mode... I've tried it all and nothing works. Can you please help me with this or please replace my phone. This is a new phone a