Need help in Conversion routines

Hi,
In table crmd_order_index <b>there is a field GUID of data type CRMD_OBJECT_GUID and domain SYSUUID which is RAW 16.</b>
<b>and in the another table a thr is a field OBJKEY of data type char 70.</b>
When i execute the code
    <b>SELECT guid
    FROM CGPL_PROJECT
    INTO gs_guid
    WHERE external_id = p_caid.</b>
**get the ROLEID with respect to the object key and type ‘BUS2010020’
  <b>SELECT roleid
    FROM SRRELROLES
    INTO gs_roleid
    WHERE objkey = gs_guid
    AND objtype = ‘BUS2010020’.</b>
When i
avtivate it is it is throwin an error sayin dat
"<b> GS_GUID and OBJKEY is not mutually convertible in a unicode program.... "
and the guid is coming from CGPL_PROJECT.</b>
Please Could anybody reply me ASAP.
regards,
Shiva shekar k

Change the code like this
SELECT guid
FROM CGPL_PROJECT
INTO gs_guid
WHERE external_id = p_caid.
data objkey type SRRELROLES-objkey.
objkey = gs_guid.
SELECT roleid
FROM SRRELROLES
INTO gs_roleid
WHERE objkey = objkey
AND objtype = ‘BUS2010020’.
Reward points if useful

