HTTP_POST structure / syntax

Hello All,
i have a requirement to connect to a web service which is not traditional, meaning when i try to make a proxy for it, it gives me a lot of headaches.
Therefore, i am trying to use HTTP_POST, as i have found that there is a number of people who have had success with it, in non traditional web services.
My issue is this, what is the structure used to load the header and the body internal tables? there doesn't seem to be a lot of documentation on this subject, at least that i can find. I will need to call the web service and pass it parameters and receive information back from the service. and, this is a third party, or external web service.
any information on this would be welcomed.
thanks,
Erik Thiessen

in another thread Chan-Seok Jeon showed the proper structure of the body internal table. here it is, and thanks about Chan-Seok Jeon.
* Set Header
APPEND 'Content-Type: text/xml; charset=euc-kr' TO LT_REQ_HEAD.
* Set Parameter
APPEND '<?xml version="1.0" encoding="euc-kr"?>             ' TO LT_REQ_BODY.
APPEND '<root>                                              ' TO LT_REQ_BODY.
APPEND '<params>                                            ' TO LT_REQ_BODY.
APPEND '<param id="admMode" type="STRING">Y</param>         ' TO LT_REQ_BODY.
APPEND '<param id="block" type="STRING">A23</param>         ' TO LT_REQ_BODY.
APPEND '<param id="gubun" type="STRING">lot</param>         ' TO LT_REQ_BODY.
APPEND '<param id="ocomp" type="STRING"></param>            ' TO LT_REQ_BODY.
APPEND '<param id="path" type="STRING"></param>             ' TO LT_REQ_BODY.
APPEND '<param id="shipno" type="STRING">S630</param>       ' TO LT_REQ_BODY.
APPEND '<param id="userid" type="STRING">AAAAAAAAAA</param> ' TO LT_REQ_BODY.
APPEND '<param id="plate" type="STRING">Y</param>           ' TO LT_REQ_BODY.
APPEND '<param id="print_view" type="STRING">V</param>      ' TO LT_REQ_BODY.
APPEND '</params>                                           ' TO LT_REQ_BODY.
APPEND '<dataset id="ds_input">                             ' TO LT_REQ_BODY.
APPEND '<colinfo id="chk" size="1" type="STRING"/>          ' TO LT_REQ_BODY.
APPEND '<colinfo id="dwgno" size="2" type="STRING"/>        ' TO LT_REQ_BODY.
APPEND '<colinfo id="fab" size="3" type="STRING"/>          ' TO LT_REQ_BODY.
APPEND '<colinfo id="filechk" size="3" type="STRING"/>      ' TO LT_REQ_BODY.
APPEND '<colinfo id="filename" size="30" type="STRING"/>    ' TO LT_REQ_BODY.
APPEND '<colinfo id="grp" size="1" type="STRING"/>          ' TO LT_REQ_BODY.
APPEND '<colinfo id="lot" size="3" type="STRING"/>          ' TO LT_REQ_BODY.
APPEND '<colinfo id="revno" size="3" type="STRING"/>        ' TO LT_REQ_BODY.
APPEND '<colinfo id="ship" size="5" type="STRING"/>         ' TO LT_REQ_BODY.
APPEND '<record>                                            ' TO LT_REQ_BODY.
APPEND '<chk>1</chk>                                        ' TO LT_REQ_BODY.
APPEND '<dwgno>01</dwgno>                                   ' TO LT_REQ_BODY.
APPEND '<fab>COM</fab>                                      ' TO LT_REQ_BODY.
APPEND '<filechk>Oilechk>                                   ' TO LT_REQ_BODY.
APPEND '<filename>XXXXXXXXXXXXX.XXX</filename>              ' TO LT_REQ_BODY.
APPEND '<grp>4L</grp>                                       ' TO LT_REQ_BODY.
APPEND '<lot>A23</lot>                                      ' TO LT_REQ_BODY.
APPEND '<revno>0</revno>                                    ' TO LT_REQ_BODY.
APPEND '<ship>S630</ship>                                   ' TO LT_REQ_BODY.
APPEND '</record>                                           ' TO LT_REQ_BODY.
APPEND '</dataset>                                          ' TO LT_REQ_BODY.
APPEND '</root>                                             ' TO LT_REQ_BODY.
You are just passing the exact structure of the xml to http_post.
thanks,
Erik

