Export values for CL_HTTP_CLIENT= CREATE

Hi All,
I am trying to use methos create of Class CL_HTTP_CLIENT
CALL METHOD CL_HTTP_CLIENT=>CREATE
   EXPORTING
     HOST               = host  "e.g. www.google.co.uk
     SERVICE            = port
     PROXY_HOST         = proxy_host
     PROXY_SERVICE      = proxy_port
     SCHEME             = scheme
  IMPORTING
     CLIENT             = client
   EXCEPTIONS
     ARGUMENT_NOT_FOUND = 1
     PLUGIN_NOT_ACTIVE  = 2
     INTERNAL_ERROR     = 3
     others             = 4.
My concern is how do we get 'PORT' value.
Also what value will go to proxy_host and proxy_port.
Is it value that is configured to internet connection for explorer ? How to get it?
Kindly site one example if possible. I have searched a lot on SDN bt m still not clear about the values and how to get them.
Regards,
Sangvir Singh

Hello friend,
please refer to this example
data https_client type REF TO IF_HTTP_CLIENT.
data error_code type sysubrc.
data res_error type string.
DATA: res_data TYPE XSTRING,
      filename type string,
      path type string,
      fullPath type string.
DATA: WF_USER TYPE STRING .
data long_string type string.
DATA: WF_PASSWORD TYPE STRING .
TYPES line_x(512) TYPE x.
DATA lt_xstring TYPE TABLE OF line_x.
  DATA l_length TYPE i.
CALL METHOD CL_HTTP_CLIENT=>CREATE
  EXPORTING
    HOST          = 'www.paypal.com'
    SERVICE       = '443'
    SCHEME        = '2'
   PROXY_HOST    = '10.56.192.26'
   PROXY_SERVICE = '8080'
  IMPORTING
    CLIENT        = HTTPs_CLIENT.
check https_client is not initial.
*HTTPs_CLIENT->PROPERTYTYPE_LOGON_POPUP = HTTPs_CLIENT->CO_DISABLED.
* proxy server authentication
*CALL METHOD HTTPs_CLIENT->AUTHENTICATE
*  EXPORTING
*    PROXY_AUTHENTICATION = 'X'
*    USERNAME             = WF_USER
*    PASSWORD             = WF_PASSWORD.
CALL METHOD HTTPs_CLIENT->REQUEST->SET_HEADER_FIELD
  EXPORTING
    NAME  = '~request_method'
    VALUE = 'POST'.
CALL METHOD HTTPs_CLIENT->REQUEST->SET_HEADER_FIELD
  EXPORTING
    NAME  = '~request_uri'
    VALUE = '/cn/cgi-bin/webscr?dispatch=5885d80a13c0db1ffc45dc241d84e953d0e88f8d71535079b246201019c8adab'.
CALL METHOD HTTPs_CLIENT->SEND
  EXCEPTIONS
    HTTP_COMMUNICATION_FAILURE = 1
    HTTP_INVALID_STATE         = 2.
if sy-subrc <> 0.
  CALL METHOD https_client->get_last_error
    IMPORTING
      code = error_code.
  case error_code.
    when 1.
      write 'The communication is failed'.
    when 2.
      write 'invalid state of http'.
  endcase.
endif.
CALL METHOD HTTPs_CLIENT->RECEIVE
  EXCEPTIONS
    HTTP_COMMUNICATION_FAILURE = 1
    HTTP_INVALID_STATE         = 2
    HTTP_PROCESSING_FAILED     = 3.

