Problem in using a structure with a field of  data type 'RAW STRING'

Friends
I have written a ZBAPI that imports a structure which has 5 fields. I have defined this in the IMPORT tab of Tr.Code <SE37>.  One of the field of this structure is of data type 'RAW STRING'.
When I try to activate this BAPI, I get an error message as follows:
Function Module ZBAPI_ADD_CONFIG_DNA
"ZDAMPER_CON_DNA" Must be a flat structure. You cannot use internal table
strings, references, or structures as components.
Where ZDAMPER_CON_DNA is the table name that I am using.
FOR TESTING PURPOSE, WHEN I CHANGE THE DATA TYPE FROM 'RAW STRING' TO JUST A CHAR OF LENGHT 5, IT WORKS FINE.
Here is the source code of the simple BAPI that i am trying to activate.
FUNCTION ZBAPI_ADD_CONFIG_DNA.
""Local Interface:
*"  IMPORTING
*"     VALUE(CONFIG_DNA_DATA) TYPE  ZCONFIG_DNA_STRUCTURE
*"  EXPORTING
*"     VALUE(MESSAGE) TYPE  ZRETURNMESSAGE
tables: ZDAMPER_CON_DNA.
    ZDAMPER_CON_DNA-CONFIG_ID       =     CONFIG_DNA_DATA-CONFIG_ID.
    ZDAMPER_CON_DNA-STRING_NAME     =     CONFIG_DNA_DATA-STRING_NAME.
    ZDAMPER_CON_DNA-STRING_FORMAT   =     CONFIG_DNA_DATA-STRING_FORMAT.
    ZDAMPER_CON_DNA-STRING_VALUE    =     CONFIG_DNA_DATA-STRING_VALUE.
    ZDAMPER_CON_DNA-OBJECT_NAME     =     CONFIG_DNA_DATA-OBJECT_NAME.
    INSERT ZDAMPER_CON_DNA.
    MESSAGE-SUBRC = sy-subrc.
    if sy-subrc = 0.
        MESSAGE-RETURNMESSAGE = 'SuccessfullyInserted'.
    else.
        MESSAGE-RETURNMESSAGE = 'Insert Failed'.
    endif.
=============
ANY KIND OF FEED BACK WILL BE HIGHLY APPRECIATED.
THANKS
RAM

Hi ram,
there is no data element exists with the name RAW STRING ,
but check one of these names..
Data element                   Short text
C2S_RAWSTRING                  C2-Server: Data Element of Type Rawstring
N2_RAWSTRING                   Byte String of Variable Length
QISRDRAW_STRING                Data in Format RAW Character String
RCF_RAWSTRING                  Rawstring
RPAP_TEMPLATE_RAWSTRING        Blob of Template File
RSRAWSTRING                    Raw String
RSRD_RAWSTRING                 Binary Content in the Broadcasting Framework
SWH_RAWSTRING                  Workflow: Data Type RAWSTRING
WDR_RAWSTRING                  Byte Sequence of Variable Length
<REMOVED BY MODERATOR>
venkat.
Edited by: Alvaro Tejada Galindo on Mar 7, 2008 5:15 PM

