How to make a custom transaction..?

Hello gurus,
I have been given the task to make a custom transaction ZVA02.One the first screen there will be a field Order Number and then once we enter the order number it searches and find out whether that order exists or not...if it does then make the change in the fields..if it does not then create a new order by that name...
I have no clue how to go about with this...Your help is required experts...
Cheers:Jim

check with ABAPDOCU Transaction to create dialog program.
goto ABAPDOCU Transaction -> ABAP User Dialogs -> Screens  here you will have example programs.
you can validate order number against VBAK Table
simple query in dialog
select single vbeln from vbak into vbak-vbeln
                                  where vbeln =  screen field order #.
if sy-subrc eq 0.
call transaction 'VA02' and skip first screen.
else.
call transaction 'VA01' .
endif.
even you can build new screen what ever in sales order -

Similar Messages

  • How to Run a Custom Transaction in Back Ground after give the Input?

    Hi,
        I have problem that how to execute a Custom Transaction in Back Ground after end user will save a variant for input. In my Transaction there is no menu to save a Variant & to Execute in Back Ground.
    Please suggest me how to do this in my Custom Transaction.

    Hi Ramana,
    what kind of report you want to  execute? the report is Executable Report or Modulepool prog. ??
    if it is a executable program so when u execute (F8) from SE38 when u find the selection-screen in the menu bar ->Program ->Execute in Background( F9) option exits there u can schedule your report in Background or else use toce SM36 ( Define Background Job).
    Why you want to run it in background with transaction code if you have this options?
    Regards,
    Sunil kairam.

  • How to make a custom TableModel for ResultSet

    Hi,
    I am doing my University Team Project using Java and MySQL what would be the best way to implement a custom TableModel for a JTable that shows the data from the MySQL database.
    I've googled it for a couple of hours but all I can really find is examples of how to add static data into the jTable.
    The updating of the database through Java works fine, but I would like to show the results in a JTable.
    I need help on how to implement a TableModel that uses a ResultSet to populate a JTable.
    Any examples of how to make a custom TableModel or links to something that shos me how to do it would be great.
    Thanks
    Shazan Miah

    I've googled it for a couple of hours but all I can really find is examples of how to add static data into the jTable.Then you need more googling practice on picking the appropriate keywords to narrow down a search. Words like "jtable resultset" yielded many hits. Of course I'm partial to the one I suggested that was found in the Swing forum.

  • Urgent!!  How to call a custom transaction or an ABAP program in BSP?

    Urgent!!  How to call a custom transaction or an ABAP program in BSP?
    We are pretty new on BSP.  Would be very appreciated if any expert here give us the detailed steps on how to build up the application to just call a custom transaction (e.g., t-code: ztest) or an ABAP program.  Would we have to create a button or event handler to do that?  And the detailed steps?
    Thanks in advance and we will definately give you reward points!

    hi Durairaj,
    During the time to wait for your answer, we copied Bernd's code from your last link, but when activating it, get the 1st error msg:
    Field "CLIENT" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. "DATA" statement."DATA" statement. The error shows up here:
    <td>
    <htmlb:inputField id = "client"
    value = "<%= client %>" />
    </td>
    Then we added Client to the page attribute and define it as type String, then get another error:
    The field "EVENT" is unknown, but there is a field with the similar name "EVENT_ID"."EVENT_ID". This error shows up at the beginning in the Event Handler:
    OnInputProcessing:
    code
    • event handler for checking and processing user input and
    • for defining navigation
    • event handler for data retrieval
    event = cl_htmlb_manager=>get_event( runtime->server->request ).
    IF event->name = 'button' AND event->event_type = 'click'.
    button_event ?= event.
    How to resolve this unknown Event error, need to define in Page Attribute tab? but with what type?
    Actually we only want to run an ABAP4 program in BSP, the code is complicated, could you show us an easy way of doing this in BSP?

  • How to make the custom field enable/disable in ME21n/ME22n/ME23n trans

    Hi Experts,
    I need help.
    I have created one custom field in the transaction ME21n/ME22n/ME23n under customer data 2 tab. But my problem is the field is always in enable (means editable only)  even in Display mode. How to make the field is non editable in display mode and editable in change mode.
    I have tried by putting some logic to make that field to change alternatively according to change/display button. And it is working fine but if we click any othe button , this field is becoming editable even in display mode.
    How to make this field to behave as standard fields?
    Please reply me <removed by moderator>
    Thank you in advance.
    Best Regards,
    Divakar.
    Edited by: Thomas Zloch on Mar 2, 2012

    If you have BADI implimented for custom tabs then you can do this in method ME_PROCESS_PO_CUST~FIELDSELECTION_ITEM
    lv_changeable = im_header->is_changeable( ).
      LOOP AT ch_fieldselection ASSIGNING <fs>
        IF lv_changeable IS INITIAL.
          <fs>-fieldstatus = '*'. " Display
        ELSE.
          <fs>-fieldstatus = '+'. " Change
        ENDIF.
    endloop.

  • How to make a customized layout to cretae customer ?

    we have xd01 transaction code to create customer. my user doesn't need this tcode. he wants a customized screen to do it by using the mandatory fields only.But from tcode xd01 data is mapped to a structure rsxxxxx. how to map this t code  against kna1?
    Moderator Message: Put some effort of your own before shooting questions to the forum.
    Edited by: kishan P on Dec 6, 2010 6:43 PM

    gradgrind wrote:What do you mean exactly? Maybe if you can explain in more detail what would like to do, someone can make suggestions. For example, why do you want a custom distribution and what is it about Arch itself that makes it unsuitable?
    I'm maintaining 15 web servers running Arch in my company. they have nearly the same settings and services. I want to set up just one server and make a customized setup CD based on it. Then when I need to add a new server or reinstall the system after hardware upgrade, I can skip over most of the tedious things. Not all of the servers have the same hardware, so harddisk clone is not suitable for this job.
    Who can tell me how to accomplish such a job ?
    I hope the auther of Arch can provide some instructions or developing tools or scripts to do this.

  • How to make a custom form, buttons etc... please...

    I mean, how to make a form (for example, JFrame) with arbitrary form (geometry, for ex, round, oval, star like etc). I think you understand what i mean.
    Of course, i think i can use winApi, but it's only for windows. It doesn't suit for Java in this problem solution.
    That question also about cusomizing form of buttons, fields.. etc..
    i think, everything.
    What can java allows to cusomize and what not.
    Thanx!!

    I am just a learner and so i can just suggest you a strategy to implement Customized forms in JAVA. However i am sure that in practice it will work as far as Windows OS are concerned. Here is it:-
    The basic IDEA is to declare a native function in JAVA that makes JNI calls which will be further processed by Win32API and processed output will result into an elliptic or any polygonal shaped forms.
    To achieve declare some function as follows:
    public native void createEllipticalForm(formName formRefrance);
    create a Win32 Compiled DLL that manages this function as follows:
    (Mindwell, i havent stated what you call as pure-code but just a pseudo-code to the actual implementation)
    public native void createEllipticalForm(formName formRefrance)
    /* Search for the below stated Functions in Win32 API and work on
    them. I see a ray of success if you work with these functions properly.
    Further-more I assume that you are aware with concept of HANDLES */
    createEllipticRegion(); //WINDOWS.H
    showWindow(handleToTheForm); //WINDOWS.H
    Search for "createEllipticRegion() or showWindow()" on the GOOGLE to get the pure win32 API Code for Creating Customized Forms.
    Reply me in case any of you people get a solution based on my idea.
    [by VISH]

  • How to make a custom template the default for Apple Mail (10.7.5)?

    Hi,
    I'm OK with making a new custom template in Apple Mail.  It shows up fine once under "custom" in the stationary pane (and once I take off signature in a new email).  But... that's a lot of trouble to go through everytime I want to send an email.
    So the question is: can I make my custom template my default for all my emails, unless I want to manually change it?  Seems like this should be possible but I can't figure it out and haven't run into any solutions (only on how to make a template).
    Do I really have to select it each time?
    Best,
    Joel

    As an FYI: I just solved the problem by going the "low road." I'll be a bit laborious in case someone else wants a solution at a later date (I know I Googled the topic and found nothing). I experimented by simply:
    Opening a new email message
    Selecting my custom template
    Copying the custom signature (Select All)
    Opening another new email message
    Selecting Edit on the Signature pulldown menu
    Hitting the plus symbol to create/add a new signature in the pane
    Pasting into the new signature
    Naming it
    Selecting "Choose signature" at the bottom of the signatures pane
    And violà!!
    It now appears as a possible selection *and* as the default.
    Better yet - it is now my default and will work as a reply to an email.
    I think I got it all right in the list above.
    OK, granted, this is a pretty simply signature - a list of my website, SoundCloud, twitter etc with those names in bold and a graphic of my color logo - but... it works! YMMV.
    Give it to Apple to make it so simple that any fool could do it (that would be me), you wouldn't need a "specialized" app, and - of course - there wouldn't even be instructions on how to do it!
    Best,
    Joel

  • How to add own customized transaction in SPRO (IMG Menu Path)

    Dear All,
    I have a requirement of adding new customized transaction in IMG menu path. Can you please help me out how to do that?
    Best wishes,
    Atanu

    Hi
    Can you try this way:
    You need to modify the structure ( node ) that you want to modify using transaction SIMGH. First you need to go to transaction SIMGH.
    In the IMG structure just press f4 -> you need to give the title of the structure that needs to be edited. f8. Then you can modify the structure -> insert node.
    You need to give the node text.
    After creating the node, click on the node and select insert activity.
    In the ID field give an entry, Give the description in 'name'.
    Please check this link on how to add a node in IMG.
    http://help.sap.com/saphelp_sm32/helpdata/en/9a/b7b2375ca97f68e10000009b38f8cf/content.htm
    Regards,
    Sreeram

  • How to make a custom table?

    Ok, so an assignment is due today. I am up to the last part and what you need to do it make a custom graph, I have an iMac (OS X Yosemite) and I need to make a table like the one showed on the image I attached. If you look on the right hand side of the image, you see a row that says "Size" with three custom made columns which says: "Width", "Thickness and "Length". Please tell me, how I can make a custom table like the one below? Thanks.

    Select a group of cells, right-click on them and choose Merge Cells from the pop-up menu:
    Description, Material and Qty are two cells selected down and merged, Size is three cells selected across and merged.
    Hope this helps.

  • How to make Google custom search results appear on a new page?

    Anybody got any idea how to make the search results appear on a separate page? I'm using the Google custom search to get generated code to place on my pages, after providing some 'guidance' information on the look and feel of it. Normally, Google will provide you with a few options to choose from to determine how your results will look and by default one would choose the "two page" option whilst going thru the setup process. One page for the search box on your own page and one for the results page.
    However, if you don't want a 'google-generated' results page but want the layout that's in line with the look of your site AND have the search box already on there for any repeat searches it becomes more tricky. I tried doing it one way, which I found one a blog tutorial but so far no sucess. The 'search box' code that I inserted onto one of my pages to test didn't show up the search box at all in preview or the live page...
    Anybody got any generic code that can be adapted (that they know works) or know of any tutorial that explains how to achieve this? Preferably Google related, as I'm using its custom search.
    In addition, I believe that recently Google have deprecated the use of iframe in its search results pages so for anybody that was using an earlier version of this facility it may no longer work properly and hence the solution might have to be modified. Not an expert, so not sure how much this fact will affect the final code, just a thought.
    Any ideas/solutions will be greatly appreciated. Thanks.

    hello adrianm12, this should be possible through the metro settings ("search"). also see [https://bugzilla.mozilla.org/show_bug.cgi?id=941292 bug 941292]...

  • How to make a custom theme a default theme?

    Hi gurus,
    I want to change the internal default theme to the one I've created but the option to make the custom theme a default theme is greyed out, how do i make it not to be greyed out? I'm using SAP Sourcing 10.0 (Please see attachements)
    Your assistance will be highly appreciated.
    Kind regards,
    Sabelo.

    Hello Sabelo,
    Hope you can solve your issue by doing these actions:
    Shutdown the NetWeaver system
    Delete the node folders server0, server1, serverx (/usr/sap/SID/SID/j2ee/cluster)
    Start the NetWeaver system
    When you start the system it will recreate the node folders and they should be in a synchron state as it loads the complete content out of the database. This means that it will create your custom theme on all nodes.
    Best regards
    Parth Raval

  • How to make a custom cursor

    How do you make a custom Cursor with the Cursor class, so that I can use it in my program.
    And also, how do you make a LookAndFeel??

    To make a cursor use:
    createCustomCursor public Cursor createCustomCursor(Image cursor,
                                     Point hotSpot,
                                     String name)
                              throws IndexOutOfBoundsException, HeadlessException
    Creates a new custom cursor object. If the image to display is invalid, the cursor will be hidden
    (made completely transparent), and the hotspot will be set to (0, 0). Parameters:hotSpot - the X
    and Y of the large cursor's hot spot. The hotSpot values must be less than the Dimension returned
    by getBestCursorSize().name - a localized description of the cursor, for Java Accessibility use.
    Throws: IndexOutOfBoundsException - if the hotSpot values are outside the bounds of the cursor.

  • How to make a custom calendar

    how can I make a custom calendar

    Nathan,
    What happens if you click on a calendar in the "Sources" pane and select File>Get Info?
    You should be presented with a window which allows you to select from one of several default colors, plus "Other..."
    ;~)

  • How to make a custom toolbar to put various items in?

    Formerly, there used to be an option by which I could add some sort of "custom toolbar" and then add various kinds of buttons into it, like the downloads button, home button, history, save page, etc.
    Now when I customise the toolbars (right click on main topbar>Customize), I can only add things in the given bar, which already has an address bar, a search box, and a few extensions.
    Please advise on how to make custom toolbars if there's an option I may have missed - possibly misplaced to somewhere else by the update to 29.

    If your navigation toolbar is too crowded, right-click an empty area of the tab bar and check "Menu Bar" or "Bookmarks Toolbar", or both. Buttons can also be placed on the tab bar. You can also drag icons you use infrequently into the the ≡ Menu Button panel.
    * [[Customize Firefox controls, buttons and toolbars]]
    The "Classic Theme Restorer" add-on provides an Additional Toolbar, as well as an Add-on Bar at the bottom of the window. Add-ons like "The Add-on Bar (Restored)" and "Status-4-Evar" provide only an add-on bar at the bottom of the window.
    * https://addons.mozilla.org/firefox/addon/classicthemerestorer/
    * https://addons.mozilla.org/firefox/addon/the-addon-bar/
    * https://addons.mozilla.org/firefox/addon/status-4-evar/
    * [[How to make the new Firefox look like the old Firefox]]
    * [[What happened to the Add-on Bar?]]
    * [[What happened to the Status Bar?]]

