F.m. HTTP_PUT_COMPONENT

Hello.
> in order to archive sapscript documents in content server, we
> developed a report calling f.m. OPEN_FORM: it imports ARCHIVE_INDEX
> and ARCHIVE_PARAMS, according SAP documentation. By SM58, we are
> finding error SR053, occured in f.m. ARCHIVE_CREATE_TABLE.
Debugging the queue,
we can verify the problem is triggered by f.m.
HTTP_PUT_COMPONENT, that
returns the general error 401. Please, note that communication between
SAP and content server works: for example, you can archive any
document by document management transactions (CV01N, CV02N).
Thank you for your help.
Elena

Dear Anton,
I'm sorry, but there isn't any documentation for f.m. HTTP_PUT_COMPONENT, in 4.6B.
Report you suggest does not help me. To better explain the situation, please note that we have a content repository ( called 'CB') we are using to archive documents by transactions CV01N or CV02N. It works. We would like to archive a PDF document, by f.m. "OPEN_FORM", linking it to an SAP info record. To do this, we call f.m. using these instructions:
(ARCHIVE_INDEX-OBJECT_ID contains the 4 key fields to identify an info record)
ARCHIVE_INDEX-FORMARCHIV = 'CB'.
ARCHIVE_INDEX-AR_OBJECT = 'BDS_ATTACH'.
ARCHIVE_PARAMS-AR_OBJECT = 'BDS_ATTACH'.
ARCHIVE_PARAMS-SAP_OBJECT = ARCHIVE_INDEX-SAP_OBJECT = 'DRAW'.
  CONCATENATE LF_DOCTYPE LF_DOCNUMBER LF_DOCPART LF_DOCVERSION INTO
              ARCHIVE_INDEX-OBJECT_ID.
  ARCHIVE_INDEX-FORM_ID = ARCHIVE_INDEX-OBJECT_ID.
  ARCHIVE_INDEX-RESERVE(6) = 'COMMIT'.
  PRINT_OPTS-TDARMOD = '2'. "Archiviare
  PRINT_OPTS-TDDEST   = 'ZPDF1'.
  CALL FUNCTION 'OPEN_FORM'
      EXPORTING
        APPLICATION                 = 'TX'
         ARCHIVE_INDEX               =  ARCHIVE_INDEX
         ARCHIVE_PARAMS              =  ARCHIVE_PARAMS
            DIALOG                      = ' ' "'X'
            FORM                        = 'ZLO_CONFORMITA'
            LANGUAGE                    = 'I' "sy-langu
            OPTIONS                     = PRINT_OPTS
        MAIL_SENDER                 =
        MAIL_RECIPIENT              =
        MAIL_APPL_OBJECT            =
        RAW_DATA_INTERFACE          = '*'
    IMPORTING
        LANGUAGE                    =
         NEW_ARCHIVE_PARAMS          = NEW_ARCHIVE_PARAM
         RESULT                      = PRINT_RESULT
      EXCEPTIONS
           CANCELED                    = 1
           DEVICE                      = 2
           FORM                        = 3
            OPTIONS                     = 4
           UNCLOSED                    = 5
           MAIL_OPTIONS                = 6
           ARCHIVE_ERROR               = 7
           INVALID_FAX_NUMBER          = 8
           MORE_PARAMS_NEEDED_IN_BATCH = 9
           OTHERS                      = 10.
f.m. open_form calls HTTP_PUT_COMPONENT: it should determine the right URL, but the error I described occurs.
Thank you for your help.
Elena