Similar Messages

  • Problem using SELECT-OPTIONS in an InfoSet with a field of data type UNIT.

    I have created a simple InfoSet that links MARA with MARM. In the 'Selections' section of the InfoSet I have a variable named 'ZMEINH' defined as
    Description: UOM
    Selection Text: UOM
    Format FOR: MARM-MEINH
               EXTRAS: DEFAULT 'PAC' OPTION EQ SIGN I.
    When I ran a query to allow selections on the MEINH field, instead of 'PAC' being the default, there was "***" showing in the UOM selection and if I attempted to execute the query it gave me a message that "Unit *** is not created in languague EN'.  If I overide the "***" and enter 'PAC', I get the list of records that I expect.
    I assume this is because MEINH has a data type of "UNIT".
    How can I do a conversion so I can define a default value 'PAC' for MARM-MEINH in the infoSet that will carry through to any queries I created.
    Thank you very much for any help.
    Richard Salisbury

    Thank you both for you help!
    In our T006 there actually is a PAC and not a PAK. The T006A had as DE-PAK though.
    I had this same type of language problem when trying to match an "order type". German is the "base" language in our system so maybe that means that raw data is stored with the German constant?
    Anyway, I changed it to PAK and it works. When under a time schedule, that is what counts.
    Thank you again for the quick response!
    Richard Salisbury

  • Concatenate structure with 63 fields

    Hi all,
    I have a structure with 63 fields. We have to send all this data in text file as an email attachment. What is the best way to concatenate all this field separated by tab?
    Thanks.

    Hello,
    Try using Filed Symbols . Let your structure be WA_TEST type ZTEST.
    Data string type X
    Field Symbol <fs> type any
    Do.
    ASSIGN COMPONENT sy-index OF STRUCTURE WA_TEST TO <fs>.
    If Sy-subrc NE 0.
    Exit.
    Conactenate STRING  <fs> into STRING  separated by co_tab.
    Endif.
    regards
    Saket Sharma
    EndDo.

  • Can I enhance extract structure with standard field?

    Friends,
    Can I enhance the extract structure with standard field.
    Eg. If I want add(append) field PACKNO to Extraction structure MCVGIH. PACKNO is a field from standard table. So Can I do this and populate this without using abap code(customer exit) Should I give foreign key field also in the append stucture.
    Please help me
    Joe

    Hi Joe,
    mostly it works as A.H.P explained, because in the extractor they mostly do a move-corresponding of the fields. Sometimes they don't, specially for newer applications and extractors because the abap statement move-corresponding is on the list of obsolete statements. In that case you need to do some coding.
    So basically I would recommend to add the field, regenerate the datasource and check the result with rsa3.
    regards
    Siggi
    Message was edited by: Siegfried Szameitat

  • I am having problem while using ms word with anjal( OS X Lion 10.7.5 (11G63))

    i am having problem while using ms word with anjal  is not working properly but its working in facebook and other areas.i need and  its very important to using tamil fonts for my job.can anyone help me out from this problem.
    thanking you
    by
    moses

    Those who are knowledgable in this area (myself not among them) say that Word's support for Asian languages is faulty. The best word processor for that use is "Mellel."

  • Problems in using Windows Explorer with VPC Virtual PC?

    Has anybody experienced problems in using Windows Explorer with VPC Virtual PC?
    Lacking any "forbidden" or "appropriate usage" guidelines, I regularly use Windows Explorer (Windows 2000) to transfer file from the desktop. I have occasionally sensed that this might be wrong. Today I inadvertently clicked the MAC harddrive instead of the Desktop (within Windows Explorer) and caused all manner of mischief.
    Any other views please?

    Let me correct this:
    I regularly use Windows Explorer (Windows 2000) to transfer files from the "Mac" desktop
    Any ideas please Virtual PC VPC users?

  • AUDIO PROBLEM WHILE USING OR ALONG WITH WEBCAM

    Hi friends,
    SUBJECT : AUDIO PROBLEM WHILE USING OR ALONG WITH WEBCAM
    I'm not getting any sound while using web-cam.
    I tried recording my voice , and played.. i can see my video but audio
    Do we have any settings where i need to cross-check to make sure that everything being turned-on ?
    My laptop details:-
    HP Pavilion dv6 laptop
    Operating system Installed - Windows 7
    Can someone help me with this?
    Thanks
    kiran

    Hi,
    not sure if coincidence or the same question, but the same question got asked internally. The seeded option is required to get the OJSP filter installed. Here's the internal response
    ADF View integration with MDS not configured
    In web.xml, you need to have mds-ojsp intg enabled to load jspx base + customizations from MDS. In your web project in Jdev, go to ADFv project properties and select “Seeded customization” property. It would enable mds-jsp engine configuration in web.xml. If you want to use user personalization feature at runtime, you would need to select “User customization” property as well which would enable ADFv change persistence config in web.xml.
    Warning: Some of the metadata under ... is packaged as part of both WAR and MAR. This metadata cannot be accessed from WAR using MDS.
    For these two packages, you are including the files in both WAR & MAR. This warning conveys that since these base files are being put in MAR, at runtime they would be read from mds repository & not from WAR.
    Frank

  • Problem while creating with QUAN and CURR data type fields

    I am trying to create a Z table. A couple of fields are of data type QUAN and CURR, which need to have reference table and reference field.
    Field               DataType     Length     Decimal
    TOT_QTY       QUAN            15                 3
    PRICE              CURR             16                2
    For reference table and fields, I found a Table HRPAD23 which has a field called N_QUANTITY (15,3) that matches my TOT_QTY field's data type and it also has a field called UN_PRICE that matches my PRICE field's data type. But when I use them as reference, and try to activate the table, I get an error "combination reference table/field does not exist". How do I fix this? Can anybody help me? Thanks in advance.
    Chris
    Edited by: martin99 on Aug 18, 2011 9:16 PM

    Martin,
    I doubt that you need to add 2 extra fields in your table as suggested in the last post by John.
    Your error is very CLEAR that you seem to be use wrong combination of reference table and field.
    For QTY field,
    use ref table  -  HRPAD23.              ref field- UNIT
    OR
    ref table - VBAP                       ref field - VRKME
    For PRICE field,
    use ref table - PAD25                  ref field - KWAER
    OR
    ref table - T77REFDOC                                     ref field - CURRENCY
    It should work.
    BR,
    Diwakar

  • IT0041 - employee with more than 12 date types;

    Has anyone had an instance where an employee has had more than 12 valid Date Types on IT0041?  If so, how did you enter their 13th date type?  We have just created our 12th date type in the table and we will probably be creating a 13th date type in the near future.  We have a number of employees who already use 11 date types and could use the 2 new ones as well.  I tried to create a new Subtype for my new Date Type - but the new Subtype requires that Date Type 01 be entered.  I am not comfortable with having two identical Date Type 01s in IT0041 (one on Subtype 0001 and one on Subtype 0098). 
    Has anyone used more than one Subtype on IT0041?

    Thank you for your responses.  I don't think changing the Time Constraint class is the best solution for our organization.  We did look at that option.  I don't want to have multiple valid records; I want the ability to have more than 12 date types (values) on one record.  Also, if we allow more than one record, SAP forces us to have Date Type 01 on both valid records - I would be concerned that these values may not match, and then Time Eval would bomb. 
    I'm also still curious if anyone has used more than one Subtype on IT0041?  Again, we did try this, but SAP forces a Date Type 01 on both Subtypes.

  • How to Transfer Database Table Field to Data Type in XI

    Dear All,
    Dear All,
    I am working on scenario to transfer data(Database Table) from Non SAP System to SAP system through XI.
    While Defining "Data Type" in XI i want to create Data Type as of Database table in my(Oracle Database).There is any direct method to import Database Table field into "Data Type" in XI.
    thanks,
    RP

    Hi;
    Edit plus is a tool using which you can edit your file and make changes to it.
    You can download it from net ,just search for it on google.
    this will help you to get in the field names of the table by editing the file .
    Mudit

  • How to set a default date for a custom field of Date type in project server 2010.

    hi,
    can somebody help  me.
    How Can i set the default date for a custom field of date type in project server 2010 ?

    Dear Rohan,
    You can set default value to custom field thru Lookup table. Assign lookup table to custom field and set default value to some lookup value (Note: check the “Choose a value to use as a default when adding new item” checkbox).
    Regards,
    Avinash kumar | Blog:http://avigr8.wordpress.com | If you found this post helpful, please “Vote as Helpful”. If it answered your question, please “Mark as Answer”.

  • How to set focus on field having data type other than character(eg. NUMC)

    Hello all,
    I have developed one screen having table control inside. In table control suppose if numeric type field is blank(eg. Employee number of data type NUMC), system should throw error message and should put cursor focus on that perticular filed. In the same table control for fields of data type 'CHAR',  I have done this using 'SET CURSOR FIELD' .
    Please, suggest me how to set cursor focus on the fileds of data type other that character(eg. NUMC)

    Have you tried it?  SET CURSOR FIELD ... works fine for type 'N' fields in a table control.  The restriction is 'character-type' and 'flat'.  Type 'N' (or NUMC-like) fields are both.

  • Whts the signifacnce of MANDT field wid data type CLNT in DB table  ??

    nybody pls explain in details?
    Whts the signifacnce of MANDT field wid data type CLNT in DB table  ??
    why fields ( ex- Kunnr - CUSOMER NO. ) is repeated in many tables, but not as a Primary Key , so whts d need to include dis field in many tables? we can fetch the sem field  from a single Table?/

    Hi sager
      MANDT is field for client , means it describes the parcular data is for perticular CLIENT.
      with this field you can contain data for multiple client is one table, that is the advantege.
    and read some basic tutorial .
    Thanks & Regards
    Prashant Gupta

  • How to create a structure with reserved field

    hi :
        I meet  a problem .
        That when I cteate a global structure in ddic . named  zgs_outtab .
        The requirement  that let me create a  field . It's description is 'Sales office' and  reserved  this field ,and don't fill data for this filed .
        but I don't know the  data type ,so when I  check ,I report me the error .
       Which data type I should use .?
       Thank you .
    Description     Table     Fields     Remarks
    Sales office               reserved field   don't fill data
    Edited by: chao zhangchao on Feb 16, 2009 3:14 AM

    table: TVBUR Sales office
    TVKBT Sales office text

  • Generic delta   using function module with two fields  AEDAT AND ERDAT

    Hi,
        i have scenario that i have to create a generic data source  having delta using funcation module and the delta speci fields are AEDAT AND ERDAT . Is there possibility with out using these two fields ( i mean AEDAT AND ERDAT)  in the extract structure can i create the data source . and provide sample code for me . it is very urgent.
    waiting for the reply,
    sri.c

    Hi Sri,
    here some coding, I hope this helps!
    first, get the delta-field
          LOOP AT s_s_if-t_select INTO l_s_select.
            CASE l_s_select-fieldnm.
              WHEN 'ZDATE'.
                MOVE-CORRESPONDING l_s_select TO r_date.
                IF r_date-high IS INITIAL OR r_date-high = space.
                  r_date-high = '9991231'.
                ENDIF.
                APPEND r_date.
            ENDCASE.
          ENDLOOP.
    Cursor öffnen
          OPEN CURSOR WITH HOLD s_cursor FOR
          SELECT * FROM
          WHERE  ....
          AND    erdat in r_date
          AND    aedat IN r_date.
          FETCH NEXT CURSOR s_cursor INTO CORRESPONDING FIELDS OF table e_t_data package size s_s_if-maxsize.
    regards
    Siggi
    PS: Note that this coding only works for a very straight forward extraction.
    Message was edited by: Siegfried Szameitat