Maybe you are looking for

  • Update terminate : error SAPSQL_ARRAY_INSERT_DUPREC

    We are getting error "SAPSQL_ARRAY_INSERT_DUPREC" while using tcode : VK12 ME13 ME11, Error is in function module 'RV_KONDITION_SICHERN_VK13' , form 'KONH_CHANGE" in program "SAPLV13A". I checked OSS notes also but didnot find anything.We using ECC6.

  • Cannot print document with added barcode text boxes

    G'day I'm adding two text boxes to an illustrator document with Applescript, but when I go to print, ?I get an error 'Cannot print the illustration. The Color Management settings are inconsistent.' The error message is not error trappable. I have to

  • E-Mail Step

    I have created E-Mail Step in  PR workflow. But i want to send this notification both sap Inbox and Out side mail.

  • PSE7 Thumbnail problem  Offline Media bug(?) in restoring from PSE5 to PSE7

    My problem is this: (It is similar to http://www.adobeforums.com/webx/.59b7e77a, but the solution there is not applicable to my situation; at least I do not think so) I have used the Photoshop Elements 5 backup method for storing the photos and catal

  • Recently updated to mountain lion ,2nd printer I was using will not print

    I recently downloaded Mountain Lion.  A 2nd printer I was using (sharing) will not print now.  Any suggestions, appearently there are a lot of things that we have to redo after this?  Was not aware of this before .  We had to reset our mail, etc.  An