Similar Messages

  • Which table contains net book value for Assets created with AS91.

    Which table contains net book value for Assets created with AS91.
    I have a problem locating where the net book value is stored in SAP.  Is it simply calculated and not stored in any one place?  I am trying to predict how SAP will calculate the net book value for some assets we plan on converting, but my formula doesn't always work consistently and I have not idea what is going on.  If it is stored in a table some place, can anyone please let me know!
    Thank you all

    Hi anar.samadzade & Michael Stewart
    It is not possible to directly get net book value of an any Table. You must migrate the gross book value (acquisition cost) and the accumulated depreciation. SAP will then calculate the NBV.
    Gross Block & Accumulate Dep you will get from Table: ANLC
    http://fixedassetsaccounting.net/migrating-fixed-assets-into-sap-a-harlex-guide/
    Dear anar.samadzade Ask Questions politely
    Regards
    Viswa

  • How to import/export value for ekko-netwr

    Hi friends,
    amount value 'ekko-netwr'  from incude LV61AA43 should pass to include LV61AA43 for this iam using import/export paramters but there is no parameter id for netwr . How can i pass this amout to this rountine.
    Thank u ,
    prasad.

    hi,
    A simple example of ABAP memory is using the EXPORT/IMPORT statements.
    Here in this program, I get the data, export it to memory,
    clear out the internal table in my progam, then reimport the data into it and write out the data.
    You probably wounldn't do this in a normal program,
    but this is how you can pass data from program a to program b when A Submits program B.
    report zxy_0002 .
    data: it001 type table of t001 with header line.
    select * into table it001 from t001.
    export it001 = it001 to memory id 'ZXY_TEST'.
    clear it001. refresh it001.
    import it001 = it001 from memory id 'ZXY_TEST'.
    loop at it001.
    write:/ it001-bukrs, it001-butxt.
    endloop.
    SAP Memory
    SAP memory is a memory area to which all main sessions within a SAPgui have access.
    You can use SAP memory either to pass data from one program to another within a session,
    or to pass data from one session to another.
    Application programs that use SAP memory must do so using SPA/GPA parameters (also known as SET/GET parameters).
    These parameters can be set either for a particular user
    or for a particular program using the SET PARAMETER statement.
    Other ABAP programs can then retrieve the set parameters using the GET PARAMETER statement.
    The most frequent use of SPA/GPA parameters is to fill input fields on screens
    ABAP/4 Memory
    ABAP memory is a memory area that all ABAP programs within the same internal session can access
    using the EXPORT and IMPORT statements.
    Data within this area remains intact during a whole sequence of program calls. To pass data
    to a program which you are calling,
    the data needs to be placed in ABAP memory before the call is made.
    The internal session of the called program then replaces that of the calling program.
    The program called can then read from the ABAP memory.
    If control is then returned to the program which made the initial call, the same process operates in reverse.
    SAP memory
    The SAP memory, otherwise known as the global memory,
    is available to a user during the entire duration of a terminal session.
    Its contents are retained across transaction boundaries as well as external and internal sessions.
    The SET PARAMETER and GET PARAMETER statements allow you to write to, or read from, the SAP memory.
    ABAP/4 memory
    The contents of the ABAP/4 memory are retained only during the lifetime of an external session
    (see also Organization of Modularization Units).
    You can retain or pass data across internal sessions.
    The EXPORT TO MEMORY and IMPORT FROM MEMORY statements allow you to write data to, or read data from, the ABAP memory.
    ABAP Memmory & SAP Memmory
    http://www.sap-img.com/abap/difference-between-sap-and-abap-memory.htm
    http://www.sap-img.com/abap/type-and-uses-of-lock-objects-in-sap.htm
    Set
    http://www.geocities.com/SiliconValley/Campus/6345/set_para.htm
    GET
    http://www.geocities.com/SiliconValley/Campus/6345/get_para.htm
    EXPORT
    http://www.geocities.com/SiliconValley/Campus/6345/export01.htm
    Other Imp Help
    http://www.geocities.com/SiliconValley/Campus/6345/abapindx.htm
    Thanks & Regards
    ilesh 24x7

  • Editable ALV in OOPs : default value for newly created rows

    <b>I have created editable ALV using OOPs. </b>
    But my requirement is while creating new rows in ALV, one column value should be filled with some default value automatically(as soon as I press create row icon on toolbar)
    Thanks.

    HI HaReSh
    <b>refer to this code below.hope it might help u.</b>
    *& Report  ZTESTDEMO_INTERACTIVE_LIST_2
    REPORT  ZTESTDEMO_INTERACTIVE_LIST_2.
    TABLES: MARA,MARC,MARD.
    * internal table itab_mara 3 fields matnr, ernam,mtart
    DATA: BEGIN OF ITAB_MARA OCCURS 0,
    MATNR LIKE MARA-MATNR,  " material number
    ERNAM LIKE MARA-ERNAM,  " name of person who create
    MTART LIKE MARA-MTART,  " Material Type
    END OF ITAB_MARA.
    * internal table itab_marc 3 fields matnr, werks,lvorm
    DATA: BEGIN OF ITAB_MARC OCCURS 0,
    MATNR LIKE MARC-MATNR,
    WERKS LIKE MARC-WERKS,  " Plant
    LVORM LIKE MARC-LVORM,  " Flag Material for Deletion at Plant Level
    END OF ITAB_MARC.
    * internal table itab_mard 2 fields
    DATA: BEGIN OF ITAB_MARD OCCURS 0,
    MATNR LIKE MARD-MATNR,
    LGORT LIKE MARD-LGORT,  " Storage Location
    END OF ITAB_MARD.
    SELECT-OPTIONS: S_MTART FOR MARA-MTART.
    INITIALIZATION.
    S_MTART-LOW = 'HALB'.
    S_MTART-HIGH = 'HAWA'.
    S_MTART-OPTION = 'BT'.
    APPEND S_MTART.
    START-OF-SELECTION.
    SELECT MATNR ERNAM MTART FROM MARA INTO TABLE ITAB_MARA WHERE MTART IN
    S_MTART.
    PERFORM DISPLAY.
    TOP-OF-PAGE.
    WRITE:/2(15) 'MATERIAL NO',20(20) 'CREATED BY',45(15) 'MATERIAL TYPE'.
    FORM DISPLAY.
    LOOP AT ITAB_MARA.
    WRITE:/ ITAB_MARA-MATNR UNDER 'MATERIAL NO' HOTSPOT ON,ITAB_MARA-ERNAM
    UNDER 'CREATED BY',ITAB_MARA-MTART UNDER 'MATERIAL TYPE'.
    HIDE: ITAB_MARA-MATNR.
    ENDLOOP.
    ENDFORM.
    AT LINE-SELECTION.
    CASE SY-LSIND.
    WHEN 1.
    SELECT MATNR WERKS LVORM FROM MARC INTO TABLE ITAB_MARC WHERE MATNR =
    ITAB_MARA-MATNR.
    PERFORM DISPLAY1.
    WHEN 2.
    SELECT MATNR LGORT FROM MARD INTO TABLE ITAB_MARD WHERE MATNR =
    ITAB_MARC-MATNR.
    PERFORM DISPLAY2.
    when 3.
    sy-lsind = 0.
    ENDCASE.
    FORM DISPLAY1.
    LOOP AT ITAB_MARC.
    WRITE:/ ITAB_MARC-MATNR HOTSPOT ON, ITAB_MARC-WERKS,ITAB_MARC-LVORM.
    HIDE: ITAB_MARC-MATNR.
    ENDLOOP.
    WRITE:/ SY-LSIND.
    ENDFORM.
    FORM DISPLAY2.
    LOOP AT ITAB_MARD.
    WRITE:/ ITAB_MARD-MATNR, ITAB_MARD-LGORT.
    ENDLOOP.
    WRITE:/ SY-LSIND.
    ENDFORM.
    regards
    ravish
    <b>plz reward for useful ans</b>

  • How do I set the Checkbox Export value to numeric?

    I am attemting to analyze the data in my forms.  In order to do so, I am exporting the data into a spreadsheet.  There are about 50 check boxes in the form that I am tabulating.  The default export values are "Yes" and "Off".  My preferred values are 1 and 0, which greatly simplify analysis of the data.  I can set the "Yes" value to "1", but I can't find a way to set the "Off" value to "0".  As it stands, I have to go through the list and delete all "Off" values to have them work in my spreadsheet.
    How do I create a numeric value on the check box?  Is there a more graceful way of analyzing data from forms?  Am I missing something.
    Here are some recommendations.  By default, make the checkbox export 1 and 0.  When the export value for  a checkbox is set to a numeric value, set the unchecked value to 0.  Provide a place to set the export value of an unchecked checkbox.

    You can't change the default "Off" value of a check-box. Just write a macro or script to replace all the instances of "Off" with "0". Shouldn't be too complicated... Another option is to use radio-buttons and set their values to 0 and 1. Set the "0" button as selected by default and you're guaranteed to get one of those values in your output (since it's not possible to "unselect" a radio-button group).
    Feature requests can be made here: https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • Non-***. KF are coming blank for newly created Plant/Mat in Inventory Query

    Hi,
    In my BEx query, Total stock quantity values for newly created Plant is not coming.
    BW and R3 have gone live on the same date.
    (1) Did Stock initialization for existing Plant.
    (2) Filled set up table and did INIt load for the existing plants.
    (3) compress the request in BW.
    BX - with marker update
    BF - with no marker update.
    Now two more plants are created in R3 side with their opening stock values.
    Did Delta to BW.
    New Plants are loaded into BW. I can see "Receipt Qty" value in 0IC_C03 cube - 1200.And Issued qty - 000
    But When I execute Bex query, "Total Stock qty" and "Stock in Transit" (these all are non-cumulative keyfigures) are coming as blank.
    Please suggest. Quick response is much appreciated. This is Production (after Go-live issue).
    Thanks in advance.

    Any sugestions ??

  • Error message on importing "checkmark field contains export value"

    This is an example of an error message I receive upon importing my document into FC. "The checkbox field Member Y contains an export value. FormsCentral will record the checked state, but will not include the export value."
    I need to know how to fix this.  I am working with a multi-page form where the data input on the first page needs to copy over to the other pages.  Only the checkmarks are affected.  I can find it Acrobat Pro options where it shows the export value for the checkmarks but I need to know what I need to change that field to say in order for my form to work.
    frustrated.  I'm wasting too much time on this.

    I have the same problem:
    FormsCentral has successfully imported the PDF with the following exceptions:
    The checkbox field 10000 contains an export value. FormsCentral will record the checked state, but will not include the export value.
    The checkbox field DATA CENTRE contains an export value. FormsCentral will record the checked state, but will not include the export value.
    How to solve? Do you send the form to [email protected]?
    Many thanks!

  • How to pass a value to the export parameter for a method (public instance)?

    Hello,
      I am trying ABAP OO newly. How to pass a value to the export parameter for a method (public instance) called in a report? This *export parameter has a reference type of structure.
    Thanks in advance,
    Ranjini

    Hi,
    "class definition
    class lcl... definition.
      public section.
        method m1 imporitng par type ref to data.  "now you can pass any reference to the method, but this way you have to maintain this reference dynamically inside the method (you can't be sure what that reference is really "pointing" at)
    endclass.
    "in program
    data: r_lcl type ref to lcl...
    create object r_lcl.
    call method r_lcl
      exporting
         par    =  "pass any reference variable here
    Regards
    Marcin

  • Create subordinate values for Characteristics

    Hi ,
    I am using  BAPI to create the characteristic
        CALL FUNCTION 'BAPI_CHARACT_CREATE'
        EXPORTING
        charactdetail = gs_charactdetail
        keydate = gv_keydate
        TABLES
        charactdescr = gt_charactdescr
        charactvaluesnum = gt_charactvaluesnum
        charactvalueschar = gt_charactvalueschar
        charactvaluescurr = gt_charactvaluescurr
        charactvaluesdescr = gt_charactvaluesdescr
        charactreferences = gt_charactreferences
        charactrestrictions = gt_charactrestrictions
        return = gt_return .
    But  there is no way which i can create suboridinate values  for (charactvalueschar) . Please let me know how can i create soubordinate values for char values
    Reagrds
    Ramesh

    describe your problem.
    It does not really matter if you use standard batch input or IDOC, both will lead to the same result.
    However, object 0150 and CLFMAS are 2 different things.
    0150 is characteristics while CLFMAS is classification
    if you want classify with standard batch input then you should use 0130 instead of 0150.

  • Can I create a fillable pdf form and then export it for client use on my web site?

    Can I create a fillable pdf form and then export it for client use on my web site?  I need clients to be able to fill in the (registration) form on my site then submit it via email.

    [discussion moved to Creating, Editing & Exporting PDFs forum]

  • How to create a display value and a return value for an item

    Hi! I have an item on a form. I want the default value for my item to be :":APP_USER", but the return value, to be the id of my user. I tried to create a PL/SQL Expression for the default item, but it doesn't work. What do I miss?
    It should be something like this, but it's not.
    begin
    select first_name || ',' ||last_name as "Employee",
    id_employee -- display value,return value
    from employees
    where id_employee = :APP_USER;
    end;
    Does anyone know?
    Thanks!
    Vitaly

    Hi VItaly,
    Display value and return value concept applies very well in case of a Combo box if i am correct, I don't know what type of item is your's.
    But any way, you can have a workaround like,
    Create a hidden item such that it's default value should be ID of the user which can be get from db by using :APP_USER.
    Use the this item for your references.
    I think this will meet your requirement.
    Thanks
    Kumaraswamy.

  • I am trying to export the combained PDF based on BOOK opetion using below scripts. but i am getting following error message "Invalid value for parameter 'to' of method 'exportFile'. Expected File, but received 1952403524". anyone knows, please suggest me

    Dear ALL,
    i am trying to export the combained PDF based on BOOK opetion using below scripts. but i am getting following error message "Invalid value for parameter 'to' of method 'exportFile'. Expected File, but received 1952403524". anyone knows, please suggest me solutions.
    var myBookFileName ,myBookFileName_temp;
                    if ( myFolder != null )
                            var myFiles = [];
                            var myAllFilesList = myFolder.getFiles("*.indd");    
                            for (var f = 0; f < myAllFilesList.length; f++)
                                        var myFile = myAllFilesList[f]; 
                                        myFiles.push(myFile);
                            if ( myFiles.length > 0 )
                                        myBookFileName = myFolder + "/"+ myFolder.name + ".indb";
                                        myBookFileName_temp=myFolder.name ;
                                        myBookFile = new File( myBookFileName );
                                        myBook = app.books.add( myBookFile );  
                                       myBook.automaticPagination = false;
                                        for ( i=0; i < myFiles.length; i++ )
                                                   myBook.bookContents.add( myFiles[i] );             
                                        var pdfFile =File(File(myFolder).fsName + "\\"+myBookFileName_temp+"_WEB.pdf");
                                        var bookComps = myBook.bookContents;
                                        if (bookComps.length === 1)
                                                       bookComps = [bookComps];
                                         var myPDFExportPreset = app.pdfExportPresets.item("AER6");
                                        app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFEx portPreset,bookComps);
                                      //myBook.exportFile (ExportFormat.pdfType, pdfFile, false);
                                      //myBook.exportFile(pdfFile, false, pdfPref, bookComps);
                                        myBook.close(SaveOptions.yes);      

    Change the below line:
    app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFExp ortPreset,bookComps);
    to
    app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFExp ortPreset);
    Vandy

  • Issue in creating limits value for service PR using BAPI_REQUISITION_CREATE

    HI Experts
    I am creating a service PR using bapi bapi_requisition_create.I am able to create service PR successfully, but I am not able to set value for overall limit and the Expected value.
    I am passing the limits values through bapi, but when I am trying to display those value in the limits tab in ME53N, it gives dump.
    Please suggest how can I set the limits value.
    regards
    Ashwini

    Could Ashwini or anyone else please suggest how this issue was resolved? I am using BAPI_REQUISITION_CREATE, but the limits I enter in the REQUISITION_LIMITS table, do not get saved, although the Purchase Requisition itself gets created.

  • Default values for creating vendor master data

    Hi.
    Is it possible to set default value for payment term and planning group when creating vendor master data of a specific account group?
    Thanks in advance.

    HI,
    1, Create a vendor in your Account group as the reference vendor account
    2, By t-code:XK01, create new vendor with reference vendor of step 1,
       then the system will transfer the value from your reference vendor.
    Regards
    Ravinagh Boni

  • Create values for analogous periods in the same table with DS

    Hi,
    in the course of a pilot we want to create additional columns with data for analogous periods.
    We have values for a month and need to create new columns for values for last month and last year in order to compare.
    Attached youu2019ll find a few sample rows resembling the basic concept of what we have
    Region     Country     Year     Month     Value
    Europe     Spain     2009     1     285
    Europe     Spain     2009     2     129
    Europe     Spain     2009     3     153
    Europe     Spain     2008     1     288
    Europe     Spain     2008     2     284
    Europe     Spain     2008     3     125
    Europe     France     2009     1     135
    Europe     France     2009     2     125
    Europe     France     2009     3     284
    Europe     France     2008     1     208
    Europe     France     2008     2     221
    Europe     France     2008     3     220
    In this case, new columns would be
    LastMonth (125 for Spain month 1 year 2009, since this is the value for month 3 year 2008)
    LastYear (288 for Spain month 1 year 2009, since this is the value for month 1 year 2008).
    Can you help on what function to use in the DS query transformation?
    thanks everybody, and enjoy!

    Hi David,
    Probably the easiest way of resolving this would be to add extra columns which show the projected date each row should be shown on e.g.
    Region     Country     Year     Month     Value     LM_Year     LM_Month     LY_Year     LY_Month
    Europe     France     2008     1     208     2008     2     2009     1
    Europe     France     2008     2     221     2008     3     2009     2
    Europe     France     2008     3     220     2008     4     2009     3
    Europe     France     2009     1     135     2009     2     2010     1
    Europe     France     2009     2     125     2009     3     2010     2
    Europe     France     2009     3     284     2009     4     2010     3
    This would be written to a staging table then used as a source with the original source file to produce the target table. I've illustrated an example of how this could be achieved below:
    Create two dataflows; DF 1 and 2.
    In DF 1 read source, add additional columns to show the date (year, month, etc) this should be projected as. This would need to be done for both the last month and last year. Load staging table.
    In DF 2 Read the source and outer join to the new staging table twice. Use the region, Country, Year, Month, to join and use the new additional projected date columns. Ensure the last month date fields are used on one staging table and last year date fields are used on the next staging table. The value from the two staging tables is then used in the last month and last year value.
    Load into target table.
    To calculate the projected date columns you would probably want to format the source fields into a date then add the required number of months. e.g. to_date('01' || month || year, 'DDMMYYYY') + 12
    Obviously this would need the stage table to be truncated before each load and you would need to assess your load strategy. When doing these calculated fields if you have any retrospective updates on the source then these would then need recalculating, therefore this assumes it's a complete reload each time.
    Edited by: Richard Saltern on Jul 16, 2010 2:01 PM
    Edited by: Richard Saltern on Jul 19, 2010 10:10 AM