Similar Messages

  • How to bring attachement in BPM

    Hello,
    We are on XI3.0 SP10.
    This question concerns an RFC to SOAP scenario.
    we are sending purchase order from EBP to XI by RFC (bapi).
    Inside XI we use a BPM for mapping.
    RFC doesn't support attachements.
    How can we catch the attachement in the BPM in order to join it to the final message sent by the soap adapter?
    Hoping for your answers,
    Best regards,
    Laurent.

    Hi Matias,
    Thanks for these helpful answers.
    For me i have now two solutions :
    1. Change the RFC adapter with a Proxy to send the bapi (BAPI_POEC_XML_SEND) that sends po to XI. Is this possible?
    2. "in the trigger program before the sending of this bapi, there is a step that you can configure to send the full content of the attachement to a webserver. (spro settings.) below is the module function that sends the attachement."
            CALL FUNCTION 'HTTP_PUT_COMPONENT'
              EXPORTING
                absolute_uri     = lv_attach_url_write
                proxy            = lv_proxy
                user             = lv_user
                password         = ls_att_pub-i_password
                component_length = lv_filesize
              IMPORTING
                status_code      = lv_statuscode
                status_text      = lv_statustext
              TABLES
                component_data   = ls_attach-phio_content
              EXCEPTIONS
                connect_failed   = 1
                timeout          = 2
                internal_error   = 3
                tcpip_error      = 4
                OTHERS           = 5.
    The phio_content is binary data sent with type RAW - 1022.
    In the bapi sending step (second step of trigger program) there is no standard way to send the phio content but only url."
    My first reaction was to add the phio_content to the bapi and send it with it.
    But is there a way to rebuild the attachement afterwards in xi or in marketplace?
    The other solution like you said is to follow standard that sends attachement to webserver. send the url by the bapi with rfc adapter.
    Add a 'receive step' in the BPM that will look for the url on the webserver with a file or soap adapter and then bundle the two messages together to send it with the soap adapter.
    Which solution should be the best?
    Thanks for all.
    Regards,
    Laurent.

  • HTTP POST Is VPN required?

    Hi experts!!
    I am trying to post some parameters to a url (an external website).
    I am getting a response 404-Not found. I have checked with the developers of the website and they are asking me if a VPN is set up between SAP server and their server.
    Is VPN required for HTTP  Post???
    Please guide me!
    Thank you!!

    Hi !!
    I tried the following code and it seems to be working..
    REPORT xx .
    DATA: status_code(100),
    status_text(100),
    response_entity_body_length TYPE  i.
    *COMPONENT_DATA TYPE DATA.
    TYPES: BEGIN OF text,
           line(120) TYPE c,
           END OF text.
    DATA: request_headers TYPE TABLE OF text WITH HEADER LINE,
          request TYPE TABLE OF text WITH HEADER LINE,
          response_headers TYPE TABLE OF text WITH HEADER LINE,
          response TYPE TABLE OF text WITH HEADER LINE.
    request-line = 'FirstName=YY&Surname=hghgj&Birth=10860319&Gender=F&mail=xxxxdssd.com&Nationality=EL'.
    APPEND response.
    request-line = '&Address1=ddddddddd&Address2=Rafina&City=xxx&Postcode=19009&Country=el&LandTelephone=22374664556'.
    APPEND response.
    request-line = '&Mobiletelephone=fdfdfdfdfdf&Occupation=1&Income=1890087&Networth=10000&NetWorth=1000&Currency=1&Leverage=1'.
    APPEND response.
    CALL FUNCTION 'HTTP_PUT_COMPONENT'
      EXPORTING
        absolute_uri                      = 'xxxxxx-xx.xx/SERVICE/UPDATEUSER'
      RFC_DESTINATION                   =
      PROXY                             =
      PROXY_USER                        =
      PROXY_PASSWORD                    =
      USER                              =
      PASSWORD                          =
      COMPONENT_LENGTH                  =
       blankstocrlf                      = 'X'
    IMPORTING
       status_code                       = status_code
       status_text                       = status_text
       response_entity_body_length       = response_entity_body_length
      TABLES
        request_headers      = request_headers
        response_headers     = response_headers
        response_entity_body = response
        component_data       = request
    EXCEPTIONS
       connect_failed                    = 1
       timeout                           = 2
       internal_error                    = 3
       tcpip_error                       = 4
       system_failure                    = 5
       communication_failure             = 6
       OTHERS                            = 7
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Is there anywhere in SAP i can verify that the values are sent?? Like a trace or something???
    Thank you!!!

Maybe you are looking for

  • Booted in Safe Mode now Mail and Safari crash when I try to open them

    I have a problem with InDesign.  I booted in Safe Mode in an attempt to reset my system cache.  Now when I boot normally the InDesign problem persists and Safari and Mail crash every time I try to open them.  When I boot in safe mode Mail, Safari, an

  • Wanting to use multiple monitors on HP hpe210Y w-DVI-I and HDMI. Audio: 5.1 Surround

    I have a HP Elite hpe210y with only two outputs of which are: 1) DVI-I and 2) HDMI. My  situation is that I have 2 new HP Monitors with VGA Cables. I have an adapter for DVI-I to VGA and also VGA to Dual VGA. I do NOT want the monitors to work as Dup

  • Canon 1100 printer and Z40 rip with OSX.6  (OS10.6 Snow Leopard)

    I have seen a quite few people stuck with older printers under 10.6. Here is my fix for getting my Canon 1100 with a Z40 rip (the big box that sits to the side of the printer) to work with the new operating system. How to connect a CLC 1100 and Z40 r

  • ISE Blacklist application

    My customer is requesting us something I am not very sure is possible. The request is to avoid employees use the devices provided by the corporation to get internet access through the Wireless Guest Service. Currently the Guest Service is already wor

  • High CPU/hangs on certain sites on Dell 9010 AIO

    The issue is that Firefox hangs with 100% CPU for approx. 20-30secs when we load/move tabs a bespoke site that uses Javascript but only when using the new Dell 9010 AIO that we have just purchased. It works fine on all other Dell's and other makes/mo