Capturing Dynamic lengths during data transmissions From CRM to Others

hi friends
i am sending data from CRM to SAP and then SAP to CRM
during the transmiision of data one of the field amount have length 30 in CRM and 17 in SAP, while sending values From CRM if amount length exceeds 17 then my application is going to short dump.
i have validation part in SAP Server where i can do some code to avoid short dump, but wat exactly i need to code to capture dynamic lenght of CRM amount Values
can any one have idea to capture dynamic lengths of fields during the transmissions
Regards
Anil P

Hi Surender,
  I think i still have problem. I have like 26 fields in dynamic selections. I am filling one field and checking for that one in the program. Below is my program and please let me know where i doning wrong
TYPES: RSDS_SELOPT_T LIKE RSDSSELOPT OCCURS 10.
TYPES: BEGIN OF RSDS_FRANGE,
FIELDNAME LIKE RSDSTABS-PRIM_FNAME,
SELOPT_T TYPE RSDS_SELOPT_T,
END OF RSDS_FRANGE.
TYPES: RSDS_FRANGE_T TYPE RSDS_FRANGE OCCURS 10.
TYPES: BEGIN OF RSDS_RANGE,
TABLENAME LIKE RSDSTABS-PRIM_TAB,
FRANGE_T TYPE RSDS_FRANGE_T,
END OF RSDS_RANGE.
DATA: WA_RSDS_RANGE TYPE RSDS_RANGE.
CALL FUNCTION 'RS_REFRESH_FROM_DYNAMICAL_SEL'
  EXPORTING
    CURR_REPORT              = sy-cprog
    MODE_WRITE_OR_MOVE       = 'M'
IMPORTING
   P_TRANGE                 = WA_RSDS_RANGE
EXCEPTIONS
  NOT_FOUND                = 1
  WRONG_TYPE               = 2
  OTHERS                   = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