Maybe you are looking for

  • I lost all my pictures in Aperture and I used Time Machine to restore the lost pictures.

    After losing all my pictures on Aperture and not being able to restore the the pictures using Time Machine as instructed by Apple Care.  I searched the web on how to restore the pictures using Time Machine and did not find a good solution.  So with t

  • Invalid content type for SOAP: TEXT/HTML

    Hi guys, I’m trying to sending a message via sender soap adapter and I’m receiving this error: Exception caught by adapter framework: invalid content type for SOAP: TEXT/HTML I already have read most off all posts about this error in this forum. So,

  • County Code in UI forms

    Hi All If some of you have been working on the Tax reports and especially the UI forms, you might have noticed the forms have a field/position for the 'COUNT OF MOST USED COUNTY CODE ' and 'COUNT OF LESSER USED COUNTY CODE '. This basically has the v

  • AIFF 48k 16bit audio files still silent in FCE   help!

    (I posted this in an "answered" string, so I thought I'd start a new one to hopefully finally get this resolved.) Hello, I've been struggling on and off with this for a week now...(I'm a newbie with this software, but have learned a lot). I need advi

  • Updating files inside App Bundle

    This is dealing with an app bundles in the normal desktop environment. I have a bundle I've created that has already been distributed. We've updated the code in the Jar file some and want to push this new Jar out to the existing bundles. There are us