Similar Messages

  • Deep Structure - Append and Reading

    Hi.....
    1) I need Deep Structure Syntax for Appending and Reading..
    2) I want append data following Deep Structure...
    DATA : BEGIN OF itab1 OCCURS 0,
      v1 TYPE i,
      v2 TYPE i,
      END OF itab1.
    TYPES : BEGIN OF stru1,
      v1 TYPE i,
      v2 TYPE i,
      END OF stru1.
    DATA itab2 TYPE SORTED TABLE OF stru1 WITH HEADER LINE WITH UNIQUE KEY v1.
    DATA : BEGIN OF stru2,
      v1 TYPE i,
      v2 LIKE TABLE OF itab2,
      END OF stru2.
    DATA itab3 LIKE STANDARD TABLE OF stru2 WITH HEADER LINE.
    DATA : BEGIN OF main,
      v1 TYPE i,
      v2 TYPE stru1,
      v3 LIKE TABLE OF itab1,
      v4 LIKE STANDARD TABLE OF itab2,  "------> *Here CAN WE SPECIFIES AS SORTED TABLE ..IS IT POSSIBLE?
    v4 LIKE SORTED TABLE OF itab2*  
      v5 LIKE STANDARD TABLE OF itab3,     
      END OF main.
    "main-v1 = 11.
    "main-v2-v2 = 21.
    thanx....
    Edited by: B C Ganesh on Mar 16, 2010 9:44 AM

    Hi,
    you do READ, APPEND (and other operations on internat table) in the same way on simple internal table like and on internal table which is part of some (deep) structure. You only have to respect names, so instead of
    APPEND itab.
    you have to do:
    APPEND stru1-stru2-stru3-itab.
    Regards,
    Przemysław

  • APEX 3.1.2 unzip location

    Hi there,
    I'm going to be doing a first-time install of APEX 3.1.2 in an Oracle 11g Database very soon.
    We must download and install APEX separately, and not use the one supplied by the Oracle 11g database, as a 3rd-party application requires this.
    So I've downloaded the APEX 3.1.2.zip from Oracle, and now I'm trying to figure out where it should be unzipped.
    There's nothing in the Oracle Application Express Installation Guide Release 3.1.2 that explicitly states APEX must be installed under $ORACLE_HOME, except in the "Copying the Images Directory in a New Installation" section, which is near the end of the install. This section implies that APEX must be unzipped directly under $ORACLE_HOME. But nowhere earlier in the documentation does it tell you WHERE the APEX zip file should be unzipped.
    So, where should APEX be unzipped? i.e. under $ORACLE_HOME or not? Does it matter? Any insight would be helpful.
    Thanks.
    Rob
    Edited by: x94qvi on Sep 18, 2009 5:34 PM

    Rob:
    Always have in mind that for later upgrades to apex the reference for APEX_HOME will be necessary. If I remember correctly, there is an Oracle Standard called OFA (Optimal Flexible Architecture) that suggests something like this " /u01/app/oracle/product/10.1.0/type[_n] " in my case, its " /u01/app/oracle/product/3.1.2/apex_1 ".
    This is applicable for all of your Oracle products installed in your O/S. If you would like additional information about OFA, you can find it here: http://download.oracle.com/docs/cd/E11882_01/install.112/e10840/appendix_ofa.htm#i633068, the Table D-7 Directory Structure Syntax for Identifying Classes of Files and Table D-8 Hierarchical File Mapping for an Optimal Flexible Architecture Installation are more specific about the suggested paths.
    Since it's... as stated before, an arbitrary call, you could either follow the standard or just place it under /home/oracle/apex :)
    Hope you find this helpful.
    Nelson
    Edited by: Nelson Bolaños on Sep 18, 2009 7:47 PM

  • Basic HTML concepts and how they relate to eachother

    I am a grad student working on a project to visualize how the HTML markup is translated into a webpage in a browser. I am not a programmer, and thus am confused by how all the following concepts relate to one another. The goal lis to list them in a logical order and describe how one concept leads to the next in a sequential manner.
    I’d like to create a hierarchal list of all these terms and their definitions as a start. Here’s what I have so far.
    Tried to start with the most basic, and work my way up Any help would be appreciated. Any errors?
    SPECIFICATIONS
    WC3 / WHTWG Specification
    Defines the semantics, structure, syntax, and rendering of HTML code
    elements in HTML5 (tags)
    any element in the HTML namespace (as per the doctype declaration) - refers to all tags and their attributes - these tags are used to describe the meaning of the content they contain
        content model types     (tags can fit in one ore more of these categories of model types) 
            metadata - content that sets up the presentation or behavior of the rest of the content
            flow - elements that would be included in the normal flow of the document (fits in the HTML body tag)
            sectioning - defines the scope of heading and footers - create new sections in document
            heading - defines the header of a section, which can either be explicitly marked up with sectioning elements or implied by the heading content itself
            phrasing (similar to inline in HTML 4) - the text of the document, as well as elements used to mark up the text within paragraph level structures
            embedded - any content that imports other resources into the document
            interactive - any content that is specifically interacted for user interaction
    Outline Algorithm  (definition)
        Definition in the HTML5 spec of the rules that user agents should use when parsing code in order creating an outline of section content elements in an HTML     document
                    he outline (based on their ranking)
    AUTHOR
    HMTL5 Document - the document contenting HTML elements and authored content
    Document Semantics - the meaning associated with each HTML element Tag
        the collection of tags with meaning form the semantic structure of the HTML document
    Document Structure (combination of ordered semantic elements) - the order and nesting of tags, and the associations associated with the levels of nesting (ranking) create the document structure
        understanding the W3C outline Algorithm helps the author decide how and when to chose which elements to properly structure content
            understanding the process that HTML5 uses to outline documents will help in this decision
    USER AGENT (BROWSER)
    User Agent (browser)-
        the browser (application that user operates to interact with HTML documents
        parsing algorithm (executed) - the rules the browser uses to parses (walks through) the elements in order to establish its structure and add to the outline using     a parsing engine
            examples: webkit (safari) and gecko (firefox)
                body is established as the outline root (beginning)
        the result of the parsing is a Document object Model (DOM) and the Document Ouline
    Document outline - the nested,  hierarchical outline created by the browser parsing the html document’s structure and content
        each part of the outline is considered a node
            (relationships in the node are described with family tree terms like parent, child, and sibling.)
        sectioning and heading elements are used to define the outline
        sectioning elements are containers - so any elements contented within a a section is nested as a child in the parent’s section
    DOM -
        The DOM is the structure created by the DOM API in which  CSS and Javascript interact with and modify the HTML
        based on an object structure that closely resembles the structure of the documents it models.
        structure similar to that of a tree - in which every element is a node   
        similar to the document outline, but instead of a hierarchical list, the DOM is a tree diagram
    OUTPUT
    Final webpage

    As a rule of thumb, avoid all swing components (just use awt) because they are only available in 1.2. You can use all enhancements and bug fixes to awt components that are available in 1.4 (even 1.5).
    ;o)
    V.V.

  • Header line and work area

    Hi,
    can anyone please explain me wht is the difference between header line and work area???

    Hi,
    INTERNAL TABLES
    - Internal tables are used to obtain data from a fixed structure for
    dynamic use in ABAP.
    - Each line in the internal table has the same field structure.
    - The main use for internal tables is for storing and formatting data from
    a database table within a program.
    WORK AREAS
    - Work areas are single rows of data.
    - It should have the same format as any of the internal tables.
    - It is used to process the data in an internal table one line at a time.
    Internal Tables with Header Line : Here the system automatically creates the work area. The work area has the same data type as internal table. This work area is called the HEADER line. It is here that all the changes or any of the action on the contents of the table are done. As a result of this, records can be directly inserted into the table or accessed from the internal table directly.
    Internal Tables without Header Line : Here there is no work area associated with the table. Work area is to be explicitly specified when we need to access such tables. Hence these tables cannot be accessed directly.
    HEADER LINE----
    CREATED EXPLICITLY------
    1.Internal table created by referring to another table
    Syntax: Data <f> <type> with header line.
    <type> refers to a table data type or table data objects using type or like.
    Here internal table <f> is created of the type <type>.
    Example:
    DATA t_line TYPE line OCCURS 10 with header line.
    2. Internal table created by referring to existing structure
    Syntax: Data<f> <type> occurs n with header line.
    The lines of the internal table <f> have the data type specified in <type> (Can use either like or type).
    Example:
    DATA flight_tab LIKE sflight OCCURS 10.
    CREATED BY DEFAULT---
    3. Internal table created With a new structure
    Syntax: Data : Begin of <f> occurs <n>,
    <component declaration>,
    End of <f>.
    Work area is created by default.
    Example:
    Data : Begin of itab occurs 10,
    column1 type I,
    column2(4) type C,
    column3 like mara-ernam,
    End of itab.
    reward if useful
    Regards

  • Adding several standard segments in Outbound IDoc

    Hi All,
    I have a requirement in Orders05 Idoc type (Extension created). I want to pass Segment E1EDP19 three times based on the value of qualifier (3 qualifiers) in  the customer exit.
    As per my understanding, Loop at idoc_data is used when updating a Segment field with some value. But in this case I have to pass/add the same segment to internal table.
    Please suggest the approach for this.
    Thanks in advance!
    Regards
    Tanu

    Hi Tanu,
    There are several ways to do this, below mentioned are a couple of them,
    1) In the mentioned user exit, you will have all the Segments filled in. Your requirement if i understand correctly is to add E1EDP19 segments under E1EDP01 segments. So all that you have to do is build the logic to insert(not append as append would put E1EDP19 at the very which is not correct as per the structure/syntax of ORDERS05) E1EDP19 under E1EDP01 segments accordingly.
    2) The other way to accomplish(this should be relatively easy i guess) this would be to append the E1EDP19 segments into INT_EDIDD with corresponding Segment Num, Parent Segnam and parent Segnum accordingly and the use the FM SPCM_SORT_IDOC_STRUCTURE to re-structure the IDOC as per the structure of ORDERS05.
    Refer the below thread where i have provided my inputs for a similar requirment.
    Sorting Idoc Segments
    Regards,
    Chen
    Edited by: Chen K V on Jun 23, 2011 11:40 AM

  • Looping question?

    Hello!
    Okay, I have been noodling around with a pretty simple
    exercise in order to learn some Flash basics.
    I have a rectangular frame, upon which four separate
    graphical objects "parade by". These objects can be clicked and
    dragged around the frame, and the entire thing loops.
    In order to learn the basic tools to make the animation &
    controls happen, I simply took the block of code which worked for
    ONE object, and pasted it at three later frames on the timeline,
    changing the relevant terms with a numerical identifier. (i.e., in
    frame 1, a clip might be "img1_mc", but when copied to frame 12, it
    is changed to "img2.mc".)
    This allowed me to get the whole thing working the way it
    should (with each object appearing in series), and to understand a
    few of the necessary functions, methods, etc. Since each "block" of
    code only differs by a numerical identifier, I presumed it would be
    a simple matter to then condense everything into a SINGLE block of
    code (at frame 1), and use a loop or some other tool in order to
    increment that identifier and load all four objects in a stepped
    fashion.
    Ooops!
    I have pored through dozens of tutorials on loops, arrays,
    and loading variables ... but I cannot seem to figure out how to
    adjust this code to eliminate the duplicate blocks and loop
    everything. Some of the material I have read seems to indicate that
    a "for loop" will NOT work in this case, because the loop completes
    prior to the objects being animated in the live movie?
    At any rate, I assume there is likely more than one way to
    code this, and I am hoping to LEARN which is the most concise &
    efficient, as well as what drawbacks there may be to different
    solutions. I have the code block below. It looks twice as long as
    it really is, because I pasted TWO sections in the window, so you
    could see the example of the code after I changed the numerical
    identifier.
    I'm not necessarily asking for someone to give me ready-made
    code ... but some advice about which functions/methods are best,
    along with some details on structure (such as, is sequence of the
    code elements critical?) would be most appreciated!
    Thanks!

    Someone (on another forum) suggested I take a look at
    setInterval ...
    And now I have another option to consider, but I still don't
    clearly understand the syntax or structure for any of them! Let me
    see if I can elaborate on what I am struggling with.
    I understand the general logic of what I need to do from a
    programming standpoint (at least I think I do), but I am not clear
    on how the various solutions are correctly coded in ActionScript.
    The code block I am using has several "nested" things
    happening, and I am not getting how to apply loops, intervals, etc
    "around" those existing bits of code in order for the structure
    & syntax to be correct.
    In an abstract sense, I have something like this in the code
    block:
    - Create empty box
    - - - define what happens to the box when the mouse drags it
    - - - define movement across the frame for the box
    - put a graphic image into the empty box
    * * * What I want to accomplish is (more or less):
    For X = 1 to 4
    - Create one of several empty boxes(X)
    - - - define what happens to this instance of box(X) when
    the mouse drags it
    - - - define movement across the frame for this instance of
    box(X)
    - put one of several graphic images(X) into this instance of
    empty box(X)
    Next X
    So ... what I need is help understanding which ActionScript
    function/method/etc is best to accomplish this. Maybe I am
    misunderstanding some of the logic, if so, please feel free to make
    suggestions.
    I am happy to provide the .fla file, graphic images or a .swf
    file also if it is helpful.
    THANKS IN ADVANCE!

  • Dynamically parse text

    I have a situation where I need to take a group of parameters (5 in this example) and construct a string consisting of a special syntax. 
    I also need to store the structure (syntax) of this string in a database which means it cannot be hard coded.
    For example, this is a sample of what an end result might look like:
    T175N R94W, Sec. 20
    And below is a list of the 5 parameters and their values used to construct this string
    Twn:      157
    TwnDir:  N
    Rng:      94          
    RngDir:  W
    Sec:       20
    Another example may require a different syntax using the same parameter values:
    157N-094W-20
    I need to save these different string format styles in the database and then based on various requirements, pull a particular syntax and apply it to the parameter values being passed in.
    How can I persist the parsing instructions in a database and then dynamically use the parsing instructions with parameter values also pulling from a database to achieve these type of results?
    Thank you.

    Thanks jdweng, I cant do that because the data and the format requirements live in different places, and...  the same data will be used but formatted differently depending on various requirements not known until runtime.
    I found the solution below.
    static void ParseString()
    // Values passed in from db
    int twn = 157;
    string twnDir = "N";
    int rng = 94;
    string rngDir = "W";
    int sec = 20;
    // Format syntax provided by a different source (another app or db)
    string formatString = "T{0}{1} R{2}{3}, Sec. {4}";
    // Put everything together
    string result = string.Format(formatString, twn, twnDir, rng, rngDir, sec);
    Console.WriteLine(result);
    // result = "T157N R94W, Sec. 20"
    // A different Format syntax dynamically provided by a different source (another app or db)
    formatString = "T{0}{1}-R{2}{3}-{4}";
    // Put everything together
    result = string.Format(formatString, twn, twnDir, rng, rngDir, sec);
    Console.WriteLine(result);
    // Same data, different result.
    // result = "T157N-R94W-20"
    Bingo.

  • Making a object appear and dissapear

    okay i know this is way off but this is my attemp. So when i press space I want the 'sword' to appear and when its not i dont want it to be there.
    Sorry if this is actually not even 1% on the right track, any clue to what im talking about? cheers.
    var weopon_var:boolean = false;
    if (Key.isDown(Key.SPACE)){
    weopon_var = true;
    else {
    weopon_var = false;
    if (weopon_var = true){
      gotoAndPlay("sword_on")
    } else {
      (weopon_var = false){
       gotoAndPlay("sword_off"

    There are errors in the code you will need to fix before you can get anywhere with it... your if/else structuring/syntax is wrong.  Look for examples offor the correct way to structure them.
    When you compare values in a conditional for equality you use "==" not "=".  "=" is for assigning value to something.
    Further, if you are testing a boolean (true/false), you don't need to test it explicitly.  The conditional is evaluating the true/false nature of what you put in the parenthesis.  And if you are testing a boolean, if it isn't one it has to be the other.  So you could reduce your second test to be...
       if(weopon_var){
            // do stuff
       } else {
            // do other stuff
    Whether it will work when you get the errors out depends on where you have that code.  If that code sits as shown, it executes once when you enter that frame an only once.  What you really need to do is have a listener for a keyboard event that is tied to that code so that when you use the keyboard the function that code is in gets executed.  Look into "Key.addListener"

  • Problem with syntaxes and structures in unicode

    1. i have a problem with syntax
    this is old syntaxes
    TRANSLATE c ...FROM CODE PAGE g1 ... TO CODE PAGE g2
    new systems should use this class instead of above
    CL_ABAP_CONV_IN_CE
    it reads data from a container and converts it to the system format.
    my old syntax is TRANSLATE header-id FROM CODE PAGE file_tab-codepage.
    i need to change to new one by using above class how to do it
    2. I have a structure are_buffer and i am working on upgrade of a old report , i have used a sap predefined structure callled arc_buffer from se11, now when i am using offset in one of the perform statement like
    PERFORM read_file USING handle_tab_wa-offset record_len
    CHANGING arc_buffer(record_len)
    error_handling
    p_message.
    but the system throws a error called ''the structure arc_buffer(record_length) does not start with character-type field''.
    i cannot change the structure becoz its sap standard structure .
    how to get out of this.

    Moderator message - Cross post locked
    Rob

  • Extended syntax check for include structure

    Hello Everyone,
    While declaring the internal table as:
    TYPES: BEGIN OF t_data.
            INCLUDE STRUCTURE mara.
    TYPES: END   OF t_data.
    DATA: it_data TYPE table of t_data.
    When performing extended check, i get following error:
    The current ABAP command is obsolete and problematic, especially so in ABAP
    Objects
    Within classes and interfaces, you can only use "TYPE" to refer to ABAP Dictionary
    types, not "LIKE" or "STRUCTURE".
    I am using 4.7 version.
    Any clue how to avoid this error during extended check.
    Regards,
    Tarun

    Tarun,
    With WAS 6.20 you should not declare internal tables with header line or using the old syntax as they are not compatible with OO ABAP.
    So, you either declare a TYPE the way you have done, in case you want additional fields apart from the INCLUDE structure, or declare the table directly like the way I have shown.
    Good thing, you can even specify the type of internal table that you want to create using this - STANDARD, SORTED, HASH. These tables will help you with the performance issues.
    regards,
    Ravi
    Note : Please mark the helpful answers

  • Syntax for internal tables with same structure

    Hi,
    I would like to knwo what is the syntax to declare a table that has the same structure as the exisiting one?
    Say for example:
    Begin of it_tab,
       Data (1000) type c,
    End of it_tab.
    Now I would like to declare IT_Tab2 with the structure of it_tab, how should I do that? Thanks!

    HI Anyi,
    DATA <itab> TYPE|LIKE <tabkind> OF <linetype> WITH <key>
                [INITIAL SIZE <n>]
                [WITH HEADER LINE].
    Regards,
    Laxmi.

  • Syntax error on INCLUDE STRUCTURE.

    Hi Experts,
    It is abit hard to explain what I need here.
    But I try to explain as much as I can.
    I am writing this code in order to update the customer material numbers into internal table tvbdpa. As you can see in my code, getting the customer material numbers require mapping the position number.
    I am stuck at the LOOP below with ***.
    Also getting the syntax error
    _The declaration for the key field "KDMAT" is imcomplete.
    However "KDMAT" is is contained in the key of table "TVBDPA" and must be filled._
    TABLES: vbco3.
    DATA: da_mess LIKE vbfs OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF tvbdpa OCCURS 0,        "Internal table for items
            kdmat LIKE LIPS-KDMAT.
            INCLUDE STRUCTURE vbdpa.
    DATA: END OF tvbdpa.
    DATA: itab_vbak TYPE SORTED TABLE OF vbak
             WITH UNIQUE KEY vbeln,
          wa_vbak  LIKE LINE OF itab_vbak,
          itab_lips TYPE SORTED TABLE OF lips
             WITH UNIQUE KEY vbeln,
          wa_lips   LIKE LINE OF itab_lips,
          wa_tvbdpa LIKE LINE OF tvbdpa,
          lv_zuonr  TYPE vbak-zuonr.
      vbco3-mandt = sy-mandt.
      vbco3-spras = nast-spras.
      vbco3-vbeln = nast-objky.
      vbco3-kunde = nast-parnr.
      vbco3-parvw = nast-parvw.
    CALL FUNCTION 'RV_DOCUMENT_PRINT_VIEW'
      EXPORTING
        comwa                       = vbco3
      IMPORTING
        kopf                        = vbdka
      TABLES
        pos                         = tvbdpa
        mess                        = da_mess
      EXCEPTIONS
        fehler_bei_datenbeschaffung = 1.
    IF NOT tvbdpa[] IS INITIAL.
      SELECT SINGLE zuonr FROM vbak
        INTO lv_zuonr
        WHERE vbeln = vbdka-vbeln.
        IF sy-subrc = 0 AND lv_zuonr <> ''.
          SELECT vbeln posnr kdmat FROM lips
            INTO CORRESPONDING FIELDS OF TABLE itab_lips
            WHERE vbeln = lv_zuonr.
    ***I am stuck at here.
          LOOP AT itab_lips INTO wa_lips.
            READ TABLE tvbdpa INTO wa_tvbdpa
              WITH TABLE KEY posnr = wa_lips-posnr.
            wa_tvbdpa-kdmat = wa_lips-kdmat.
            MODIFY TABLE tvbdpa FROM wa_tvbdpa
                   TRANSPORTING kdmat.
          ENDLOOP.
    ***end I am stuck at here.
        ENDIF.
    ENDIF.
    All advise are welcome and greatly appreciated.
    Thanks in advance.

    Hi Subramanian,
    Does this more make sense for you?
    Can I read the table like :-
            READ TABLE itab_lips INTO wa_lips
              WITH TABLE KEY VBELN = wa_tvbdpa-matnr." AND POSNR = wa_tvbdpa-posnr.
    TABLES: vbco3.
    DATA: da_mess LIKE vbfs OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF tvbdpa OCCURS 0,        "Internal table for items
            kdmat LIKE LIPS-KDMAT.
            INCLUDE STRUCTURE vbdpa.
    DATA: END OF tvbdpa.
    DATA: itab_vbak TYPE SORTED TABLE OF vbak
             WITH UNIQUE KEY vbeln,
          wa_vbak  LIKE LINE OF itab_vbak,
          itab_lips TYPE SORTED TABLE OF lips
             WITH UNIQUE KEY vbeln,
          wa_lips   LIKE LINE OF itab_lips,
          wa_tvbdpa LIKE LINE OF tvbdpa,
          lv_zuonr  TYPE vbak-zuonr.
      vbco3-mandt = sy-mandt.
      vbco3-spras = nast-spras.
      vbco3-vbeln = nast-objky.
      vbco3-kunde = nast-parnr.
      vbco3-parvw = nast-parvw.
    CALL FUNCTION 'RV_DOCUMENT_PRINT_VIEW'
      EXPORTING
        comwa                       = vbco3
      IMPORTING
        kopf                        = vbdka
      TABLES
        pos                         = tvbdpa
        mess                        = da_mess
      EXCEPTIONS
        fehler_bei_datenbeschaffung = 1.
    IF NOT tvbdpa[] IS INITIAL.
      SELECT SINGLE zuonr FROM vbak
        INTO lv_zuonr
        WHERE vbeln = vbdka-vbeln.
        IF sy-subrc = 0 AND lv_zuonr <> ''.
          SELECT vbeln posnr kdmat FROM lips
            INTO CORRESPONDING FIELDS OF TABLE itab_lips
            WHERE vbeln = lv_zuonr.
          LOOP AT tvbdpa INTO wa_tvbdpa.
            READ TABLE itab_lips INTO wa_lips
              WITH TABLE KEY VBELN = wa_tvbdpa-matnr." AND POSNR = wa_tvbdpa-posnr.
            wa_tvbdpa-kdmat = wa_lips-kdmat.
            MODIFY TABLE tvbdpa FROM wa_tvbdpa
                   TRANSPORTING kdmat.
          ENDLOOP.
        ENDIF.
    ENDIF.

  • Check syntax of select option structure

    I've got a custom transparent table which contains a select option:
    field = SIGN (data element = ddsign)
    field = OPTION (data element = ddoption)
    field = ROLE_FROM (data element = agr_name)
    field = ROLE_TO (data element = agr_name)
    This custom transparent table is populated via a custom dialog program where the user enters all four of these data fields.  Does SAP provide some type of function module which can check the syntax of a select option structure before the table is updated?  For example, it would flag the following as OK:
    SIGN = I
    OPTION = CP
    ROLE_FROM = 001*
    ROLE_TO = <blank>
    But it would flag the following as not OK (either OPTION needs to be CP or ROLE_FROM doesn't need to have a wildcard):
    SIGN = I
    OPTION = EQ
    ROLE_FROM = 001*
    ROLE_TO = <blank>
    Thanks,
    Brad

    Brad
    I don't know abuot available function modues.
    Another option is to use a SAP function to create the dialog screen to get the values:
    Function FREE_SELECTIONS_DIALOG returns a RANGE table.
    Using the fields_tab table you csn define which fields are shown.
    FORM get_selection_condition .
      DATA:
        w_selid         TYPE rsdynsel-selid,
        lt_tables       TYPE TABLE OF rsdstabs,
        ls_tables       TYPE rsdstabs,
        lt_fields       TYPE TABLE OF rsdsfields,
        lt_where        TYPE rsds_twhere,
        ls_where        TYPE rsds_where.
      ls_tables-prim_tab = p_tab.
      APPEND ls_tables TO lt_tables.
      CALL FUNCTION 'FREE_SELECTIONS_INIT'
    *    EXPORTING
    *      expressions  = lt_expr
        IMPORTING
          selection_id = w_selid
    *      expressions  = lt_expr
        TABLES
          tables_tab   = lt_tables
        EXCEPTIONS
          OTHERS       = 20.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
             WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        EXIT.
      ENDIF.
    * Display free selection diaerrorlog
      CALL FUNCTION 'FREE_SELECTIONS_DIALOG'
        EXPORTING
          selection_id            = w_selid
          title                   = 'Selection'
          status                  = 1
          as_window               = 'X'
          tree_visible            = 'X'
        IMPORTING
    *      expressions             = lt_expr
    *      field_ranges            = lt_ranges
    *      number_of_active_fields = w_active
          where_clauses           = lt_where
        TABLES
          fields_tab              = lt_fields
        EXCEPTIONS
          OTHERS                  = 1.
      IF sy-subrc IS NOT INITIAL.
    *    p_cancel = c_true.
        EXIT.
      ENDIF.
    * Get the where conditions for the master data table.
      READ TABLE lt_where INTO ls_where
        WITH KEY tablename = p_tab.
      APPEND LINES OF ls_where-where_tab TO selopt_tab.
    ENDFORM.                    " get_selection_condition

  • Structure or syntax for query/filter

    I need to find a 12-digit number in a column called "SequenceNumTxt", in a VERY long table.
    I can query the first n lines but need to add something like "WHERE [SequenceNumTxt]="123412341234"
    The above does not work, gives me a syntax error; what am I doing wrong?

    Good day
    Joseph_L_W,
    Firstly I have to agree with all previous responses. Your question is not clear and you did not gave us any information (I use to say that you gave us stories instead of information). In order to understand the issue and to reproduce it we need you to always
    post DDL+DML.
    DDL = Data Definition Language. In our case that is, CREATE TABLE statements for the relevant tables
    * How to get DDL: Right click on the table in Object Explorer and select script table as CREATE. Post these create table scripts here.
    DML = data manipulation language is a family of queries used for manipulating the data itself like: inserting, deleting and updating data.
    In our case we need some sample data in order to check the query and get result, so we need some insert query for sample data.
    If you post a "create query" for the tables and "insert query" with some sample, then we could help you without Assuming/Guessing.
      Ronen Ariely
     [Personal Site]    [Blog]    [Facebook]

Maybe you are looking for

  • Aperture 3 not importing in order

    When importing from my Nikon to Aperture 3 the images are not in order- they are randomized (and not even during the same shoot).

  • Deleting entire site from Database

    Hi Everyone, In SAP ME 4.2, how to delete the site and its entire related information from database. And how to fetch the entire information of site from Database. Regards, Rajiv

  • Java ORB  across platform

    Hi, I am testing simple CORBA server and client program by using Java. I have tested these programs on Linux/windows and Sun Solaris 8 SPARC machine. I observed following things 1. When i run CORBA server and client both on Redhat fedora x86(Pentium

  • Printing problem on safari

    hi everyone. When I try to print a pdf document that contains images, in the preview I cannot see my images and consequently they are not printing in the printed document. Their space remains blank. Is there a solution? pls help me..

  • Cant download from the apple store..

    Hello helping readers, I bought just my iPod touch and wanted to download some apps. I connected my iPod and it asked me to register, I did but didnt put it to my apple account (I think there is the problem). Now I wanted to download some FREE apps b