Material drawing from DMS to Smartform.

Hello All,
I need to get the material drawing which is stored in DMS to a smartform. Please suggest the procedure to get this done.
Thanks.

Karthik,
Check the following link which gives some insight into how a possibe solution can be worked out.
Dynamic graphic for SAPscript  or SMARTFORM
However my conclusion is that there is no standard functionality which enables you to do this and there are only work arounds possible. Also you have to upload the graphics into SE78 editor each time before you display it on your form or script.
Sojan

Similar Messages

  • Printing File from DMS in smartform from IW33

    Hi SAP Gurus,
    My requirement is as follows,
    In order(IW33)>Operations>Production Resources/ Tools, A document is maintianed. I need to print file from there in a smartform regardless of the file format.
    For this I have searched and found the following logic.
    from Tables dms_doc2loio, dms_ph_cd1 I am getting Doc details, these details are passed to the below FM,
    *This function module will give the content of the file in binary format
    CALL FUNCTION 'SDOK_PHIO_LOAD_CONTENT'
    EXPORTING
    object_id = wa_object_id
    client = sy-mandt
    AS_IS_MODE =
    RAW_MODE =
    TEXT_AS_STREAM =
    TABLES
    FILE_ACCESS_INFO =
    FILE_CONTENT_ASCII =
    file_content_binary = it_file_content_binary
    EXCEPTIONS
    not_existing = 1
    not_authorized = 2
    no_content = 3
    bad_storage_type = 4
    OTHERS = 5.
    After getting the data in binary format, how to print in smartforms, Please help..
    Regards,
    Pavan.

    I am Sorry I dont understand why you are moving the data into a binary format conversion.
    Is there any particular thing which makes you to do so? If so, Please explain.
    Instead have you try to convert them into Xstring and then into String. By doing so. If any special characters or any special symbols or anything. the system wont give any error. instead it is a easy method also.
    check out these function Modules: NLS_STRING_CONVERT_FROM_SYS
                                                           NLS_STRING_CONVERT_TO_SYS

  • Get URL from DMS in SAP

    Hi everybody,
    I have written an ABAP function in SAP where I export a URL of a document in SAP.
    All the images are stored in the DMS server and I fetch the url of the images by the function 'CVAPI_DOC_VIEW'
    When I execute this in SAP everythings works!
    When I execute this in Java webdynpro, the abap program don't find any link?
    Is there something wrong in my code because all parameters are the same.
    Regards

    Karsten,
      Thanks for the reply noted I will recopy this in EP
    Second I tried to get the KM piece to work for a couple of weeks even put in a help note and could not get the folders or any documents to come through any of the KM Browser's on the portal. I created varients etc etc.  So getting frustrated I decided to write my own.  Also because I wanted an iview that would pop all documents based on a picked equipment or material and from the three iviews I saw from KM they didn't seem to do that.  If you know of some documentation that you recommend please let me know
    Thanks Karsten
    Cheers,
    Devlin

  • Import data to Purchase Order Item Level Text from DMS system

    Hi,
    I have the material PO Text maintained against the Material in the DMS system.
    In R/3, when I am creating the Purchase Order, I want the system to retreive the PO Text maintained in DMS against the material in the Purchase Order and paste it in the Purchase Order Item details - Material PO Texts.
    Could anyone suggest me which User Exit or BAPI and the Function Module to fetch this data from DMS.
    Thanks in advance.
    Regards,
    Jeetendra

    Dear Gurus,
    We are able to populate the "Import Data" in the backend PO in our backend system 4.6C, thorugh user exit
    EXIT_SAPMM06E_004   &   EXIT_SAPLV50E_004.
    Now when we create PO from SRM , the import related foreign trade data gets filled up from the master data.
    Problem: In Header and Line item condition: We are not getting the condition type GRWR automatically, if the PO is comming from SRM. Because of this the statistical value is 0.
    ( If we create manual PO, the condition GRWR appears in PO - and the Statistical value gets filled in automatically )
    How can we put the condition type GRWR into the PO using user exit ?
    Thanks and regards,
    Anil Rajpal
    Edited by: ANIL on Aug 12, 2010 6:18 PM

  • BAPI to download document from DMS

    Hi ALL
    I have the requirement that to download the all the active drawing(DWG) files to local file system or data base for purpose.
    1. I am looking at BAPIS to download from external program.
    Do we have any BAPIS to get the files from DMS.?
    2. And i want to convert those DWG files to pdf files.
    Is there any way we can convert in the dms and download or
    I have to download DWG to localsystem and convert afterwards??
    3. Is there any way to push IDOC for DMS files when the file changes in DMS to external system??
    Please help me.
    Thanks
    Vansi

    Hi Vamsi,
    I think you can do it using program DMS_RELOCATE_CONTENT.
    Go through below link as well
    BSP & DMS Document Download
    <b>Reward Points if this helps,</b>
    Satish

  • Print from DMS directly

    hi all,
        i have a requirement that document should be printed directly from DMS. i came to kno from someone that there is s program named MCDOKPRT which can solve my problem. But i tried that program, it is giving me some text and not displaying or printing the actual document which has been loaded using the Tcode CV01n.
    Pls help
    any suggestions most welcomed.
    Regards
    Kshitij

    Hi Kshitij,
    If you want to print originals directly from a DMS transaction (CV02N or CV03N)
    it is necessary that you have defined workstation application type "3" (print) for the relevant workstation application and the frontend type in transaction DC30.
    Further it is necessary that your Windows folder options are also maintained correctly. Please see the following sample for the direct print of PDF files:
    I would recommend to do the following steps:
    1. Open Microsoft Explorer
    2. Menue: Tools   > Folder options   > File types
    3. Select "PDF" and press button "Advanced"
    4. There should be a input called "print". If there is no such entry
       please create it by pressing the button "New"
    5. Into the action field please insert "print" and to application used..
       write the Acrobat application path (see sample picture attached)
    Back to SAP system at transaction DC30:
    1. Select "PDF" and then select "define Workstation application"
    2. Edit entry: PC    PDF    3 (application type)    %Auto%
    3. Save
    After creating this settings the pdf document should be printed by
    directly. Only the empty Reader (without displaying a file) opens.
    Best regards,
    Christoph
    P.S.: Please award points of the information is useful.

  • ERROR -WHILE LOADING MATERIAL MASTER FROM A FLAT FILE

    HI GUYS ,
    I AM TRYING TO CREATE MATERIAL MASTER FROM A FROM FLAT FILE
    IAM GETTIGN AN ERROR MESSAGE
    'YOU HAVE NOT FULLY MAINTAINED THE DESCRIPTIONS'
    REQUIRE HELP ON THIS
    THANKS

    Hello Nishant
    All the inputs that are required to create a material in dialog (MM01) should be mandatory as well if you are going for LSMW or BAPI. Obviously your material requires a description (which will end up in MAKT). If you have this description in your flat file then there are additional (perhaps language-dependent) descriptions required.
    You could try to use BAPI_MATERIAL_SAVEDATA in your test environment to find out the minimum input that is required to create a material in R/3.
    You may also have a look at thread what are the parameters have to pass to bapi material creation?
    Regards
      Uwe

  • Replication of Customer and Material master from R/3 to CRM

    Hi
    Recently in our quality server basis administrator has made a client copy from production server after that customer master and material master are not flowing from R/3 to CRM, even sales orders were not getting copied from CRM to R/3 , i went through C71 BB config document and fixed the sales orders updation from CRM to R/3 but not able to resolve the problem of customer master and material master from ECC to CRM.
    I went to B09 BB document and all settings are fine.
    Using R3AS I have loaded following objects DNL_CUST_PROD0, PROD1, PROD3, SPROD , DNL_PLANT. and Material.
    I went to R3AM1 and checked the status as running or wait for each object.
    There are no filters in R3AC1 .
    Queue name withR3AD_MATERIA0000000001 has status SYSFAIL in SMQ2  .
    What can i do to resolve this problem.
    Please advice.
    Thanks,
    Vaishnavi

    Hello Vaishnavi,
    After the client copy , have you run txn:BDLS in order to change the LOGSYS in all relevant tables?
    You can run this txn in test mode as well to see the affected tables.
    Are you getting any dump on these load ?Check it in txn:ST22.
    Hope this helps!
    Best Regards,
    Shanthala Kudva.

  • Material Updates from ECC to CRM

    Hi Experts,
    We recently had application of Enhancement Pack4 on our ECC system. After the application EHP4 pack, we have started getting some material updates from ECC to CRM. And those updates are failing in CRM as we do not have any material set up in CRM. Due to these failed updates, lot of dumps are getting created in CRM. So can u please advice where/how in ECC i can restrict these updates to go to CRM. Any help in this will be highly appreciable.
    Regards
    Charitha

    Hello Charitha,
    In txnn:R3AC4 of CRM , check INACTIVE flag for object MATERIAL (and any other objects whose data is not required in CRM)
    for your RFC destination (ECC).
    This would prevent any automatic data flow for this object from R/3 to CRM.
    Hope this helps!
    Best Regards,
    Shanthala Kudva.

  • Material replication from R/3 to SRM - Issue with Material group

    Hello All,
                      I am working on BADI PRODUCT_CUSTOMER2 and method MAP_R3_TO_CRM_MATERIALMaterial replication part from R/3 to SRM.
    I am using a Ztable to map r/3 material group to SRM material group(Product category).
    For example Material M1 with material group 100 is transferred to SRM. Material group(Product category) 100 exist in SRM, but I am changing the material group to 200 in the product_customer2 badi.  its working fine.
    In another scenario, Material with material M1 with material group 300. Material group(product category) 300 does not exist in SRM,
    I am changing the material group to 200 in the bdoc, in the product_customer2 badi. It is not working. The LUW is failing in SMQ2 transaction with the error "Error in Mapping (Details: transaction SMW01)". The BDOC is failing with error "Category for material group 300 does not exist"
    I tried to deactivate the badi PRODUCT_CUSTOMER2, even then the FM MAP_BAPIMTCS_AND_PROCESS is validating the material group from R/3.
    I tried to change the material group 300 to the existing material group 200 at initial stage in debugging in function module MAP_BAPIMTCS_AND_PROCESS but still the bdoc is failing with error "No storage form defined for product type 01 / logical system".
    I am doing my testing using the following steps.
    1. change the material descriptioni in MM02 in R/3.
    2. An item is displayed in the queue in SMQ2 in SRM.
    3. I have debugged the LUW and analyzed my badi by setting breakpoint at method MAP_R3_TO_CRM_MATERIAL, its changing the material group in the bdoc properly.
       that didnt work.
       also i tried to change the material group in the function module MAP_BAPIMTCS_AND_PROCESS before the badi is called.
    4. I am checking the BDOc status using tcode SMW01 and checking the material using tcode COMMPR01.
    can someone tell me how I can change the R/3 material group to SRM material group at the time of mapping in SRM?
    Thanks
    Sathish PM

    Hi find below for the product cat
    Steps to create the product category in SRM:
    1) Create MM material groups in ECC client. This will create a transport. Go to SRM Tcode R3AS and select the object u201CDNL_CUST_PROD1u201D from the list and run it. You can monitor the job using R3AM1 in SRM. This will bring the material group into SRM. This can be seen in TCode u201CCOMM_HIERARCHYu201D in SRM.
    2) Once it is done. Go to IMG in SRM and go to path SRM> SRM server> Cross app biz settings> Account aassigmnet> Define GL code for Acc *** Cat and Prod Cat. Maintain the GL code against this prod cat for all the account assignment codes. This is client specific setting and need to be done in every client by opening it. This GL code is given in the form in ticket.
    3) Do a test and check if the product category is available for procurement in SC.
    Regards,
    Satish

  • Shopping cart created for a MDM material uploaded from MARA

    Hello,
    I need to create an interfase from ECC6 material master (MARA) to MDM1.0
    I can not test the creation of a shopping cart for a catalogue material at the moment.
    My question is.
    Someone know can confirm me if is possible
    . to upload to MDM the "MARA" table
    . and the SRM shopping cart will be created for a catalogue material (uploaded from MARA, ECC6.0.
    AND the purchase requisition created in the back-end (ECC6) will take the MARA material number not a free text.
    I think that this is possible, but what do I have to define in MDM? How MDM will reconize the material number to transfer that information from the shopping cart to the purchase requisition?
    Thank for your help.
    Cheers,
    Marta
    Message was edited by:
            Marta Canabal Mazorra

    Hi Marta,
    Check for details under "Loading Master Data"
    <u>http://help.sap.com/saphelp_mdmgds55/helpdata/en/ae/82b24265e8b211e10000000a155106/frameset.htm</u>
    Regards
    Rehman

  • Issue in Material creation from BAPI

    Hi All,
    I am working on Mass material upload from the program using BAPI function module: BAPI_MATERIAL_SAVEDATA.
    But the problem is for Material Type 'Finished Product' I could get all the views from the structure BAPIMATHEAD except for views Oil-specific data and Plant Stock.
    So is there any other FM or Structure which includes there 2 views also as its field?
    Thanks.

    Hi,
    Check the bellow links for Material Master Bapi.
    Create Material Master Data with BAPI
    And Check the bellow BAPI for your requirement.
    BAPI_MATERIAL_GET_DETAIL
    or
    BAPI_MATERIAL_GETDETAIL
    Regards,
    Goutam Kolluru.

  • Material transfer from SAP R/3 to SAP Business One is blocked

    Hello experts,
    Please I need your help for the following scenario:
    Our client has B1iSN and SAP R/3 in the headquarter company and B1if and SAP B1 in the subsidiary. The material transfer from SAP R/3 to SAP Business One failed and the following message is diplayed:
    Result message :
    com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception: com.sap.b1i.bizprocessor.BizProcException: BPE001 Nested exception: com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception: com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception: java.lang.RuntimeException: DI Error: (-2028) No matching records found (ODBC -2028)
    The Material database transfer is blocked due to message in status
    failure which block all other messages.
    We tried to restart the server (Business One and B1iSN) but it didnu2019t solve the issue.
    Any idea please? Thank you.

    Hi Nadia,
    did you check the WRITE-POLICY settings of your scenario?
    when reading the displayed DI Error message, it looks like B1iSN is trying to update an B1 item which does not exists.
    Please open SAP B1iSN Tools -> Development Tools -> Graphical scenario Design and select your Bizpackage, BizStep and BIUMETA.
    Open the WRITE-POLICY symbol and check the entries:
    Insert on Exist = error or fallback2U
    Update on Miss = fallback2I
    The Update Policy should stay to value regular.
    To activate changes of the WRITE-POLICY please deactivate, modify and reactivate your Business Process instance.
    If a WRITE-POLICY change has no effect, please check your data mapping (BIU) and especially the parameter <QueryParams>, which mustn't be filled for "insert/Add" operations into B1.
    Best regards
    Bastian

  • File download from DMS into Webdynpro for ABAP application

    I need to download the file from DMS content server on the PC and with my application on clicking of file name, file needs to be displayed.
    To achieve the downloading part I tried BAPI_DOCUMENT_CHECKOUTVIEW2, but it is not working.
    If I pass the parameters
    PF_HTTP_DEST              = 'SAPHTTPA'
    PF_FTP_DEST               = 'SAPFTPA', then it returns error message saying file can not be saved.
    If I don't pass above parameters then it gives me 'RFC_START_PROGRAM' error.
    How to download the file from DMS in WebDynpro and read/display the content?
    Please help.
    Thanks, in advance.

    Hi,
    I had the same problem, but found a solution. All I changed was the hostname to 'DEFAULT'
    Use the code below:
    DATA: lt_drao TYPE TABLE OF drao,
             wa_drao TYPE drao,
             wa_bin TYPE x LENGTH 2550,
             lt_bin LIKE TABLE OF wa_bin,
             file_data TYPE xstring,
             v_line TYPE i,
             size TYPE i.
       CALL FUNCTION 'CVAPI_DOC_CHECKOUTVIEW_DIALOG'
         EXPORTING
           pf_dokar                 = ls_input-dokar
           pf_doknr                 = ls_input-doknr
           pf_dokvr                 = ls_input-dokvr
           pf_doktl                 = ls_input-doktl
    *     PF_FTP_DEST              = 'SAPFTPA'
    *     PF_HTTP_DEST             = ' '
          pf_hostname              = 'DEFAULT'
          pf_content_provide       = 'TBL'
    *     PS_API_CONTROL           =
    *   IMPORTING
    *     PSX_MESSAGE              =
    *     PSX_FILE                 =
    *     PSX_DRAW                 =
        TABLES
          ptx_content              = lt_drao.
       LOOP AT lt_drao INTO wa_drao.
         wa_bin = wa_drao-orblk.
         APPEND wa_bin TO lt_bin.
       ENDLOOP.
       DESCRIBE TABLE lt_drao LINES v_line.
       size = 2550 * v_line.
       CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
         EXPORTING
           input_length       = size
    *     FIRST_LINE         = 0
    *     LAST_LINE          = 0
        IMPORTING
          buffer             = file_data
         TABLES
           binary_tab         = lt_bin
    *   EXCEPTIONS
    *     FAILED             = 1
    *     OTHERS             = 2
       IF sy-subrc <> 0.
    * Implement suitable error handling here
       ENDIF.
    CALL METHOD cl_wd_runtime_services=>attach_file_to_response
         EXPORTING
           i_filename      = 'abc.pdf'
           i_content       = file_data
           i_mime_type     = 'application/pdf'
    *     i_in_new_window = ABAP_FALSE
    *     i_inplace       =  ABAP_FALSE

  • Material Return from 542 movement type without purchase order

    HI Expert
    I have a problem regaring material return from vendor through 542 mov type against purchase order.
    when i transfer material to vendor with mov type 541. and after grv if we return material from vendor against purchase order.
    system doesnot allow to return material against purchase order. it allows mov type 542 for returning material from venodr without pruchase order.
    Suppose we have 10 quality for a component to transfer vendor we take grv and issue 5 qty through 543 move type automatically. if we want to take return 5 remaining qty from vendor against purchase order .
    system doesnot allow to return component from vendor against purchase order.
    but allow  to return component from vendor without purchase order.
    vendor stocks becomes less but purchase order still open for open quantity.
    how we could control vendor's returing material with the reference of purchase order after grv.
    with regards
    sanjay agrawal

    HI,
    Are you creating return Po for subcontracting vendor with item category L.?
    we used movement type 541 to send material to vendor ,now you want movement type 542 in system means take back from vendor?
    I don't think so it will make work and make any sense
    why you are not adjust your component with subcontracting adjustment in sap mm
    check following link
    [http://help.sap.com/saphelp_470/helpdata/en/4d/2b908943ad11d189410000e829fbbd/content.htm]
    Regards
    Kailas Ugale

Maybe you are looking for