Set user status in CRM for incoming ERP order

Hello,
as SAP doesn't offer a user status replication between ERP and CRM (Note 905430) and we have the requirement that incoming ERP orders should get a specific user status, I was trying to implement the BADI CRM_DATAEXCHG_BADI.
For data coming from the ERP system into CRM, the documentation of that above mentioned BADI points to implement the CRM_DATAEXCH_R3D_MBDOC_FILL method.
I am experimenting for a week now how to fill the status segment correctly but unfortunately I don't get it to work. I didn't find any coding examples in SDN nor OSS so that now I am posting myself the question due to the lack of documention/information on that interface.
Does anybody know what I have to fill in the structure BAD_STATUS_MESS which consists of the following fields:
TR_STATUS
BEF_IMG
TASK
SENDBITS
CLIENT
GUID
ORDERADM_H_GUID
STATUS
USER_STAT_PROC
ACTIVE
PROCESS
TXT04
TXT30
KIND
OBJECT_TYPE
My best guess was the following, but it didn't work:
TR_STATUS.................
BEF_IMG.......................0
TASK............................0
SENDBITS.....................FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
CLIENT..........................
GUID.............................
ORDERADM_H_GUID...<GUID of the orderadm_h segment>
STATUS.......................E0003
USER_STAT_PROC.....ZCRMJHTA
ACTIVE........................X
PROCESS....................
TXT04..........................
TXT30..........................
KIND............................
OBJECT_TYPE............BUS2000115
Any help will be highly appreciated.
Many thanks in advance
Victor

TR_STATUS.................
BEF_IMG.......................0
TASK............................1
SENDBITS.....................'FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'
CLIENT..........................SY-MANDT
GUID................................<GUID of the orderadm_h segment>
ORDERADM_H_GUID...<GUID of the orderadm_h segment>
STATUS.......................E0003
USER_STAT_PROC.....ZCRMJHTA
ACTIVE........................X
PROCESS....................
TXT04.......................... Status Text
TXT30.......................... Status Text
KIND............................ 'A'
OBJECT_TYPE............BUS2000115
APPEND above record TO ct_bus_trans_msg-status.

