How to declare the single filed in globally...........

Hi Guru's,
i have a field name required date (VDATU)...
please guide me in systax how to declare the single field as globally...
thanks in advance

Hi all thanks for your inputs and your valube time..and finally i resoleved the issuee you can see the global declaratio in my program logic...
*& Report  ZAREPAS30
REPORT  zarepas30.
DATA : gs_vbeln                   TYPE  vbak-vbeln,
       gs_order_header_in         TYPE  bapisdhd1,
       gs_order_header_inx        TYPE  bapisdhd1x,
       gt_order_items_in          TYPE  STANDARD TABLE OF bapisditm,
       gwa_itab1                  TYPE  bapisditm,
       gt_order_items_inx         TYPE  STANDARD TABLE OF bapisditmx,
       gwa_itab2                  TYPE  bapisditmx,
       gt_order_partners          TYPE  STANDARD TABLE OF bapiparnr,
       gwa_itab3                  TYPE  bapiparnr,
       gt_return                  TYPE  STANDARD TABLE OF bapiret2,
       gwa_itab4                  TYPE  bapiret2.
Sales document type
Sales organization
Distribution channel
Requested Delivery Date
Header data
Sales document type
  gs_order_header_in-doc_type = p_auart.
  gs_order_header_inx-doc_type = 'X'.
Sales organization
  gs_order_header_in-sales_org = p_vkorg.
  gs_order_header_inx-sales_org = 'X'.
Distribution channel
  gs_order_header_in-distr_chan  = p_vtweg.
  gs_order_header_inx-distr_chan = 'X'.
  gs_order_header_in-division = p_spart.
  gs_order_header_inx-division = 'X'.
Reguested Delivery Date
  gs_order_header_in-req_date_h = p_edatu.
  gs_order_header_inx-req_date_h = 'X'.
  gs_order_header_inx-updateflag = 'I'.
Partner data
Sold to
  gwa_itab3-partn_role = 'AG'.
  gwa_itab3-partn_numb = p_sold.
  APPEND gwa_itab3 TO  gt_order_partners .
ship to
  gwa_itab3-partn_role = 'WE'.
  gwa_itab3-partn_numb = p_ship.
  APPEND gwa_itab3 TO  gt_order_partners .
  gwa_itab2-updateflag = 'I'.
Line item number.
  gwa_itab1-itm_number = '000010'.
  gwa_itab2-itm_number = 'X'.
  gwa_itab1-material = p_matnr.
  gwa_itab2-material = 'X'.
  gwa_itab1-plant    = p_plant.
  gwa_itab2-plant   = 'X'.
  gwa_itab1-target_qty = p_menge.
  gwa_itab2-target_qty = 'X'.
  APPEND gwa_itab1 TO gt_order_items_in.
  APPEND gwa_itab2 TO gt_order_items_inx.
Line item number.
  gwa_itab1-itm_number = '000020'.
  gwa_itab2-itm_number = 'X'.
  gwa_itab1-material = p_matnr.
  gwa_itab2-material = 'X'.
  gwa_itab1-plant    = p_plant.
  gwa_itab2-plant   = 'X'.
  gwa_itab1-target_qty = p_menge.
  gwa_itab2-target_qty = 'X'.
  APPEND gwa_itab1 TO gt_order_items_in.
  APPEND gwa_itab2 TO gt_order_items_inx.
    order_header_in               = gs_order_header_in
    ORDER_HEADER_INX              = gs_order_header_inx
    SALESDOCUMENT                 = gs_vbeln
    RETURN                        = gt_return
    ORDER_ITEMS_IN                = gt_order_items_in
    ORDER_ITEMS_INX               = gt_order_items_inx
    order_partners                = gt_order_partners.
Check the return table.
  LOOP AT gt_return into gwa_itab4 WHERE type = 'E' OR type = 'A'.
  IF sy-subrc = 0.
    WRITE: / 'Error occured while creating sales order '.
Commit the work.
    WRITE: / 'Document ', gs_vbeln, ' created'.