Similar Messages

  • Need help for Conversion Function in Oracle

    Hi, Can Any One help me Please.
    I need a Oracle conversion script for converting from decimal to hex. and decimal to datetime.
    Thanks In Advance.

    Hi,
    for the Hex-Number-conversion see:
    [url http://psoug.org/snippet/Convert-Hex-to-Decimal-Decimal-to-Hex_78.htm] self-defined Conversion-Functions
    What number format do you have? YYYMMDD
    Or is there a Date corresponding to 1 and a number n represent the date n-1 days after day 1?
    Please describe further.
    Bye
    stratmo

  • Need help with transfer routine.

    I am doing this enhancement in BW 3.5 version.
    There is an object in ODS - > ZPATHNM (Pathname)
    It gets data from ZPTDIR object.
    Now, 0MATERIAL infoobject has text data. For PATH type materials it has descriptions like pt/dat/fafg.2.0 , pt/dat/ovg.2c ... so on.
    The content after pt/dat/ for example fafq.2.0, ovg.2c is available in ODS object ZPATHNM (Pathname)
    Since I have to extract PATH material numbers. So I created another object ZPATHMAT and mapping it to ZPTDIR.
    I have to write a transfer routine when the 0MATERIAL text description had description beginning with pt/dat/ and the text after pt/dat/ is equal to data in ZPATHNM. i should get material number in ZPATHMAT.
    This is the transfer routine, I have written between ZPATHMAT  and ZPTDIR . This is working fine.
    Data : ZDIRNAM type String,
                ZCONT1 type string,
                ZCONT2 type string,
                ZMATERIAL(18) type C.
    ZDIRNAM = TRAN_STRUCTURE-ZPTDIR.
    IF ZDIRNAM is not Initial.
    Concatenate 'pt/dat/' ZDIRNAM into ZCONT1.
      Select single MATERIAL
        into ZMATERIAL from /BI0/TMATERIAL
    where TXTMD = ZCONT1.
    RESULT = ZMATERIAL.
      ENDIF.
    Now there is another requirement, where I have to create one more object, ZPATHDES. This object should get Material description for path type materials from 0PROD_HIER text table.
    This object, 0PROD_HIER is an attribute of 0MATERIAL.
    So the logic to get the material description into ZPATHDES, is when the material number in 0MATERIAL is equal to material number in  ZPATHMAT (generated from above routine), I should get description (TXTMD) from text table of 0PROD_HIER (/BI0/TPROD_HIER) into this ZPATHDES object.
    I able not to connect this logic in the code and it is throwing errors.
    I need help in coding.
    Thanks.

    Very hard to understand the logic in a thread. Can you please write your code, which is throwing errors? May be that will help us.
    Regards
    amandeep sharma

  • Need help on conversion

    hi friends
    Ive a sqlserver query to be converted into pl/sql, I cant understand it . Can any one please convert this query
    = STUFF(securityname, (CHARINDEX(',',s_name,1)), 1, ' ')
    FROM Report Where (CHARINDEX(',',s_name,1)) > 0
    this is an update statement
    thanks
    :)

    need help on conversion

  • Need help to write Routine

    Hi Gurus,
    I need your urgent help on one requirement. I have to write a routine and the requirement is to bring data for K.F. "B" via comparing Materials between 0Material and 0MAT_UNITS.
    0Material is already present in my flow and being loaded from DSO1 to DSO2 but 0MAT_UNITS not present. So I have to use a look-up on it using Materials from 0Material.
    Materials has to be taken from 0Material and using condition as Observer-A(active)  have to match with the materials of 0MAT_UNITS. If the material is present in 0MAT_UNITS with observer 'A' then take the Denominator and Numerator value for that material and produce a conversion factor for that material i.e. (Denominator/Numerator).
    Now this factor need to be multiply with a K.F. "A" (already present in my DSO1) and assign the value to K.F. "B" as output (DSO2).
    So pls guide me how should I code it in routine and which type of routine should I prefer.
    Any effective help will be highly appreciated!!!!

    Dear Ravi,
    Thanks for the promt response.
    Actually no as such user exit is found for this requirement.
    U know in the transaction VOFM we can create formula for example in my case for condition value..this is achieved by routine(some form in the include program) and then the routine number can be assigned in the configuration setting for the particular transaction. This is what info so far I have searched..but how to crete the routine and all.still i'm searching. Hope I gave you some ground abt the prob??
    So if any body have ever come across this requirement..please suggest.
    Thanks.
    Anup.

  • Urgent !!! Need help in modifying routine in transformation?

    Hi
    I am using following routine in a transformation for Location number characteristic.
        data: lv_country type /BIC/PZCUSTOMER-country.
        select single country
          into lv_country
          from /BIC/PZCUSTOMER
          where /BIC/ZCUSTOMER = SOURCE_FIELDS-CUSTOMER and
                objvers = 'A'.
        if sy-subrc = 0.
          RESULT = lv_country.
        endif.
    The modification is
    a.       Currently the ZLOCNO is set to be the country of demand, This is what I need it to be:
       i.      IF   Company Code = 70, then set ZLOCNO = “VS”,
               ELSE    set ZLOCNO = ZLOCNO__0COUNTRY from the ZLOCNO characteristics. Use the county code from the existing routine for lookup.
    Please help me out to write a routine for this

    Hi,
    In 7.0, global declaration of start routine will be in a specific place. Declare the variable under this part in the start routine.
    $$ begin of global - insert your declaration only below this line  -
    ... "insert your code here
    $$ end of global - insert your declaration only before this line   -
    Vivek

  • Need help on building routine!

    Hi,
    Here is my scenario----
    we have a report which would give the information on developer activities over a period of time. that report would give the information such as, who is the developer working on which request , how much was the planned time for that request for the developer and what is the actual time the developer has taken and so on---
    That report does not have the closing date for the request.  However it does have the status of the request .
    now i need to fill up a field in cube which would calculates the closing date of CR depending on the status of the request and the date ( last date of activity for the request ). now the date field ( last date of activity for the request )  s not in transfer rules. of course it is der in R/3.
    in my requirement text it was only written to add one characteristic which we need to fill up in update routine that i had already done.
    what i should do now? shall i add one more field ( last date of activity for the request)  in TRs? i did not arrive to a conclusion for update routine logic either!
    here is what i tentatively willing to written !
    if status of the request = closed
    then closed date = last date of activity for the request) this filed is not in BW
    else ---
    can  some body help me in buliding code and what should i do with that unavailable date field in BW?
    Many thanks in advance!
    Ravi

    Hello All,
    let me know if u need furthur information
    Thanks,
    Ravi

  • Need help with conversion progrma for MTS video files.  Can't download videos from Sony TX-10 camera

    Have new macbook pro 13".  Can't download videos from our Sony TX-10 camera.  I understand I need some kind of conversion program for MTS video files.  Need recommendation for a good conversion program to convert the video files.
    Thanks, chieftd

    Well, sigh, that's not going to work.
    I love how I can do months of research to choose the best camera for my needs and budget, which is NO easy task these days, but surprisingly find it on the unsupported list when it's a very popular camera.  So, while it seems to support a whole bunch of other AVCHD options from Sony, not the NEX cameras.
    The NEX cameras are the latest generation of mirrorless cameras (which, ironically, are great b/c they give dSLR quality still images while actually producing HD video that always records silently and stays in focus b/c it's mirrorless).  The NEX 7 was just reviewed as Camera of the Year.
    Bleh. Oh well. Maybe someday.
    And, for anyone reading, Roxio Toast Titanium did convert it just fine but it took about 20 min or my time to set up a handful of clips and then a couple hours to complete converting them for the quality I was looking for.  One was about 10 minutes of a kids' performance on Christmas and it took a long time. It's just not feasible given how many video clips I do with the camera a week - well, feasible when you consider all the cameras where this would be seamless.
    Thanks for posting your reply - I appreciate it.

  • Need help with SCHECK routine in RFFOUS_C(it produces an extra page!)

    Hello Experts,
    I noticed that in one part of the routine SCHECK which can be found in standard program RFFOUS_C, there
    is a code that for EVERY END of a house bank, it calls again the window 'CHECK' and element 540. Now,
    this creates an extra page which I do not need. Also, they wouldn't let me customize the standard program
    since it is being used by many companies. I tried commenting the element but it produces an error.
    So for example I only have 3 payment documents, it should produce only 3 pages. I have checked the line items
    and they are not enough to trigger an overflow.
    Below is the code which causes an extra page:
    *-- Ende der Hausbank --------------------------------------------------
    *-- end of house bank --------------------------------------------------
        AT END OF reguh-ubnkl.
          IF cnt_formulare NE 0.           "Formularabschluß erforderlich
                                           "summary necessary
    *       close last check
            CALL FUNCTION 'CLOSE_FORM'
                 IMPORTING RESULT = itcpp.
            IF itcpp-tdspoolid NE 0.
              CLEAR tab_ausgabe.
              tab_ausgabe-name    = t042z-text1.
              tab_ausgabe-dataset = itcpp-tddataset.
              tab_ausgabe-spoolnr = itcpp-tdspoolid.
              tab_ausgabe-immed   = par_sofz.
              COLLECT tab_ausgabe.
            ENDIF.
            CLEAR flg_druckmodus.
            IF hlp_laufk NE '*'            "kein Onlinedruck
                                           "no online check print
              AND par_nosu EQ space.       "Formularabschluß gewünscht
                                           "summary requested
    *         Formular für den Abschluß starten
    *         start form for summary
              SET COUNTRY space.
              IMPORT itcpo FROM MEMORY ID 'RFFORI01_ITCPO'.
              itcpo-tdnewid = space.
              CALL FUNCTION 'OPEN_FORM'
                   EXPORTING
                        form     = t042e-zforn
                        device   = 'PRINTER'
                        language = t001-spras
                        options  = itcpo
                        dialog   = space.
              CALL FUNCTION 'START_FORM'
                   EXPORTING
                        startpage = 'LAST'
                        language  = t001-spras.
    *         Vornumerierte Schecks: letzte Schecknummer ermitteln
    *         prenumbered checks: compute last check number
              IF flg_schecknum EQ 1.
                PERFORM schecknummer_ermitteln USING 3.
              ENDIF.
    *         Ausgabe des Formularabschlusses
    *         print summary
              CALL FUNCTION 'WRITE_FORM'
                   EXPORTING
                        window = 'SUMMARY'
                   EXCEPTIONS
                        window = 1.
              IF sy-subrc EQ 1.
                err_element-fname = t042e-zforn.
                err_element-fenst = 'SUMMARY'.
                err_element-elemt = space.
                err_element-text  = space.
                COLLECT err_element.
              ENDIF.
    *         Fenster Scheck, Element Entwertet
    *         window check, element voided check
              CALL FUNCTION 'WRITE_FORM'               "<-------IT CALLS AGAIN THE CHECK WINDOW SO
                   EXPORTING                         "ANOTHER PAGE IS CREATED WHICH I DO NOT NEED
                        window  = 'CHECK'
                        element = '540'
                   EXCEPTIONS
                        window  = 1        "Fehler bereits oben gemerkt
                        element = 2.       "error already noted
    *         Formular für den Abschluß beenden
    *         end form for summary
              CALL FUNCTION 'END_FORM'
                   IMPORTING
                        RESULT = itcpp.
              IF itcpp-tdpages EQ 0.       "Print via RDI
                itcpp-tdpages = 1.
              ENDIF.
              cnt_seiten = itcpp-tdpages.  "Für vornumerierte Schecks
                                           "For prenumbered checks
              IF flg_schecknum EQ 1 AND cnt_seiten GT 0.
                PERFORM scheckinfo_speichern USING 3.
              ENDIF.
    *         Abschluß des Formulars
    *         close form
              CALL FUNCTION 'CLOSE_FORM'
                   IMPORTING
                        RESULT = itcpp.
              IF itcpp-tdspoolid NE 0.
                CLEAR tab_ausgabe.
                tab_ausgabe-name    = t042z-text1.
                tab_ausgabe-dataset = itcpp-tddataset.
                tab_ausgabe-spoolnr = itcpp-tdspoolid.
                tab_ausgabe-immed   = par_sofz.
                COLLECT tab_ausgabe.
              ENDIF.
            ENDIF.
            IF NOT itcpp-tdspoolid IS INITIAL.
              CALL FUNCTION 'RSPO_FINAL_SPOOLJOB'
                   EXPORTING
                        rqident = itcpp-tdspoolid
                        set     = 'X'
                        force   = 'X'
                   EXCEPTIONS
                        OTHERS  = 4.
              IF sy-subrc NE 0.
                MOVE-CORRESPONDING syst TO fimsg.
                PERFORM message USING fimsg-msgno.
              ENDIF.
            ENDIF.
          ENDIF.
        ENDAT.

    I guess, with out customizing the driver program your issue will not be solved.
    Don't worry, even if you customized your driver program it will not effect othr companies that are using it.. since check printing program configutation is done at company code level.
    For more information on config of check printing program visit transaction code FBZP.
    Regards,
    SaiRam

  • Need help in conversion of pdf file to itab and d details abt SMARTFORMS

    hello all
    how can i retrieve data from  pdf  file (instead of a txt format) to an internal table for an BDC application .
    anyone of you please help me in SMARTFORMS .

    Hi,
    If you want to conver report data in pdf format then you have to made some changes in programe and some setting done by abaper in the programe.
    Regards,
    Anil

  • Need help in Conversion of Distance using the FM 'UNIT_CONVERSION_SIMPLE'

    Hi Group,
    I have a requirement to convert a value of type (NUMC - length 4) which has the value for Distance.
    Now I am using the FM 'UNIT_CONVERSION_SIMPLE' to convert the value of the above from 'Meter' to 'KM' as under:
      CALL FUNCTION 'UNIT_CONVERSION_SIMPLE'
        EXPORTING
          input                    = value_in(value of the above mentioned field)
          unit_in                 = 'M'
          unit_out              = 'KM'
        IMPORTING
          output               = value_out(this value should have the calculated value of the Distance in KM).
    and now, I will pass this(value_out) to the field of (NUMC - lenght 4).
    I was facing issues while executing the Function Module as :
    'Please use a number field for the input value'.
    please let me know how to overcome this error or else let me know any other alternative solution is available to overcome this.
    thanks for your help in advance.
    Regards
    Vishnu.

    Hello
    Try to use FM 'MATERIAL_UNIT_CONVERSION'
    And read this: UNIT_CONVERSION_SIMPLE

  • Need help in Conversion

    Hi,
    Iam doing a report on enhancement,
    when i use teh code below for the conversion its giving an error
    To convert GUID in the unicode format
                <b>DEFINE move_casting.
                  assign &1 to <unicode_x1> casting.
                  assign &2 to <unicode_x2> casting.
                  move <unicode_x1> to <unicode_x2>.
                END-OF-DEFINITION.</b>
                move_casting gt_guid gt_guid_new.
    fetch the roleid with respect to the guid
               <b> select objkey roleid
                from srrelroles
                into corresponding fields of table gt_roleid
                for all entries in gt_guid_new
                where objkey = gt_guid_new-guid
                and objtype  = c_objtype.</b>
    Its giving an error saying that
    <b>" gt_guid_new-guid and OBJKEY is not mutually convertible in a unicode program.... "</b>
    and one more question is whether the move casting is possible with the internal tables because previously i  used the same casting for work area but now its showing an error when i used it for internal tables.

    Hi
    Try FM <b>SCMS_BINARY_TO_STRING</b>
    Refer this thread Convert RAW 1022 to CHAR 255
    Also, check this class  CL_ABAP_CHAR_UTILITIES
    Refer:
    Can nyone describe attributes of class CL_ABAP_CHAR_UTILITIES
    Regards
    Raj
    Message was edited by:
            Rajasekhar Dinavahi

  • Need help with conversion of TDMS to Excel VIs

    Would somebody bother to convert these VIs to LabView Version 8.6, please?
    Signalmessung_Export_Excel_final.vi
    and the one attached. (Both are from this forum. I found them when searching for TDMS and Excel)
    Very clever having set up such a conversion board!
    Thank you !
    Attachments:
    tdms.vi ‏5 KB

    In the future, please indicate the version of the source VIs. Thanks.
    Attached is the "Signal..." VI. The other VI was just a blank VI. Did you upload the right one?
    Attachments:
    Signalmessung_Export_Excel_final.vi ‏217 KB

  • Need help in conversion(its urgent)

    hi,
    have any one tried the BPEL for the conversion process? if so pls let me know immediately.

    hi,
    thanks Marcelo, the information provided will be in the form of flat file. we do use file adapter, db Adapte,OA adapter.
    can you pls tell me what are the ways you hae used for the instances.
    the validations are done thru pl/sql procedures. we do call those procedures for pushing it into interface table and also call the concurrent procedures.
    the information means- the data given or the business rules?
    after this the info will be saved in a oracle database.
    what we want is to handle the errors which are thrown when the process been deployed. its hard to find the error like,(ORA-01401-Insert value to large for column..) and even we cant handle oracle thrown errors. frankly speaking pls tell me about handling all possible exceptions(oracle, apps,bpel-both compilation and deployment).
    if possible could you pls give me your contact information.sorry for asking so, since the timeline for us is very short, we have only a week time more.
    lots of thanks for your immediate reply.
    thanks,
    sneha

  • Need Help with conversion of .ondd to PDF

    Do you have in design?

    I've branched your question to a new thread and retitled it so that someone might be able to help you.
    What can you tell us about the .indd file, and what type of PDF -- Interactive or Print? Do you have the entire Indeagin Package foler with the links and font, or just the .indd file itself?

Maybe you are looking for

  • Is adobe photoshop cs2 compatable with windows 8?

    Is adobe photoshop CS2 compatable with windows 8?

  • Data written to socket getting lost?  or perhaps out of order?

    I'm trying to fix a bug in Flashmog. The bug is described in more detail here. Basically what is happening is that my Flash client claims that it is calling functions that don't arrive at the server -- or they arrive, but the socket data is out of or

  • Two IPod Family: How do we separate our accounts?

    I have had my IPod Nano for a year now. My son just bought himself one yesterday and we loaded the program unto the computer. Two Itune Icons appeared and each of the two downloaded my songs which are not his taste. So I deleted my songs from the sec

  • Domino . Which notes client to should be used ?

    Hi All, we are in the process of integrating domino resource with Sun IDM 7.1. On the gateway machine ,notes client should be installed. Can you please tell me which client needs to be installed ? Is it Lotus notes mail client or Domino Admin client

  • RTMT trace read.

    Hi Techizzz, Is there any documents for the RTMT trace read(like key words and how to read the trace). If anything have please share. Thanks in advance.