DATA TYPE IN ABAP CORRESPONDING TO TYPE REAL IN MDM

Hi all,
I am working on a code to fetch data from MDM, using the  *MDM ABAP APIs*_._ I could retrieve almost all the Fields except for one, which has data type REAL in MDM. I need to find the type in ABAP, corresponding to the type REAL in MDM. I need to define this field in the structure but I am not sure as to which data type to put against it. I have already tried float, decimal, string, char... nothing works!!
Kindly let me know if anybody has come across the same issue and resolved it.
Thanks and regards,
Aastha

Hello,
We're getting the same problem too.
Have you deleted your Real fields and u've created them as a measurement field?
Is it really necessary to create the fields with type 'measurement'?
Or do you maintain in MDM your field with type Real and you treat it as type 'mesurement' into your ABAP API with measure 'none', while in SAP ECC it's created as a numeric with decimals.
Thanks for your feedback!
Carlos Santamaría.

Similar Messages

  • XSD Data Type to ABAP Proxy Tech. Type

    I am working with an ABAP development team who is creating PROXYs from the Service Interfaces I have setup in the ESR (PI 7.11). I have been asked to set the type of a numeric field by the ABAP developer as this:
    "Yeah we can convert from string to currency but sap internally stores currency with 3 decimals so we may got to do some multiplications and divisions based on how many decimals sender passes. If you could create a numeric with 3 decimals that is ideal."
    The XSD type as xsd:decimal, but in the proxy it seems to create Tech. Type = STRING.
    I can apply formatting rules in the message mapping, but developer is convinced that the Service Interface can have the correct ABAP Tech. Type. I do not find any messages in this forum, so not sure what to do.
    Thank you for your time.

    Internal ABAP types like packed or float cannot be created by ABAP proxy.
    I recommend to use String for any type. Inside XML you will have a String representation anyway, but you will encounter less issues in converting from XML to ABAP internal types.
    I work a lot with currency fields, it is no problem at all. Inside ABAP you mave currency field to string field, the decimals are correct.
    If course, in mapping you have to create a decimal field, but this would not be any change, if you had a decimal type in ABAP.

  • Plz help upgrade issue moving data from char type structure to non char typ

    Hi Experts
    plz help its very urgent
    Data :workout(5000) .
    FIELD-SYMBOLS : <FS_WORKOUT> TYPE ANY.  
    workout = '         u' .
    ASSIGN WORKOUT TO <FS_WORKOUT> CASTING TYPE C .
                      BAPISDITM = <FS_WORKOUT>.
    i am getting dump after BAPISDITM = <FS_WORKOUT>.
    i think i am getting the dump bcoz i am moving character type structure to non character type structure but i think with field symbols we can remove this issue thats y i used it but its not working plz help me
    its very urgent
    *dump is :*
    Short text
        Data objects in Unicode programs cannot be converted.
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "ZSDR0009" had to be terminated because it has
        come across a statement that unfortunately cannot be executed.
    How to correct the error
        Use only convertible operands "dst" and "src" for the statement
           "MOVE src TO dst"
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "UC_OBJECTS_NOT_CONVERTIBLE" " "
        "ZSDR0009" or "ZSDR0009_I02"
        "USER_COMMAND"
    thanx in advance

    i got d solution in this thread
    Hi all,
    data: gv_line(6000) type c.
    Bvbapkom = gv_line.
    But i am getting the Error like : gv_line and Bvbapkom are not mutually convertable.
    Note: Bvbapkom is a Structure
    How do i solve this ?
    Mahesh
    KR  
    Posts: 210
    Registered: 11/24/06
    Forum Points: 0 
      Re: gv_line and Bvbapkom are not mutually convertable.  
    Posted: Nov 30, 2007 8:40 AM    in response to: KR         Reply 
    Hi ,
    i got the solution
    ANSWER:
    Field-symbols: <X_Bvbapkom> type x,
    <X_gv_line> type x.
    Assign: Bvbapkom to <X_Bvbapkom> casting,
    gv_line to <X_gv_line> casting.
    <X_Bvbapkom> = <X_gv_line>.
    Nasaka Ramakris...  
    Posts: 4
    Registered: 1/19/08
    Forum Points: 20 
      Re: gv_line and Bvbapkom are not mutually convertable.   
    Posted: Jan 19, 2008 7:42 AM    in response to: KR         Reply 
    Hi Check this answer.
    ANSWER:
    Field-symbols: <X_Bvbapkom> type x,
    <X_gv_line> type x.
    Assign: Bvbapkom to <X_Bvbapkom> casting,
    gv_line to <X_gv_line> casting.
    <X_Bvbapkom> = <X_gv_line>.

  • Declaring deep types in ABAP code

    I am struggling with the declaration of local types in an ABAP program. When I declare a structure that contains a component which I reference to a previously declared table type, the system gives a compile error.
    The following code gives an error on the highlighted line:
        types: begin of ts_docprop,
                 key type string,
                 value type string,
               end of ts_docprop.
        types: tt_docprop type standard table of ts_docprop.
        types: begin of ts_document,
                 document_id type string,
                 document_type type string,
                 properties type tt_docprop, "<<<<< Error here
               end of ts_document.    
    This results in the following error:
    "TT_DOCPROP" has a generic type. Use of this type is only possible for typing field symbols and formal parameters
    However, I am sure it must be possible to declare a deep type this way.
    Instead, I have to resort to proxying declarations via data, which seems totally unnecessary:
    types: begin of ts_docprop,
              key type string,
              value type string,
            end of ts_docprop.
    data: ls_docprop type ts_docprop.
    types: tt_docprop like standard table of ls_docprop.
    data: lt_docprop type tt_docprop.
    types: begin of ts_document,
              document_id type string,
              document_type type string,
              properties like lt_docprop,
            end of ts_document.
    The first method above would be analogous to declaring structures and table types in the DDIC and should work. What have I missed?

    Hi,
    Try:
    TYPES: BEGIN OF ts_docprop,
                 key TYPE string,
                 value TYPE string,
               END OF ts_docprop.
      TYPES: tt_docprop TYPE STANDARD TABLE OF ts_docprop WITH NON-UNIQUE DEFAULT KEY .
      TYPES: BEGIN OF ts_document,
               document_id TYPE string,
               document_type TYPE string,
               properties TYPE tt_docprop, "<<<<< Error here
             END OF ts_document.

  • Defining complex types in ABAP

    Hi Folks,
    I am new to the ABAP world and has started programming in it for about two weeks now (therefore, two weeks of experience so far ). I have a question regarding definition of complex types in ABAP. Basically what I want to achieve is to define a type which is either mytype1 or mytype2. During the runtime, it should be decided whether complextype is of mytype1 or of mytype2. Maybe to put some more concrete context: I will call a method with an object of type "complextype". Depending how I set this object, this will be of mytype1 or mytype2. Please see the code schema below.
    TYPES BEGIN OF mytype1.
        TYPES:
        TYPES END OF mytype1.
    TYPES BEGIN OF mytype2.
        TYPES:
        TYPES END OF mytype2.
    TYPES BEGIN OF complextype.
        TYPES:
              mytype_name TYPE mytype1,
              mytype_name TYPE mytype2.
        TYPES END OF complextype.
    Is this a correct way to approach? If yes, how can I express this (either mytype1 or mytype2 but only one of them at a certain time) in ABAP types correctly?
    I will appreciate any kind of help.
    Thanks a million,
    Boldbaatar
    Edited by: Boldbaatar Tsend-Ayush on Apr 6, 2011 8:24 PM

    Hi,
    I think you should use the dynamic data reference .
    TYPES BEGIN OF mytype1.
        TYPES:
        TYPES END OF mytype1.
    TYPES BEGIN OF mytype2.
        TYPES:
        TYPES END OF mytype2.
    data: dref_complex type ref to data.
    field-sumbols:<fs_any> type any.
    if type eq mytype1.
    l_type = 'MY_TYPE1'.
    elseif type eq mytype2.
    l_type = 'MY_TYPE2'.
    endif.
    create data dref_complex type (l_type).
    "In order to access the components of  dref_complex , you should assign the same to field symbol
    assing dref->*  to <fs_any>.
    "then u can use  ASSIGN COMPONENT to get individual components
    Regards
    Arshad

  • How can we relate c and x  types in ABAP

    hi all,
    I would like to know how we could relate c type and x type in ABAP.
    In terms of size specification.
    Thank you all
    prasad.

    Hi Prasad,
    Consider the following code snippet -
    data : char type c,
           hexa type x.
    Now, both these variables are of 1 byte each. However, they store different kinds of data, so we have -
    hexa = '41'.
    write : hexa to char.
    write: char , hexa.
    hexa is going to store the hexadecimal number 41. (the decimal equivalent is 65). The first write statement does the automatic type conversion. so we get the 65th ASCII character in the character variable (which is the capital A).
    Hope that helps.
    Regards,
    Anand MAndalika.

  • Regarding Idocs and  their corresponding message types

    Hi,
    Being am a trainee can u plz help in providing a list of Idocs and corresponding Message types that are using
    in real time..
    Thanks & Regards
    Guna

    Go to "jdk/include" on your drive and take a look at "jini.h". Note, mapping of C type to java types may be different for 16,32 or 64 bit machines. Using jinit, jboolean and others is recommended. On the other hand, if you are sure you won't use your C code in 64 bit or 16 bit environment just forget about it and assume int is java int, long is java long, signed char is java byte and so on. Pointers are more tricky - read carefully jini tutorials.

  • How to know system inst type. (ABAP or APAP+J2EE)

    Hi all,
    i have R/3 ent system in Hp-ux (oracle 9i), i want know my system  installation type
    is ABAP system ? or ABAP+J2EE system ?
    Please reply me
    Regards,
    satish k

    Hi,
    there are various way to check that
    - check \usr\sap\SID\DVEBMGS<instance number>\ j2ee folder exists or not
    - check your default profile using RZ10 and search for paramater j2ee/*
    -SMICM->goto->http server->display data
    regards,
    kaushal

  • Data inconsistency: posting with restricted transaction type (FAA_POST047)

    Hi colleagues!
    I have the following error:
    Data inconsistency: posting with restricted transaction type
    Message no. FAA_POST047
    Diagnosis
    You are trying to post in company code 1000 with transaction type 130 in ledger group 0N. According to table TABWA, this transaction type is limited. Nonetheless, according to your entries, you want to post to area 11.
    System Response
    Using limited transaction types is obsolete and would lead to an inconsistent posting in this situation. The system rejects the posting.
    Procedure
    Use a transaction type that is not limited. And, if possible, choose the ledger group and/or depreciation area on the initial screen.
    According to specific accounting we shouldn't post to one of the depr. area, so most of the tr.types are restricted to post to all areas except this one.
    Because of this, posting from MM with acc.assignment 'A' is impossible - I have this error.
    Any ideas how to solve?
    Thanks in advance

    Hi Anton
    This looks like your transaction type -130 is limited to post only in ledger group-0N as per the transaction type configuration. Due to which system is unable to post all the ledgers and hence this lead to inconsistency.
    Please verify the transaction type 130- in configuration T code - OAYA and see if it is restricted by depreciation area (eventually allow to post only ledger group- 0N.
    Tcode - OAYA (Limit Transaction Types to Depreciation Areas)
    please verify and let us know the update. hope this helps
    Best Regards
    Jomon

  • Error message "Data cannot be maintained for set type COMM_PR_PUR_1

    Hi
    While replicating the material master through R3AS I am getting an error for which the details to be checked in SMW01. In SMW01 when I selected the record for error details I am getting above error message.  How to resolve ? Pls guide me stepwise. For your information I has cleared SMQ1 in R3 & SMQ2 in SRM
    For curioisity next I selected all such error logs & deleted. It gave me one warning (some inconstinecies error) which I ignored. After that I checked SMQ1 of R3 & SMQ2 of SRM. No log
    But I observed a strange thing. Whatever material codes I am creating it is going straightway to SRM without running R3AS transaction. I checked R3AM1, selected the row and cancelled. But still going without any interferrance. Why ? How shall I stop this.
    Thanks

    Hello,
    >
    BNR wrote:
    > Hi
    > While replicating the material master through R3AS I am getting an error for which the details to be checked in SMW01. In SMW01 when I selected the record for error details I am getting above error message.  How to resolve ? Pls guide me stepwise. For your information I has cleared SMQ1 in R3 & SMQ2 in SRM
    >(...)
    Have a look at OSS note 1049693 - Data cannot be maintained for set type COMM_PR_PUR_1.
    Regards.
    Laurent.

  • Error in ABAP Mapping (type SAP-ABAP, kernel error ID UNCAUGHT_EXCEPTION)

    Hi ,
      Scenario:  Manually Purchase Order is created, automatically Sales Order should be created in the Target System through PI,
                       I have used Message Mapping which is working fine for single Customer and Vendor,
                       For Multiple Customers and Vendors i am using one ZTABLE, Only Message Mapping is not  sufficient to my requirement.
                      Now i am using both Message Mapping and   ABAP Mapping  at a time in Interface Mapping. I created the class and                done  the   development., whene  i run the scenario i am getting the error as below,
    *<SAP:Stack>Error in mapping program ZCL_SD_IDTO_POSO (type SAP-ABAP, kernel error ID UNCAUGHT_EXCEPTION) An exception with the type CX_SY_REF_IS_INITIAL occurred, but was neither handled locally, nor declared in a RAISING clause Dereferencing of the NULL reference</SAP:Stack>*
      *<SAP:Retry>M</SAP:Retry>*
      *</SAP:Error>* 
    Please let me know.
    Best Regards
    Vamsi

    Have u seen the ABAP mapping guide?
    Refer this series to the ABAP mapping section.https:///people/sravya.talanki2/blog/2006/12/26/aspirant-to-learn-sap-xiyou-won-the-jackpot-if-you-read-this-part-ii
    It will be very handy and useful.

  • How to call subroutines defined in ABAP program with type S

    how to call subroutines defined in ABAP program with type S? can you give an example?

    Normal executable program,
    REPORT  ZTEST_MAIN.
    perform sub1 in program ztest_sub.
    "you can call using in program addition
    Subroutine pool program
    PROGRAM  ZTEST_SUB.
    form sub1.
    endform.

  • Urgent:  ABAP Custom Process Types

    Hi Gurus,
    I have created a Custom Process Type for ABAP program which returns status (Success or Failure).
    I followed the below procedure to create a custom ABAP process type.
    In RSPC, I went to Settings -> Maintain process types
    I selected the ABAP process type and then selected the EDIT -> COPY AS and then in the process chain configuration screen, I gave a new name to the process type, changed the POSSIBLE EVENTS settings to "2 process ends "successful" or "failure" and saved the settings to confirm changes.
    Now I can see the new process type for ABAP program which returns the success or failure for the successors.
    Now, my question is, where do i write the logic for ABAP program ? how does the ABAP program returns the success or failure. Do I have to change the code in the method IF_RSPC_EXECUTE~EXECUTE to return success or failure.  Please make me clear where I can write the code? For example in my ABAP program, I am searching a table to find a specific value. If the value is not found, then the ABAP process type should return failure, if found should return success. How can I do this?
    Thanks in advance,
    Regards,
    aarthi
    [email protected]

    To trigger a process chain from an external program you can use the function:
    RSPC_API_CHAIN_START
    you need only to know the Chain ID and pass it in import parameter.
    Here an example:
    select-options v_time for sy-uzeit.
    parameter: chain type RSPC_CHAIN.
    check sy-uzeit in v_time.
    CALL FUNCTION 'RSPC_API_CHAIN_START'
      EXPORTING
        i_chain             = chain
      I_T_VARIABLES       =
      I_SYNCHRONOUS       =
      I_SIMULATE          =
      I_NOPLAN            =
    IMPORTING
      E_LOGID             =
    EXCEPTIONS
      FAILED              = 1
      OTHERS              = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Regards,
    Sergio

  • Urgent Help need for ABAP Custom Process Types

    Hi Gurus,
    I have created a Custom Process Type for ABAP program which returns status (Success or Failure).
    I followed the below procedure to create a custom ABAP process type.
    In RSPC, I went to Settings -> Maintain process types
    I selected the ABAP process type and then selected the EDIT -> COPY AS and then in the process chain configuration screen, I gave a new name to the process type, changed the POSSIBLE EVENTS settings to "2 process ends "successful" or "failure" and saved the settings to confirm changes.
    Now I can see the new process type for ABAP program which returns the success or failure for the successors.
    Now, my question is, where do i write the logic for ABAP program ? how does the ABAP program returns the success or failure. Do I have to change the code in the method IF_RSPC_EXECUTE~EXECUTE to return success or failure.  Please make me clear where I can write the code? For example in my ABAP program, I am searching a table to find a specific value. If the value is not found, then the ABAP process type should return failure, if found should return success. How can I do this?
    Thanks in advance,
    Regards,
    aarthi
    [email protected]

    Hi,
       We have a similar problem. We have an ABAP program in a process chain that
    uses a custom process type with on success and on failure.
        If  the program is successful there is no problem. it will run the next process step.
        The problem is when the ABAP Program fails and even though the message class is E in our ABAP program it has a confirm popup message with a status change and asks "Save Status and Trigger Events if Appropriate".
         Once you enter Yes to continue it then continues to the next step in the program and is fine.I traced in debug where this status message is appearing. It is in CL_RSPC_LOG. There is a popup_to_confirm_step where it checks the e_status that is value J ( Framework Error upon completion). Then it submits the rspc_process_finish program to complete and call the on error process step.
         Has anyone else experienced this and is there any other documents out there to help me?
    Apologies if this is not very clear.
    Any assistance would be appreciated.
    Thanks
    Monica Mandia

  • Null Pointer Exception in CO of type Webdynpro ABAP

    Hi Friends,
    I am getting an Error in creating a callable object of type Webdynpro ABAP,
    The ABAP webdynpro application is working fine individually, but while creating a callable object of the same type, I get the following error,
    (This happens when I click on <b>'Search'</b> button after putting the wd app name)
    <i><b>The initial exception that caused the request to fail, was:
       com.sap.mw.jco.JCO$Exception: (127) JCO_ERROR_FIELD_NOT_FOUND: Field LANGU not a member of INPUT
        at com.sap.mw.jco.JCO$MetaData.indexOf(JCO.java:9372)
        at com.sap.mw.jco.JCO$Record.setValue(JCO.java:14778)
        at com.sap.caf.eu.gp.model.connect.rfc.abapwd.impl.ABAPWDAppManager.getAppInfo(ABAPWDAppManager.java:54)
        at com.sap.caf.eu.gp.ui.co.config.abapwd.VSelect.getApplicationData(VSelect.java:493)
        at com.sap.caf.eu.gp.ui.co.config.abapwd.VSelect.onActionSearch(VSelect.java:438)</b></i>
    Do somebody has any idea about the problem?
    Thanks in advance,
    Deepak.

    Please send us the CreateEmployees.java. It seem the problem is in the way you using the generated java classes.

Maybe you are looking for

  • Excise duty capturing for returned goods

    i have created the normal sales order,outbound delivery,billing,excise invoice. then i have created the return order with reference to the billing ,and then inbound delivery,PGR ,then credit memo.Now i have capture the excise duty what i have to do??

  • System is allowing to do invoice verification before goods receipt.

    Dear Friends,                      I need your help in following scenario, as my system is allowing to do invoice verification before goods receipt. To test these scenario.I have created one PO.  For this PO I done goods receipt. I done invoice verif

  • Portege Z30T-A-10X Wireless connection unstable

    Hello Forum Users! I'd need an advice for dealing with my wireless adapter. It connects OK when the laptop is after restart, but if I resume it from sleeping mode, it has problems to connect to any wireless network. Usually it connects after 10 minut

  • Turning a mac laptop into a wacom...

    This looks very cool.  http://www.tenonedesign.com/inklet.php For anyone with a touch sensitive Mac laptop, just adding inklet software and the pogo stylus can turn the laptop into a touch sensitive wacom... sort of. It looks like there's a bit of li

  • How to create queries on multiproviders& what are steps to be taken.

    Hi all, How to create queries on multiproviders& what are steps has to be take care. Thanks, cheta.