Similar Messages

  • Setting user status using actions in business activity

    Hi
    I have defined a new action profile. In that I have defined a new action using which I want to set user status to overdue. I have also defined a new user status "overdue".
    Now I want to set user status to overdue. For that we have defined new badi implementation also, but it is not able to change the status.
    Please tell me what all steps I need to do, to make it work.
    Thanx in advance.
    Cheers
    Hitesh

    Hi Hitesh,
    Check whether processing parameters are given correctly
    It should be given as below
    Element  : PROCESS
    Name     : PROCESS
    Type Name : CRM_J_STATUS
    Initial value  : OPEN      (here you can give the one you want )
    Let me know if you have any issues.
    Reward points if it helps.
    Regards,
    Madhu

  • Can we set user status in tj30 ?

    Hi all,
    can we set user status in tj30 ?
    i've created a new status profile and it seems SAP automaticaly generate all of status in my status profile to table tj30.
    but the data in column estat of table tj30 that created is started from E0001.
    can we set the data start from certain number ( for example : from E0060 ) not from E0001 ?
    or can we update it from E0001 to E-something ( for example : to E0056 ) ?
    please advice or breif me.
    many thanks in advance

    Hi Eddhie,
    You must perform the following steps manually:
    1. Transaction SPPFCADM
    2. Select the application
                  "CRM_ORDER"
    1. Click 'Define action profiles and actions'
    2. Select the action profile (if you are using the standard action profile)
                  "SMSD_SERVICE_ORDER_DNO"
    1. Double-click 'Action definition'
    2. Select the action
                  "SMSD_SRVC_ORDER_DNO_SAP_UPDATE"
    1. Double-click 'Processing types'
    2. Go to the change mode using the 'Display/change' button
    3. Press the "Change" button in the screen area "Method call settings" in the line "Define processing parameters".
    4. Click the 'Create' pushbutton in the dialog box that is then displayed.
    5. Enter the following data:
    a) Element: USER_STATUS
    b) Name: USER_STATUS
    c) Short description: USER_STATUS
    d) Data type tab, ABAP dictionary reference
                             Structure TJ30
                             Field ESTAT
    e) "Initial value" tab page, entry "E0060" in the field USER_STATUS (or another allowed user status from the status profile used if desired).
    f) Copy the entries.
    6. Save
    Check OSS Note (663970) for more detail.
    Please award points if the solution is helpful.
    Thanks
    Sumi

  • Set User status collectively in PM order

    Hi,
    I want to set user status collectively in PM orders. Is there any standard T Code.
    Regards
    Rakesh Ganpat

    Hi,
      As mentioned above there are no standard transaction for this and the BADI are available from ECC 6.0 EHP3 only. Either way you will have to do some development.
    You could use the FM STATUS_CHANGE_EXTERN to make the user status change one by one. You can incorporate this FM within the above user exit or within you customer Program.
    Regards
    Narasimhan

  • CHARM: How the user status is updated for the documents

    Hi Experts,
    I want to know how a particular status is set for a document. In the configuration, we maintain status table where in all the statuses are defined and hence the same is assigned to the document. We also make use of default method in one of the actions, such as:
    Sets user status according to container element USER_STATUS
    How a status is set for each action in the action list? Do we pass any value to the above mentioned method so that it can set the same?
    If I am not wrong, this default method simply sets the user status according to the value available in USER_STATUS (as per the description of the method). But, where we are setting this variable/element?
    May any one please help me understand this? Your help will be highly appreciated.
    Regards,
    Faisal

    Hi Faisal,
          I dont know if I get your question very well, but in transaction SPPFDCADM you cant control this method. For example, select CRM_ORDER, then "Define Action Profile and Actions", select "SDHF Actions" , then "Action Definition", select "IN PROCESS", then "Processing type", there if you hit "Display definition" you will see the parameter this action is sending to the method (the parameter is the user status to be set).
    Hope that helps,
    Federico

  • User Status Replication-CRM to R/3

    HI Gurus
    Our requirement is to replicate the Item level user statuses in CRM Service order to R/3.We will use BADI- CRM_DATAEXCHG_BADI and methodCRM_DATAEXCH_AFTER_MBDOC_FILL.
    Would appreciate if you can let me know how to fill the item status information into the MBDOC.By this,I mean which component to use pertaining to item level user status to fetch the info.
    Thanks in advance
    Madhav

    Use FM CRM_STATUS_READ
    Hope it helps.
    Lokesh
    PS. Pls. reward helpful posts.

  • How to Set User Status of Sales Order at item level.

    How to Set User Status of Sales Order at item level by default to 'Purchase Req Not Created' (example)while creating order. Please tell EXIT Name to be triggered & Internal table to be populated.
    Thanx,
    Srini
    Moderator message: please do your own research before asking.
    Edited by: Thomas Zloch on Feb 21, 2011 11:19 AM

    Mathew,
    Here is a document that should help you get started on enhancing 2LIS_11*
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c09d5356-d8c4-2d10-8b84-d24723fc1f0a?QuickLink=index&overridelayout=true
    Good luck!

  • User Status Change Log for WBS Element

    Hi All,
    I have a requirement to capture the user and time when the user status has changed for WBS Element in TCODE CJ20N.
    How do I enhance the standard table to add these 2 fields and also which enhancement is used to populate these fields?
    Thanks
    David

    hi david,
    if your looking for status changes in WBS for CJ20N tcode then
    have changes documents tick marked in OPSA tcode for a particular project profile and then create project in CJ20N with that project profile and go to that respective WBS and click the blue icon and goto
    Extras->changedocuments->All---> here click on all changes or history ... here this should give you required data your looking for ...
    regards
    pushpa

  • Add ECC Custom Fields in CRM Web UI ERP Order item

    hi all,
    i have to Add ECC Custom Fields in CRM Web UI ERP Order item .
    I have :
    -  add the field on Web UI Screen.
    -  add the field on structure  TDS_item_COMV  and  TDS_item_COMC in ecc
    -  insert record for field on LORD_MAPPING table
    -  implemented badi BADI_LORD_DO_PA BADI_LORD_GET_INPUT_MODE.
    -  implemented method GET_I_S_STRUCT on crm with  :
    CASE COMPONENT.
        WHEN 'ZZSPOND'.
          RV_DISABLED = ABAP_False.
    endcase.
    - on method  do_prepare_output i have change value of fields with code :
    lr_loop = typed_context->erpadmini->collection_wrapper->get_first( ).
    WHILE lr_loop IS BOUND.
    posnr = lr_loop->get_property_as_string( iv_attr_name = 'POSNR' ).
    Does the current item has to be set for "Sponda Idraulica"?
    READ TABLE Z5CL_GSA_TOOL0001=>GT_ITEMS_SPOND INTO ls_spond
                                  WITH KEY posnr = posnr.
    IF sy-subrc = 0.
    lr_loop->set_property_as_string( iv_attr_name = 'ZZSPOND' iv_value = 'X' ).
    DATA : V_X TYPE STRING.
    V_X = lr_loop->get_property_as_string( iv_attr_name = 'ZZSPOND' ).
    ENDIF.
    lr_loop = typed_context->erpadmini->collection_wrapper->get_next( ).
    ENDWHILE.
    I can't change the field  value  because it is "not changeble"  .
    Can you help me ?
    Thanks in advance.

    Hi Celi,
    I have created some fields at header level of ERP Order, and the user is available to change them, replicating the information to SAP ECC (using interface LORD II). 
    All sales item information is treated using RFC ERP_LORD_GET_ITEM_MULTI, available in SAP ECC. 
    Please check the following point:
    If those structures below were expanded with your custom fields:
    SAP CRM:
    CRMST_L2_ITEM_COMV
    CRMST_L2_ITEM_COMC
    CRMTT_ADMINI_ERPIL
    CRMTT_ADMINI_I_ERPIL
    SAP ECC:
    TDS_RFC_ITEM_COMV
    TDS_RFC_ITEM_COMC
    Please check if for your scenario is necessary to implement the enhancement BADI_LORD_DO_PAI method ADD_SUPPLY_LIST. The code below works for header level.
      DATA: ls_supply TYPE tds_field_supply.
      IF iv_object_id EQ 'HEAD'.
        IF iv_module EQ 'VBAK_BEARBEITEN'.
          ls_supply-field = 'ZZCCINS'.
          APPEND ls_supply TO ct_supply.
          ls_supply-field = 'ZZCCNUM'.
          APPEND ls_supply TO ct_supply.
          ls_supply-field = 'ZZCCNAME'.
          APPEND ls_supply TO ct_supply.
          ls_supply-field = 'ZZAUNUM'.
          APPEND ls_supply TO ct_supply.
        ENDIF.
      ENDIF.
    I hope it helps!
    Kind Regards!

  • User statuses on notifications should carryover to order when created from

    Hi,
    I have requriement for user statuses on notifications (IW21/22) should carryover to order when created from notification automatically.
    Did anybody worked on this type of scenerios. I already found some userexit (QQMA0014) but i could not able to find any thing related to user status in VIQMEL view.
    At the time of creation of notification IW21, when i go for creation of order, User status of notification should copied to order automatically.
    Appreciate any help.
    Regards
    MM

    Thanks Anji for your response.Yes there is FM status_read which i can use to get Status but my problem is during creation of order from notification, i don't have notification number so i can't use any database tables to get status for later use. As per requirment, during creation of notification, I can go to order creation. at that time whatever user-status I choose at notifcation, same status should get copied to order. I hope it got clear to you now.
    Please suggest.
    Regards
    MM

  • Set the final invoice flag for a purchase order

    I want to know how to set the final invoice flag for a purchase order.
    I tried BAPI_PO_CHANGE but it is giving me error.
    Help me.

    Hi,
    I think ur BW report shows the cleared Invoice no. The second invoice no. might not have been extracted to BW system. Check your order no. in Cube whether it has two invoice nos.
    Regards,
    Suman

  • Need help on to set User status for Operations in Maintenance order

    Hi experts,
    i am new to PM module.
    i need to do BDC for IW31. i want to know some inforamtion
    on user status for each opertaion.
    my problem is ,, what is user status.
    why it is saying order is not yet released when saving and status can not set.
    in this cases how can i do BDC.

    User status are something set in the configuration and specific to the company which SAP hasn't given in the system status.
    May be in your system user status are configured to set only  after the release of the order.
    For doing the userstatus you may need to release the order, you can release the order thru bdc and then do bdc for user status. Also see below link
    http://www.sap-img.com/plant/user-status-set-date-in-maintenance-order.htm

  • Set User-status for PP order

    Hi All,
    How can I set the user-status for a PP order, also let me know which user exit suits this requirement, as I know I have to make use of a FM or a BAPI which sets the user-status in the user-exit somewhere.
    Thanks
    Mark

    Hi,
    Try the following enhancements/exits for setting the status for PP order.
    STATTEXT
    CCOWB001
    COIB0001
    Regards,
    Anji

  • Need FM for setting user status of sales transaction

    Hello experts,
    I need a fm for setting the user status of a sales transaction.
    I want to select some sales orders and for this I want to set the user status via a FM.
    Can anybody help me ?
    THANKS
    Gerd

    Hi,
    Try this if you want to execute a process
            "Set Status for Header
            CALL FUNCTION 'CRM_STATUS_CHANGE_FOR_ACTIV_OW'
              EXPORTING
                objnr                  = lv_guid_h "guid Header
                vrgng                 = gc_process-cf_approved "Process
                iv_ref_kind         = 'A'
              EXCEPTIONS
                status_not_allowed = 6
                OTHERS             = 7.
    If it is just the Status that you want to set:
    crm_status_maintain_ow
    You need to call CRM_ORDER_SAVE after any of this call
    Thanks!
    Amrut Tadas

  • BAPI to set user status for PS

    Hi,
    I need to set the status as approved "E0002" from BAPI ( from workflow) for Project definition (BUS2001)
    I got BAPI " BAPI_BUS2001_SET_STATUS" and gave import parameter for  project definition but i couldnt able to give value for  set_user_status as it takes only 4 char but my status(JEST) is 5 char (E0002).
    Please help me how to use this bapi and what are all other bapi's i need to call to work correct.
    Ashu

    Use this FM I_CHANGE_STATUS for changing status.
    CALL FUNCTION 'I_CHANGE_STATUS'
    EXPORTING
    OBJNR = v_objnr
    ESTAT_INACTIVE = 'I0001'
    ESTAT_ACTIVE = 'I0002'