Maybe you are looking for

  • Excise Invoice at Depot for Initial Inventory Uploads

    Hi, >we are rolling out a new plant for which we have old stocks which were done with the Movement type "561".We want to do Excise invoice at depot using the T.Code J1IG.but we dont have corresponding excise invice at Factory.Please advice is there a

  • How can I replicate a MS Excel 'IF' statement in a form

    Hello I would like to replicate a microsoft Excel 'if' statement in a Livecycle form. The excel statement is: =IF(AG36=1,"5",IF(AG36>0.97,4,IF(AG36>0.84,"3",IF(AG36>0.3,"2","1")))) Which is based around %. The 1 in this statement equals 100%, then th

  • Error Message When Rendering/Writing Video

    Trying to render my timeline and I get "File Error: The specified file is open and in use by this or another application." I uninstalled and reinstalled all of FInal Cut Studio- no help. I unplugged my external drive and used all internal drive setti

  • Firefox came up with the unresponsive script message and now if frozen?

    Firefox came up with the unresponsive script message. I clicked 'stop script' but now Firefox has frozen and is not responding to anything I do. I cannot click on anything. It will not let me close it down, uninstall it or shut down my computer.

  • Magic mouse sticks/freezes

    Anyone else noticed a problem with the Magic Mouse in that it seems to get stuck for a few seconds at time? It'll work perfectly, then I can't move it left or right (only barely), you can click, it'll move up and down more than left or right but stil