Similar Messages

  • Data Extraction from CRM to BW

    Hi,
    I just need some information/help on BW Data Extraction from CRM, it would be great if some one could help out or mail some related help documents.
    Currently we are implementing the complaints module in CRM simultaneously on the BW side we have identified an info cube for complaints 0CSAL_C09, but this cube and its ODS source does not have all the required fields like (newly created text types, serial number etc), so how these tables and fields can be identified in the source system and added to extract structure in CRM. Also what is the table in which the CRM transaction data would be stored.
    Especially i require the newly added text types in CRM to appear in BW, there are around 5 new text types are added and user can enter free text, i need these information to be captured in reports. kindly mail me the steps to [email protected]
    Thanks
    Akila.R

    hi,
    try these links
    http://help.sap.com/bp_biv335/BI_EN/html/BW/SalesAnalysis.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f2910623-0c01-0010-de8f-d1926988a986
    http://help.sap.com/bp_biv135/html/bw.htm
    http://help.sap.com/bp_biv135/html/BW/SalesAnalysis.htm
    http://help.sap.com/bp_biv235/BI_EN/index.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/af/ed833b2ab3ae0ee10000000a11402f/frameset.htm
    this:
    http://help.sap.com/bp_biv235/BI_EN/index.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/af/ed833b2ab3ae0ee10000000a11402f/frameset.htm
    regards,
    pankaj singh
    reward if helpful

  • Data transfer from CRM to R3

    What exact data transfer from CRM to R3, on completion of a sales Order. I am new in the field, need some good example?

    HI Sajjad,
    Transafer of order from CRM to R/3 involves following activies.
    Setup RFC destination between CRM & R/3
    Create a R/3 Site (Transaction: SMOEAC) and assign a subscription named
    (Sales Document (Mesg) created from publication Sales Document(Mesg)).
    In R/3 maintain Document type with same name as Transaction type in CRM, item category with same name as item category in CRM, Item category determination with same as in CRM.
    Master data i.e. Product in CRM should be present with same name as material in R/3. BP in CRM should be present with same name as Customer in R/3
    Organizational data is maintained in CRM.
    Best Regards,
    Pratik Patel.
    Reward with points if it is of any help to you!

  • Number of parallel process definition during data load from R/3 to BI

    Dear Friends,
    We are using Bi7.00. We have a requirement in which i should increase the number of parallel process during data load from R/3 to BI.  I want to modify this for a particular data source and check.Can experts provide helpful answers for the following question.
    1) When load is taking place or have taken place, where can we see how many parallel process that particular load has taken.
    2) Where should i change the setting for the number of parallel process for data load (from R/3 to BI) and not within BI.
    3) How system works and what will be net result of increasing or decreasing the number of parallel process.
    Expecting Experts help.
    Regards,
    M.M

    Dear Des Gallagher,
    Thank you very much for the useful information provided. The following was my observation.
    From the posts in this forum, i was given to understand that the setting for specific data source can be done in the infopackage and DTP level, i carried out the same and found that there is no change in the load, i.e., system by default takes only one parallel process even though i maintained 6.
    Can you kindly explain about the above mentioned point. i.e.,
    1) Even though the value is maintained in the infopackage level , will system consider it or not. -> if not then from which transaction system is able to derive the 1 parallel process.
    Actually we wanted to increase the package size but we failed because i could not understand what values have to be maintained  -> can you explain in detail
    Can you calrify my doubt and provide solution?
    Regards,
    M.M

  • Data Extraction from CRM

    Hello Experts,
    I am presently working on data extraction from CRM system. I understand that there are three ways of data extraction from the CRM system:
    i) Using Middleware integration
    ii) CRM BI integration through XI
    iii) Generic ETL process as used when extracting data from other SAP systems
    Can anyone please suggest which one is the best method to follow and why?
    Thanks & Regards
    Nikhil

    Hi,
    The Third option is the best one I would say.
    Why to use any other way line XI integration or anything like that which involves more complexity in terms of development , maintenance and most importantly COST.  SAP is providing you the standard set of extractors, it will be a wise choice.
    Regards
    Pratap Sone

  • Data Flow from CRM to BW

    Dear SAP Experts,
    Greetings for the Day!
    I am looking forward for some information on the Data flow happening from CRM to BW system. Some of the few queries are as below:
    Do we have any settings for this data flow in Transaction SMOEAC.
    How does the below setting impact the BDOC flow in BW. Also, if we un-check the “Do Not Snd”, will BDOCs
    flow to BW system ? <PFA>
    PS: We are on CRM 7.0 with EHP2.
    Thanks!
    Regards,
    Kanika

    Hi Kanika,
    Data flow from CRM to BW happens via XIF using IDocs. You can check in transaction WE21 for your RFC destination of BW and the output parameters, which decides what data would be send to the corresponding destination.
    You can also check my blog:
    External Interface (XIF) Setup but this is XIF setup in general and not specific to BW.
    Hope this helps.
    Best Regards,
    Shanthala.

  • I want to capture system message during data upload.

    Hello,
    I want to capture system message during data upload.
    How should I do this?
    suppose during call transaction system shows message:-
    " Info record for vendor 102925 and material DYND80000 does not exist"
    then How can I get that message?

    Hi Megha,
    CALL TRANSACTION tcode USING i_bdcdata
                              MODE lws_mode
                            UPDATE lws_update
                          MESSAGES INTO <b>i_messages.</b>
      CLEAR wa_error.
      IF sy-subrc NE 0.
        cnt_failed = cnt_failed + 1.
        wa_error-status = c_fail.
        LOOP AT i_messages . "WHERE msgtyp EQ 'E' OR msgtyp = 'A'.
          flg_fail = c_x.
    *---Calling FM to get for Error Message Text
          <b>CALL FUNCTION 'MESSAGE_PREPARE'  </b>                     "#EC *
            EXPORTING
              language               = 'E'
              msg_id                 = i_messages-msgid
              msg_no                 = i_messages-msgnr
            IMPORTING
              msg_text               = lws_text
            EXCEPTIONS
            function_not_completed = 1      " Invalid Date Error Description
              message_not_found      = 2
              OTHERS                 = 3.
    <b>Reward points if this helps.
    Manish</b>

  • BP Data replication from CRM to R/3

    Hi All,
      I could not see the BP replicated to R/3. The status is processing for 'BUPA_MAIN' type of BDOC.
    -I have set RFC (not trusted RFC)
    - At PIDE
             CRM->R/3 [ type A (classification) is mapped to 0001     (Account group)]
             and vice versa.
    Waiting for any sugessions.
    Regards,
    Eddie

    Hi,
    Admin console (subscriptions based on rep.objects & publications) is for the CRM outbound process, based on CRM changes -> cannot be used for the initial load.
    The download objects can be used for initial loads, and this in three directions: CRM-> R/3, R/3-CRM and CRM->MSA. If you wish to download data from CRM to R/3, select CRM as the source site and R/3 as the destination site in an initial load.
    Normally if your RFC settings and filters are defined corrrectly, you should get an indicator that the download is in a running state. After that you can check the queues (smq1 & smq2) and the bdocs (smw01) for the results of the download.
    hope this helps,
    Michael.

  • Data  transfer from CRM to SAP R/3

    Hi All,
    Please let us know how to transfer the data from CRM(sibel) system to SAP R/3.
    I want to pull oppurtunity data from CRM to R/3 system.Could somebody throw some idea on this please.
    Regards
    Mahesh

    1. Using XI middleware.
    2. CRM(sibel) ---> intermediate table ---> SAP R/3.
    Pradeep

  • RFC Destination was incorrect,send complete BP Data again from CRM to R3

    Hello All
    Iam facing in issue in CRM - BP Application due to incorrect RFC Destination maintained for SAP R3.
    Our CRM Testing system (CRO - Client 300) is connected to R3 Testing System (NCQ - Client 300), but when CRM system went for refresh, RFC Destination was overwritten, and due to that CRM system started pointing to wrong R3 server (NCD - Client 002).
    Till we got to know the problem, User had created a BP in CRM and it had flown to incorrect server. later we corrected the RFC Destination , but now the issue is that If I make any small change in CRM BP data, Bdoc  is going in error state and message says:
    Messages for business partner 0090001677:
    No customer is assigned to business partner 4A13ACE0AB356006E10000000A212
    Entry 0500   does not exist in  - check your entry
    I tried to send BP data through middleware tCode /CRMM_Bupa_Send as well, but Bdoc gain got in error state saying :
    Entry 0500   does not exist in  - check your entry
    I think, these errors are coming because system is assuming that it has already sent the data to R3, and it expects certain data to be present in R3 system, which it is unable to find since data for corresponding BP is not present in SAP R3.
    I there any way, transaction through which I can send complete BP data from CRM to R3??? Please help.
    Edited by: Surbhi Goel on Jun 2, 2009 3:25 PM

    Hi Surbhi,
    Could you try transaction CRMM_BUPA_MAP in order to see what mapping the system thinks there is (if any). It then allows you to send (same as BUPA_SEND) or retrieve data. I guess this will run into the same error, but it might be worth a try.
    Hope this helps.
    Sincerely,
    KZ

  • Ibase Data Download from CRM 5.0

    Hello Gurus,
    I want download the following data from CRM 5.0 in a text file ( tab delimited ) :-
    IBASE_HEADER -- can be obtained from FM CRM_IBASE_GET_DETAIL
    IBASE_COMPONENT -- can be obtained from table IBIN
    IBASE_TEXT
    IBASE_PARTNER
    IBASE_ADDRESS
    IBASE_STRUCTURE
    IBASE_STATUS
    IBASE_COMPONENT_TEXT
    IBASE_COMPONENT_ADDRESS
    IBASE_COMPONENT_PARTNER
    IBASE_COMPONENT_EXTRA
    IBASE_ADDRESS_EXTRA
    IBASE_COMPONENT_ADDRESS_EXTRA
    But for the other data .. what FMs should I use ??
    With Regards,
    Kallol

    HI,
    Below are the few tables that you can refer:
    IBASE_TEXT           :            CDBD_IBIBT
    IBASE_PARTNER     :          CDBD_IBPART                   
    IBASE_ADDRESS          :     CDBD_IBADDR                   
    IBASE_STRUCTURE          :    CDBD_IBST                       
    IBASE_COMPONENT_TEXT      :  IBINT
    Regards,
    PePe
    Edited by: PePe on Jun 10, 2009 11:23 AM
    Edited by: PePe on Jun 10, 2009 11:23 AM

  • Data Migration from CRM 5.0 to CRM 7.0

    Hi Friends,
    We are into a re-implementation on CRM 7.0. The old system was on CRM 5.0.
    Since this is not an upgrade, the data will not copied over from the old system into the new system.
    So, now I would like to know how to migrate data (master/transaction) from CRM 5.0 into 7.0.
    I have read that we can make use of BAPI/LSMW/IDOC/XIF adapters to push info into CRM.
    But, the customer wants all the historical data to be in the new system.
    I think master data can be handled....  but how to migrate the transaction data?.... i mean the number ranges/document flow.. and other relationships.. how can we maintain the same links into the new system?
    If it was a migration from legacy system into the SAP CRM, we could have gone ahead with new number ranges etc... but this migration is from SAP to SAP.
    Also, we will have ECC6.0 connected to CRM 7.0. ANy additional things to be taken care of when the connection is live in DEV/QA/PROd instances?
    Any pointers to this ?

    Hi Gary,
    As per my understanding, your data migration involves quite complex scenarios covering the CRM and ERP box. As the customer needs the old data to be present in the new implementation, the old data needs to be migrated from the CRM 5.0 to CRM 7.0. For the migration to happen, you need to setup the customization (like the number ranges,Condition Data Tables, etc ). Then only you can proceed with the data migration. Also, you need a proper backup plan as this involves proper backup of the data.
    Once the setup is complete, you need to configure the ECC6.0 with the CRM7.0 system. Here also, you need to do a lot of settings and performing the Initial loading of the Adapter Objects. But before you proceed with the entire operation, the entire system landscape must be properly defined with appropriate settings.
    My recomendation is to take help of SAP Consultants and data migration experts as they are the best persons to guide you on this. Also it would be great if you can go through the SAP Best Practices documents which are best repository documents to guide you on this.
    Have a look on this link for an overview of the CRM Data Migration
    http://help.sap.com/saphelp_crm60/helpdata/en/1a/023d63b8387c4a8dfea6592f3a23a7/frameset.htm
    Hope this helps.
    Thanks,
    Samantak.

  • Data Extraction from CRM and Informatica

    Hi Guru's,
    Could any one tell me how to extract the data from the CRM and Informatica in to BW.
    Please give me the steps.
    Thanks in advance....

    Steps for Extracting data from CRM:
    Configuration Steps
    1.Click on ->Assign Dialog RFC destination
    If your default RFC destination is not a dialog RFC destination, you need to create an additional dialog RFC destination in addition and then assign it to your default RFC destination
    2.Execute Transaction SBIW in CRM
    3.Open BC DataSources.
    4.Click on Transfer Application Component Hierarchy
    Application Component hierarchy is transferred.
    5.SPRO in CRM .Go to CRM->CRM Analytics
    6.Go to transaction SBIW-> Settings for Application specific Data Source ->Settings for BW adapter
    7.Click on Activate BW Adapter Metadata
    Select the relevant data sources for CRM sales
    8.Click on Copy data sources
    Say yes and proceed
    9.Logon to BW system and execute transaction RSA1.
    Create a source system to establish connectivity with CRM Server
    A source system is created. (LSYSCRM200)(Prerequisites: Both BW and CRM should have defined Back ground, RFC users and logical systems)
    10.Business content activation for CRM sales area is done
    11.Click on source system and choose replicate datasources.
    KJ!!!

  • Data Migration from CRM 4.0 to CRM 2007

    Hi experts,
    we have transaction data to be migrated from CRM 4.0 to 2007, the transactions are having followup transactions, how can we transfer the transactions along with follow up transactions to CRM 2007, can any one share the documents, i know it can be done with idoc meathod. can any one suggest what are the pre requisites and what is the role of CRM consultant here.

    Okay the only question is that is your CRM 40 system and the CRM 2007 separate systems?  If so then you can use the XIF IDOC adapter to setup the transfer between the two systems. 
    Now if the CRM 40 system is being upgraded to CRM 2007 then you don't have to "transfer" data.
    As far as the CRM consultant role, you better understand basic IDOC setup and be able to do data mapping between the older and newer version.  Luckily you shouldn't have a lot of mapping work as 2007 IDOC structure is a refinement of 4.0.
    For more XIF information search the CRM general and framework forum.
    Take care,
    Stephen

  • Data transfer from CRM 2.0 to CRM 7.0

    Hi, Can we use XIF adaptor to transfer data (for ex : BP) from CRM older versions(for ex : CRM 2.0)  to CRM 7.0.
    If yes, pls share some documentation to do it.
    One thing I know is XIF adaptor has been available since CRM 3.0 and is not available in CRM 2.0.
    Pls let me know if there is any other technique to do this.
    Thanks in advance.

    Well the help for LSMW is pretty detailed:
    http://help.sap.com/saphelp_nw70/helpdata/en/4d/455035082e2271e10000009b38f889/frameset.htm
    It explains all the steps in detail of the tool and the overall process.  Plus if you use LSMW there is a "step-wizard" menu that lists what you need to do in a step by step fashion.  I think if you start up the LSMW screen and read this specific help page:
    http://help.sap.com/saphelp_nw70/helpdata/en/87/f3ae74e68111d1b3ff006094b944c8/content.htm
    That should help you understand how to use the tool.  You will need to decide on your conversion target, which if you follow the blog link I sent you, then you can use the XIF adapter IDOC inbound with LSMW.  You'll just need to read the function module documentation in your CRM 7.0 on the CRMXIF_*_SAVE module (where * is the object anme) to review the approriate steps.
    If you need to attach images to documents please look at the class CL_CRM_DOCUMENTS(I believe).  Do a search in this forum(open the timeframe to all of time) and there are several discussions on this.
    Here is another article(do a search on LSMW in SCN for blogs/wiki/articles) and you will find lots of great stuff:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40fb9091-21bc-2d10-6cb2-f6c310ef6244?quicklink=index&overridelayout=true
    Take care,
    Stephen

Maybe you are looking for