Maybe you are looking for

  • Printing problem with the HP LaserJet 100 color MFP M175

    I have recently upgraded to Windows 8.  When running Windows 7, I could print as may documents from Word or Excel as  I wanted.  Now, with Windows 8, I can only print one document.  When I try to print another, the program freezes.  The only way I ca

  • Safari update

    I don't see a Safari specific topic so will post here in hope ... The recent Safari update prevents me from logging in to my bank web site to do online banking.  This is more than a bit unsettling.  I am forced to use FireFox, which I would rather no

  • Need alternatives to reduce Query execution time

    Hi All, The following are my DB details: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production PL/SQL Release 11.2.0.3.0 - Production "CORE    11.2.0.3.0    Production" TNS for Linux: Version 11.2.0.3.0 - Production NLSRTL Vers

  • Is it possible to auto create albums based off of the saved keywords

    I would like to import my photos but have them organized in albums by the keywords saved in the image tags. Is this possible? I have a large collection that I currently manage on a PC with Abobe Elements 5 and I don't want to have to recreate each al

  • Ampersand substitution in create or replace procedure statement

    Hi Guys, I wonder why my ampersand substitution does not work in a create or replace stored procedure statement. CREATE OR REPLACE PROCEDURE UPDATE_DIM_SALES AS UNDEFINE DimSales; UNDEFINE FactTable; DEFINE DimSales = 'TESTTAB'; DEFINE FactTable = my