BAPI_DOCUMENT_CREATE2 + Characteristics

Hello Friends,
I am using following BAPI BAPI_DOCUMENT_CREATE2 to create a new document, everything works fine, and docu is created ( i can check using cnv02 ) but characteristics are not created even I am setting the table ? any idea what is going wrong ?
Regards,
Any idea here ?
Message was edited by:
        Shah H
Message was edited by:
        Shah H

Hi Rob,
Actually, I am not sitting right now infront of system, I will try tommorow your tip;
However I am setting the class type and class number.
It gives me some error, something like, innconsistence characteristics values or so...
Regards,

Similar Messages

  • DMS BAPI_DOCUMENT_CREATE2 Class type Technical Document Category, object ty

    Hello Experts!
    The problem is that DMS import functionality stoped working after supp. pack implementation.
    The process is based on BAPI_DOCUMENT_CREATE2 functionality.
    The first problem was an error "The status set requires a previous status" which was causes dy note 1157678
    (http://wiki.sdn.sap.com/wiki/display/PLM/Error-Thestatussetrequiresapreviousstatus)
    After setting break point/de-implementing that note additional error appeared:
    "Class type Technical Document Category, object ty"
    Does anyone have idea what caused the problem, or which sap note did that? before SP19 implementation that error was not displayed.
    Current highest support package is SAPKH60403.
    Thanks in advance for help,
    Rgds,
    LB

    Hi,
    That error refers to updating characteristics for classification (addnl data tab in DIR).
    Does anyone know what could cause the problem after support pack implementation?
    Is it possible that bapi_document_create2 > api_document_maintain2 disables an option to update classification?

  • Issue with BAPI_DOCUMENT_CREATE2

    Hi experts,
    I have been facing an issue calling BAPI_DOCUMENT_CREATE2 from a third-party legacy based onto Java.
    I am calling it to create a document based on DIR(Document Info Record) in DMS(Document Management System)
    Before I do this I must have defined a document type like G08 within document class (TC:CL02).
    This is an G08 document type example
    [http://www.esnips.com/doc/27a59a9c-ce41-4873-ac94-079e5d1d1213/Configuracion047]
    I created general characteristis when I defined this document class.
    [http://www.esnips.com/doc/e7e0b379-0d8b-46ac-82d2-3a390ce662ce/Configuracion046]
    I m not quite sure what is the structure I must to fill in the characteristics of my document type
    e.g. For filling document type is the following:
    DOCUMENTDATA.DOCUMENTTYPE
    e.g. For BUSINESSPROCESS [http://www.esnips.com/doc/e7e0b379-0d8b-46ac-82d2-3a390ce662ce/Configuracion046]
    I dont have a clue.
    Thanks in advance of any info you can provide me

    here was my problem:
        it_clas-classtype = '017'.
        it_clas-classname = 'DMS_FAB'.
        append it_clas.
    <b>    it_ausp-classname = 'DMS_FAB'.
        it_ausp-classtype = '017'.</b>
        it_ausp-charname = 'DMS_TIPODOCFAB'.
        it_ausp-charvalue = it_cdp_c-zztipodoc.
        APPEND it_ausp.

  • BAPI_DOCUMENT_CREATE2 with CHARACTERISTICVALUES

    Hello
    I'm trying to use the FM BAPI_DOCUMENT_CREATE2 filling the CHARACTERISTICVALUES table but i'm not sucessfull, anybody has an example or others?
    The type of the characteristics is 017,  values are stored in AUSP table but the characteristic is a date so is stored in a fixing point field named ATFLV (for example the date 20070915 is istored 2,007091500000000E+07)

    Here is a sample program, hope it helps
    *& Report  ZPRUEBAINTERFASEPS
    REPORT zpruebainterfaseps.
    SELECTION-SCREEN: BEGIN OF BLOCK a1 WITH FRAME.
    PARAMETERS: p_docu LIKE draw-doknr.
    SELECTION-SCREEN: END OF BLOCK a1.
    DATA: gv_documento LIKE draw-doknr,
          gv_clase     LIKE draw-dokar VALUE 'ZET',
          gv_version   LIKE draw-dokvr VALUE '00',
          gv_part      LIKE draw-doktl VALUE '000',
          gv_descripcion LIKE drat-dktxt VALUE 'Descripcion de prueba',
          gv_return    LIKE bapiret2,
          gv_ruta      LIKE bapi_doc_files2-docfile VALUE 'C:\PRUEBA.XLS'.
    DATA: gs_documentdata         LIKE bapi_doc_draw2,
          gt_characteristicvalues LIKE bapi_characteristic_values OCCURS 0 WITH HEADER LINE,
          gt_classallocations     LIKE bapi_class_allocation      OCCURS 0 WITH HEADER LINE,
          gt_documentfiles        LIKE bapi_doc_files2            OCCURS 0 WITH HEADER LINE.
    AT LINE-SELECTION.
      SET PARAMETER ID 'CV1' FIELD p_docu.
      SET PARAMETER ID 'CV2' FIELD gv_clase.
      CALL TRANSACTION 'CV02N' AND SKIP FIRST SCREEN.
    START-OF-SELECTION.
      gv_documento = p_docu.
      gs_documentdata-documenttype    = gv_clase.
      gs_documentdata-documentnumber  = gv_documento.
      gs_documentdata-documentversion = gv_version.
      gs_documentdata-documentpart    = gv_part.
      gs_documentdata-description     = gv_descripcion.
      gt_characteristicvalues-classtype = '017'.
      gt_characteristicvalues-classname = 'ZDMS_DT'.
      gt_characteristicvalues-charname  = 'ZFEFIPRE'.
      gt_characteristicvalues-charvalue = '15092007'.
      APPEND gt_characteristicvalues.
      gt_classallocations-classtype     = '017'.
      gt_classallocations-classname     = 'ZDMS_DT'.
      APPEND gt_classallocations.
      gt_documentfiles-wsapplication   = 'ZXL'.
      gt_documentfiles-docfile         = 'C:\PRUEBA.XLS'.
    gt_documentfiles-docfile         = '/tmp/pruebafondo'.
    gt_documentfiles-docpath         = 'zficherointerfaseps'.
      gt_documentfiles-storagecategory = 'DMS_C1_ST'.
      gt_documentfiles-checkedin       = 'X'.
      APPEND gt_documentfiles.
      CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
        EXPORTING
          documentdata         = gs_documentdata
        IMPORTING
          return               = gv_return
        TABLES
          characteristicvalues = gt_characteristicvalues
          classallocations     = gt_classallocations
          documentfiles        = gt_documentfiles.
      IF gv_return-type CA 'AE'.
        WRITE gv_return-message.
      ELSE.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            wait = 'X'.
    LOOP AT gt_documentfiles.
       gt_documentfiles-checkedin = 'X'.
       MODIFY gt_documentfiles.
    ENDLOOP.
    CALL FUNCTION 'BAPI_DOCUMENT_CHECKIN2'
       EXPORTING
         documenttype            = gv_clase
         documentnumber          = gv_documento
         documentpart            = gv_part
         documentversion         = gv_version
        HOSTNAME                = ' '
        STATUSINTERN            = ' '
        STATUSEXTERN            = ' '
        STATUSLOG               = ' '
        REVLEVEL                = ' '
        AENNR                   = ' '
        PF_HTTP_DEST            = ' '
        PF_FTP_DEST             = ' '
      IMPORTING
        RETURN                  =
       TABLES
         documentfiles           = gt_documentfiles
        COMPONENTS              =
        DOCUMENTSTRUCTURE       =
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
       EXPORTING
         wait = 'X'.
        FORMAT HOTSPOT ON.
        WRITE: 'SE HA INTENTADO CREAR EL DOCUMENTO:'  , p_docu.
        FORMAT HOTSPOT OFF.
      ENDIF.

  • How to update characteristics of DMS document

    Hello, I have a requirement to update characteristics right after document creation.
    I use BAPI_DOCUMENT_CREATE2 to create the document:
    CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
         EXPORTING
           documentdata    = ls_doc
         IMPORTING
           documenttype    = lv_document_type
           documentnumber  = lv_document_number
           documentpart    = lv_document_part
           documentversion = lv_document_version
           return          = ls_return.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
             EXPORTING
    wait = abap_true.
    And then when I try to change it:
    CALL FUNCTION 'BAPI_DOCUMENT_CHANGE2'
         EXPORTING
           documenttype         = iv_document_type
           documentnumber       = cv_document_number
           documentpart         = iv_document_part
           documentversion      = iv_document_version
           documentdata         = ls_document_data
           documentdatax        = ls_document_data_x
         IMPORTING
           return               = ls_return
         TABLES
           classallocations     = lt_cl_alloc
           characteristicvalues = lt_char.
    The following error is raised: Object TYPE/NUMBER/PART/VERSION does not exist.
    I pass the type, number, part and version right from BAPI_DOCUMENT_CREATE into corresponding arguments for the second call, and into documentdata fields as well. ClassAllocations table contains a single row with class type and name for characteristics in CharacteristicValues table.
    Could you suggest me, what can be wrong here?

    I found a solution for my problem. In a short, everything is OK except one thing:
    Field STATUS=1 should be also filled in CLASSALLOCATIONS table in addition to CLASSTYPE and CLASSNAME.
    In total I had to make my call conform to the following points:
    Document type, number, version and part must be filled into DOCUMENTDATA structure and not only in direct parameters of the BAPI
    CHARACTERISTICSVALUES must include class name and class type, these can be found from tcode CL03
    CLASSALLOCATIONS must include the same CLASSNAME and CLASSTYPE as from previous point, plus STATUS field set to «1»

  • I need to buy an External Portable HD 500GB for my iMac OSX 10.4.11 (PowerPc 2004). Can anybody please tell me a few Names/Products that are compatible? Please if you can, just tell me some product name, instead what generical characteristics it needs :s

    Hello
    I have been reading forums and forums and after days of research l gave up.
    Unfortunately it seems that nobody has provided a name of a brand yet.
    Although the effort is very admirable, l am still at the point of finding myself back at square one, with an unanswered question:
    Which portable external HD 500GB should l purchase for my iMac 10.4.11 (Power PC 2004)?
    I know there are many different ones, but l hope at least somebody can suggest one.
    A clear Name of a Product that matches the compatibility.
    I am not an expert of computer and so all the theoretical explanations of technical characteristics mean next to nothing to me :(
    I hope that someone kind enough to halo me out with this will be able to let me know.
    My most greatefull thank you to you all in advance :)
    And1001

    Try http://eshop.macsales.com/shop/hard-drives/External-Enclosures/
    If you have question about any items on their page, MacSales has an extremely god technical support staff.
    Allan

  • Can not see long text description of a characteristics in portal

    Hi experts,
    I designed two queries via Query designer and published them to portal but I can not see the the long text description of "Name" attribute belongs to 0BPARTNER characteristics.
    One of the queries shows only the last name of partner in portal while it is showing full name and last name in Bex Analyzer. The other query shows only the key value in both portal and Bex Analyzer.
    I want to see long text description in both queries.
    For an additional information, I'm extracting data from CRM 5.00 to BW 7.00
    What will be the reason for this and how can I solve it?
    Can anyone help me for this issue, it's a kind of emergency situation.

    Hi,
    we have the same problem.
    We want to change <b>only</b> in the screen variable the hierarchy text (from default to long\medium text) but even if there's a possibility to do this, really it doesn't happen anything - it' s possible when you start query, in the selection screen inside every the variable there's a command "User Settings" in which manage what you want to see (I put display custom, as text, medium text).
    I try to do this also in query analizer, selecting variable (hierarchy) and enter in this (user setting), changing in display custom as text - medium text, but even if I save this settings, really doesn't happen anything.
    It seems the system isn't sensitive to this selection...
    By now, if someone has an answer, please write us!
    Thanks in advance,
    Alessandra Mirone

  • Couldn't assign target field for characteristics in PI sheet config

    Dear All,
          I'm trying to configure PI sheet, i have created Process message categories as well as characteristics. Everything is working fine except the inputted value (for example weight, density) in PI sheet not getting transferred into process order. When i try to assign the destination message to the message characteristics, i couldn't find any value for the message categories which i created. System shows the below  error:
    No entries found that match selection criteria
    Message no. SV004
    Even if i try to assign manually,system shows with error
    Corresponding entry in "Destinations/Message categories" missing
    Message no. SV534
    Steps i did :
    1. Created new Control Recipe destination(ZCR) ( by copying sap provided CRD "05")
    2. Created new characteristics group(ZMCG) for process message ( by copying sap provided group "PPPI_01") and released
    3. Created Characteristics (ex. weight, density) with chars. group as ZMCG
    4. Didn't create any new message destination (Trying to use defaut "PI01")
    5. Create New Process Message Category(ZTEST) and assign the characteristics (weight, density along with PPPI_PROCESS_ORDER)
    The problem is i couldn't assign target field as "process order" to update the inputted values for the characteristics (weight, density) in O13C
    I gone through all the node in "Process Management" but unfortunately i don't know where we have to assign this destination. I hope if i assign the destination message as "PI01"  with characteristics "PPPI_PROCESS_ORDER" along with target field as "PROCESS_ORDER" for the characteristics it may update into process order. How to assign the destination message for the message category?
    Thanks

    Hi Kumar,
        Thanks. When i try to assign the destination message for the characteristics through O13C, i got the error message that "No entries found that match selection criteria". It means there is no characteristics with the combination of Process message category "ZTEST" with Destination as "PI01". If i trying to assign manually through "New entries" option, systems shows with the error "Corresponding entry in "Destinations/Message categories" missing.
    Thanks

  • What is diffrernce between key figures and characteristics?

    Hi all,
    I am a newbie to SAP BI....i am doing Masters in ERP(SAP)....I have confusion about what is basic difference between key figures and characteristics?
    Why do we have to define attributes in characteristics?
    If any one can refer me a thread that answers my questions or explain with very lucid example I will highly appreciate it.....please answer this question as I have just spend 4-5 months studying BI and have not really implemented in the Industry but we do have access to SAP BI where we perform tutorials....
    Also please let me know the links to materials where basics of BI are explained in a very simple way.....
    Thanks,
    Regards,
    Rahul

    KF is anything which can quantitatively measured: Amount, Number, Value, Price... whatever you want to measure is called Key Figure. This key figures are also called KPI (Key Performance Indicator). If you want to know the number of sales orders, the number of deliveries, the amount of deliveries... all are key figures
    And to add to that, key figures are also divided into two:
    Cumulative KF: Like I said, amount, value, price
    Non-cumulative KF, this is different kind of key figures which shouldn't be summed up, for example: Age, Inventory, Number of Employees.  When  you measure this key figures, you don't add the age of every body, because that doesn't make any sense, but adding the sum of all deliveries, or adding all Sales does make sense, that is the difference between the two key figures.
    Characteristics: are anything which couldn't be quantitatively measured: material, customer, plant, employee ID and so on...
    Aways, in BI you measure the KF against the Key figures..
    thanks.
    Wond

  • Square root formula in Calculated Characteristics

    Have a great days.
    There are two MIC in my inspection plan. first (0010) is for entering number and another (0020) is calculated characteristics. I want to calculate the square root of 0010 charateristics in 0020.
    What should be teh formula to put in 0020 char.
    Please guide. thanks in advance.
    Regards,
    Dipesh Bhavsar
    Edited by: dipeshbhavsar1982 on Jul 31, 2011 9:41 AM

    HI
    0020 MIC should be created with control indicator for formula tab(calc.characteristic)
    and in quality plan assign the first MIC as normal
    and assign second MIC then system will ask a formula ...
    there you can give the formula in terms of character
    example (0010)2
    Faisal

  • Mixing Key Figures and Characteristics in 2004s Table Display

    In a 3.x query definition using table display, I could put a key figure in the middle of the characteristics.  The results would be columns Char1, Char2, KF1, Char3, for example.  The same query upgraded to 2004s insists on displaying the key figure at the end of the characteristics, even with the Query Properties / Data Formatting set to Tabular View (in BEx Analyzer).
    Any ideas on how to keep the key figure in the middle of the characteristics?
    Thanks.

    Hi,
    New QD wont support table display. You need to use Report designer for this.
    Thanks & Best Regards,
    Rajani

  • Free characteristics Functioanlity is not working please advice

    HI
    I got an problem in the report with the multiprovider ZCOPA_M01
    If I open the report for this multiprovider and there are 2 default characteristics displayed in the query and after removing the drill down for those two characteristics and Now IF I go to Free characteristics and do an drill down on one of the characteristic (for example: Geographical Type)and place an filter on the Geographical Region  (Geographical region is also an free characteristic) now I find no values in the set filter screen.
    But when I again remove the drill down on Geographical type and do an drill down on geographical region and set an filter on geographical region then you can see all the values...(In filter screen)
    Can any one please advice me for the same. How to get values in the filter screen for this report with the Multiprovider ZCOPA_M01
    Thanks in advance and will be rewarded with good points...

    Hi,
    Go to the definition of a Master Data Object. In its Attributes tab, there is a column of navigation on/off. There you can either swith on or off the attribute as a navigational attribute. After converting into navigational attribute, you can see the type column is changes to "NAV" from "DIS".
    Hope this helps.
    Regards,
    Yogesh.
    Edited by: Yogesh Kulkarni on May 27, 2008 4:14 PM

  • Displaying characteristics

    Hi all,
    I have a query with several characteristics set to No Display in Query Designer. In AO, these come through as greyed out - they can still be added to or removed from the worksheet but I can't see an option to get the values displayed. The Members button only gives the usual Key/Text options - in Web Analyzer you also get the option to turn the display on or off.
    Does anybody know whether this is possible to change during AO runtime or do I have to revert back to Query Designer and do it there? (this would be a big backward step in my view as it involves re-transporting the query).
    Thanks,
    Glenn De Santis

    Hi Glenn De Santis,
    Not right now
    That is planned for the Analysis 2.0 (next release, I believe)
    Please see  Figure 1  - Enahanced Side Panel Analysis Roadmap Update - Beta Preview, Part 2
    by Tammy Powlas
    Best Regards,
    Subhash

  • Adding new characteristics to cube with data

    Hi Gurus,
    i need to add some characteristics to a cube already in production, this cube is customized version of material stocks/movements cube (0ic_c03).
    i am looking for a way to add the new characteristics without having to do reinitialisation (opening stock,...), i am thinking about a loopback process but how do i manage to get the new characteristics populated for the historical data?
    Thank you.

    Hi,
    If you want to load historial data, you must take ECC down time and re-intialization is required.Becasue you are adding new object in Cube and for that you need to change the Update rules, then need to load historical data, so without down time and reinitialization it is not possible.
    Check like below.
    You have data in PSA, so try to delete data from Cube and then load from PSA. Because you may write code in Update rules on;y I think. So in that case, it may work.
    Thanks
    Reddy

  • How to get all the characteristics of a variant material?

    Hi gusy,
    Do anybody can tell me how to find out all the characteristics of a variant material?
    I've checked following tables: MARA, CABN, CAWN, KSML, KLAH, AUSP.
    Thanks & Regards,
    Tim

    Hi,
    You can use the following BAPI's;
    BAPI_OBJCL_GETDETAIL to get the characteristcis of Material
    BAPI_OBJCL_CHANGE to change the characteristics.
    You can also use the CAWN, CAWNT,AUSP tables to find these characteristics.
    Also:
    Try this....
    WSTN3_GET_CHAR_PROFILE
    Reward if useful,
    Cheers,
    Chandra Sekhar.

Maybe you are looking for

  • Is there a way to use a single bitmapdata for multiple images with GPU mode?

    With GPU mode is there a way to bring in a single 1024 X 1024 png containing all my sprites and then slice it up into multiple display objects all refering to the original BitmapData? I have an app that runs in GPU mode - but I want to optimize the i

  • CR10 transaction  - Work Center Change Documents

    Hi Expers, I am doing a test for our customer now and I am stuck with one test. That is to test transaction CR10. I can't make him to bring any result! As I understand, it should bring me the changes, made to Resources or work centers. I am creating

  • Toolbar visibility button (lozenge)?

    greetings, just transitioning from 10.6 to 10.7.  many subtle surprises, not all of them good... this is driving me nuts.  where has the "show/hide" toolbar button or lozenge gone in the title bar in 10.7?  on MBPro, screen real estate is still a val

  • Is it best practice to use a dedicated link between NX7K pair for keep-alive?

    I have been using dedicated physical 10G link between pair of NX7k for keep-alive. Is it a best practice? It seems a waste of 10G ports because keep-alives does not need that much bandwidth. I'm thinking just configure a dedicated VLAN interface in t

  • Mail RSS Reader and videos???

    Hi Like most people I use mail to browse rss feeds and it works great, however it will not allow you to play videos without opening a article in safari. I know other rss readers allow this such as net news wire, however they do not support the full m