Similar Messages

  • How to declare the field if i want the output as 300.12,00

    How to declare the fields if i want the output as 300.12,00
    i have a quantity field so i need to place . in place of , and , inplace of .
    please help me

    declare its as

  • How to Park the single invoice for multiple purchase orders

    How to Park the single invoice for multiple purchase orders?

    brother this is possible to enter one Invoice fro multiple purchase order.
    call transaction MIR7, select " purchase order/Scheduling Agreement" from the PO refernce Tab. then click on arrow. give your purchase orders here.

  • How to Delimit the Single quotes ( ' )

    Hi friends.
    how to delimite the single quotes ( ' )  or
    how to move the single quotes in fields.
    any body pls reply

    Use for single quotes and that will result in a single quote.
    lv_quote = ''''.

  • How to export the single cube data from SAP repository

    Hi ,
    I have a requirement to export the single cube data ( there was so many cubes in the SAP repository) as an XML file or a .csv file or a flat file.
    And also looking for how to do cube quering?
    Thanks in advance ,
    Ramakrishna Thota

    HI RK,
    1. You can use Open Hub service to export data into CSV or File Format.
    2. You can also use RSCRM_REPORT transaction to export data in to File, for this you need to create query first.
    3. You can also use APD to generate file of your cube data.
    Ramesh Babu

  • How to RollBack the single AM transaction

    I am using a task flow region inside another task flow fragment. Both are having view bindings from different AM's. Here I am trying to apply the Rollback for single app module. After rollback both AM's view data is getting clear.
    Here how can i rollback the single AM transaction.
    Brahma B.

    Both AMs are running the same database session, and so are sharing the same transaction. A rollback applies to the entire transaction unless you use the "ROLLBACK TO savepoint" syntax. Outside the ADF environment, I'd say that you want to create a save point with "SAVEPOINT savepointname" at the beginning of the inner taskflow, and rollback with "ROLLBACK TO SAVEPOINT savepointname". There is probably a way to do that in ADF, but I don't know how - maybe someone else will chime in. You might also want to look at this blog entry by Chris Muir: and see if it sparks an idea.

  • How to implements the single thread modal?

    how to implement the singlethread modal in servler/jsp?

    Do you mean 'model?' and 'servlet?' and are you referring to the interface with that name? which your servlet class just has to declare that it implements?

  • How much is the single dreamweaver in total?

    If I buy the single App plan with prepaid $239.88/year for dreamweaver cc, do I need to pay the next year? How much is the total of it?

    You would need to continue paying annually, at whatever rate Adobe sets for the year, or switch to a month-to-month plan to continue using the program past the initial 12 months.
    As Nancy mentions, CS6 is the only version available from Adobe on a Perpetual License where you pay once and have the program "forever". Of course that's barring any software/hardware conflict as you upgrade your systems in the future that could potentially kill the program. As noted, there are no updates coming out for that version any longer.
    There hasn't been any word that I've seen on exactly how long CS6 will remain available from Adobe. Chances are relatively good it will go the way of the dinosaurs sooner rather than later though, leaving the subscription as the only way to get Adobe apps.

  • How to use the single sign-on cookie

    I have a web dynpro application that's triggered by a button press in the gui. It was set up to use the 'WDY_EXECUTE_IN_PLACE' function module. However, I recently attended a Web Dynpro course and was told that's not the correct way to do it - I should be just calling the url and passing any parameters in the url string. I set about changing this today and I'm now using cl_gui_frontend_services=>execute to execute the url but now I'm being asked to log on to access the application - previously I didn't have to do this.
    I'm told this is something to do with the single sign-on cookie MYSAPSS02. According to our basis team this is already set but it looks like I need to do something extra - like retrieve it and/or send it to the application somehow. I've had a search around the forum but haven't come up with the answer yet. Can someone point me in the right direction please ?

    If you use cl_gui_frontend_services=>execute  you won't get single sign on.  Instead use CL_GUI_HTML_VIEWER. This class has the special logic to generate the SSO ticket (method ENABLE_SSO).  You can place the control in a dummy container object (not actually on the screen) and then use the DETACH_URL_IN_BROWSER method to launch the browser separately from the SAPGUI.

  • How to increase the input filed length in a sap standard transaction

    Hi All,
    Below is my user's requirement.
    Tcode->FS00-->f4 help for GL account number --> in this pop-up go to the tab G/L Account description in company code
    Here the input field G/L Long text allows 25 chars as input where as user want it to increase till 50 chars.
    Actually this input field G/L Long text  is refering the sap standard database view GL_ACCT_CC_TEXT (Field: MCODF of length 25)
    Is it possible to increase to search to 50 chars, if so how to do the same.

    Well documented, please have a look:
    The collective search help to be extended is SAKO.

  • How to Obtain the Value of a ***Global*** Application Item from JS

    If we declare an Application Item, i.e. NOT a page level item, how do we obtain the value of that Item in a JavaScript Dynamic Action on a page?
    For example, we declare a "global variable" as an Application Item named DEFAULT_AJAX_SEPERATOR and set its value with an Application Computation "On New Instance" At some later point, on a page in the application, we'd like to obtain the value of DEFAULT_AJAX_SEPERATOR via JavaScript.
    The page* level item syntax...
    $v( 'DEFAULT_AJAX_SEPERATOR' );...does not work. I do understand why this is as $v can only access items on the page. However, APEX is clearly able to obtain such global values since, for example, they are available in PL/SQL blocks. Also, I know it's on the session object because I can see it when viewing the session.
    So...what's the secret sauce for obtaining that value?

    Hello Joe,
    >> on a page in the application, we'd like to obtain the value of DEFAULT_AJAX_SEPERATOR via JavaScript … So...what's the secret sauce for obtaining that value?
    The secret is to define a global JavaScript variable and set it with the value of the item, using Substitution String notation. For example:
    var default_ajax_separator = &DEFAULT_AJAX_SEPERATOR.This code should be placed in the Function and Global Variable Declaration field, under the JavaScript section of the Edit Page. As we are talking about a global JavaScript variable, it will be available to every other JavaScript code on the page.
    ♦ Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    ♦ Author of Oracle Application Express 3.2 – The Essentials and More

  • How to supress the single Entries in the report?

    I have a report of  "Customer unpaid Cheques". This report displays Customer wise.
    For eg. Let say Customer 1234 cheques have been unpaid and returned many times. Some customers have single time retrns.
    In a report I want to filter the Customers with Single Entry.
    Report is like ths.
    Cust No: Ret.Doc: Cheque No: Amount:
    1234 7999 3331 100
    1234 8999 3332 100
    1234 9999 3333 100
    1235 7777 4444 200
    Customer 1234 has been returned 3 times where as Customer 1235 is ed one time.
    I want a report which displays the customers with more than one returns. The report should be like this. How can I do this..
    1234 7999 3331 100
    1234 8999 3332 100
    1234 9999 3333 100
    Thanks for your help.

    HI Sudhakar,
    It's bit complex but will work.
    Just create a new formuale with this option F= SUMCT(Amount)( This is basiclly the "result" option you get when you try to create a formlae.
    Now make a calculate key figure with the logic CKF=( Amount - F)
    This will give you basically this kind of difference
                        F   CKF
    1234 7999 3331 100 300 -200
    1234 8999 3332 100 300 -200
    1234 9999 3333 100 300 -200
    1235 7777 4444 200 200  0
    Now put a condition on the report level that show only those rows where the CKF!=0
    IT will show only those value which have moer then one rows.
    Also you can hide these additional columns depending upon your need.
    I think it will work
    If helpful assign points.

  • How to Trace the single Query Hits for single User

    Hi BW Experts,
    I have one doubt.
    How do we know that How many times one User executed only one Report from last 2 months??
    How do we trace it in BW System
    Please tell me.
    Thanks in advance

    Hi Anil,
    Thanks for the reply.
    I checked in RSDDSTAT Table. But I could not understand from that Table.
    How many times 'X' User is executed 'Y' Report (This is single Query/Report only) from last 2 months?

  • How to declare the namespace of XML document to use in oracle DB?

    I have an XML Schema file( 'Hospital.xsd' ) that reference the XML document ('Hospitals.xml' ).
    That I use JDeveloper to build them up.
    JDeveloper had set the default namespace as ''
    like this :
    <?xml version="1.0" encoding="UTF-8" ?>
    <Hospitals xmlns:xsi=""
    xsi:schemaLocation=" src/Hospital.xsd"
    If I want these two files ('Hospital.xsd' and 'Hospitals.xml') placed into
    the table in the oracle database.
    1. Should I create two tables? one for XSD and another for XML.
    2. Should I keep the XSD file in the oracle database?
    3. What is the namespace to declare in the heading of XML file?
    The database name or my website URL?
    Thank you very much.
    Kanokporn P.

    Sounds a lot like this question, only with less details.
    how to read data from XML  variable and insert into table variable
    We can only help if you provide us details to help as we cannot see what you are doing and only know what you tell us.  Plenty of examples abound on the forums that cover the topics you seek as well.

  • How to declare the line-size 300.

    If i am declaring line-size 300 . i am getting error message.
    how i can declare that

    You can follow the simple syntax.
    Report <Prog-Name> line-size 300.
    You can also check the line-size through system variable sy-linsz.
    Edited by: Julius Bussche on Dec 5, 2008 1:04 PM

Maybe you are looking for

  • Scheduled Report - Bug with Multiple Selection LOV parameter

    Problem: I have a scheduled report with a parameter that has it's "Multiple Selection" checkbox checked. I schedule the report with multiple values selected. When I receive the report via email, the report ran as if I only selected one LOV value inst

  • View all rows in Entity object

    please I have a problem can I one help me I want to get all rows from specific Entity object example I am now in validate method in XXX Entity Object and i want to get all the rows in XXX table from validate method(all rows) can any one help me to do

  • Can't start wls 8.1 admin server

    Hi there, after a disk full exception i'm not able to restart admin server. no warning and no exception on stdout or log file and admin server still frozen. Any suggestion?? <b>-- stdout start -------------------------------</b> <pre>bash-2.05$ ./sta

  • Moving content from one area to another

    Does anybody succeeded in moving content from one content area to another area? It is not possible using standard portal functionality.

  • HT1918 I forget the answer of my secrit question

    I forget the answer of my secrit question