Mailing details to our seniorguy after filling screen fields.

hi
i have screen in modulepool programming in that screen i have a screen fields of empno,empname,salary,medicalbill,allowance etc after filling these details by an employee and if he click (mail)  pushbutton the screen fields with values will submitted to his senior guy as a mail .pls send suggestions.
thankful to all,
regards
srinivasulu.

Hi Srini,
Have a look at the code for sending mail :-
*&      Form  send_mail_to_promotion
*       TO SEND MAIL TO PROMOTION SECTION
*      -->PF_PERNR  pa0000-pernr
*      -->PF_BEGDA  pa0000-begda
*      -->PF_RANK   pa9007-rankcd
FORM send_mail_to_promotion  USING  value(pf_pernr) TYPE pa0000-pernr
                                    value(pf_begda) TYPE pa0000-begda
                                    value(pf_rank)  TYPE pa9007-rankcd.
  DATA: lt_objcont    LIKE solisti1 OCCURS 10 WITH HEADER LINE,
        lt_reclist    LIKE somlreci1 OCCURS 5 WITH HEADER LINE,
        lf_doc_chng   LIKE sodocchgi1,
        lf_entries    LIKE sy-tabix,
        lf_name       TYPE pa0001-ename.
* Fill the document
  lf_doc_chng-obj_name = 'URGENT'.
  lf_doc_chng-obj_descr = 'Update Promotion Status!'.
  lf_doc_chng-sensitivty = 'P'.
  lt_objcont = 'Promotion order has been issued for the person'.
  APPEND lt_objcont.
  CONCATENATE 'Date:' pf_begda
              INTO lt_objcont SEPARATED BY space.
  APPEND lt_objcont.
  CONCATENATE 'Personnel Number:' pf_pernr
              INTO lt_objcont SEPARATED BY space.
  APPEND lt_objcont.
  CLEAR lf_name.
  SELECT SINGLE ename
  INTO lf_name
  FROM pa0001
  WHERE pernr = pf_pernr.
  CONCATENATE 'Person Name:' lf_name
              INTO lt_objcont SEPARATED BY space.
  APPEND lt_objcont.
  CONCATENATE 'Rank:' pf_rank
              INTO lt_objcont SEPARATED BY space.
  APPEND lt_objcont.
  lt_objcont = 'Please update rank of the person'.
  APPEND lt_objcont.
  lf_entries = LINES( lt_objcont ).
  READ TABLE lt_objcont INDEX lf_entries.
  lf_doc_chng-doc_size = ( lf_entries - 1 ) * 255 +
                         STRLEN( lt_objcont ).
* Fill the receiver list
  CLEAR lt_reclist.
* NOTE::
* REPLACE THIS LINE WITH LOGIN OF PROMOTION SECTION
  lt_reclist-receiver = 'RAJESH'.  " replace with <login name>
* ::ETON
  lt_reclist-rec_type = 'B'.
  lt_reclist-express = 'X'.
  APPEND lt_reclist.
* Send the document
  CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
    EXPORTING
      document_type              = 'RAW'
      document_data              = lf_doc_chng
*      put_in_outbox              = 'X'
    TABLES
      object_content             = lt_objcont
      receivers                  = lt_reclist
    EXCEPTIONS
      too_many_receivers         = 1
      document_not_sent          = 2
      document_type_not_exist    = 3
      operation_no_authorization = 4
      parameter_error            = 5
      x_error                    = 6
      enqueue_error              = 7.
ENDFORM.                    " send_mail_to_promotion
Hope it solves your problem.
Regards,
Manish Joshi
Don't tell me, you don't know how to award points.

Similar Messages

  • Allow print after filling mandatory fields using PrePrint

    I have a form in which I want to add a button which will allow the user to print the pdf file only when two required fields namely Text1 and Text2 are filled in. The same shall apply to Ctrl P command also.
    How can I do so?
    During google search, I have found some stuff on this but since I am not very well versed with pdf js (even with js) I am not able to make it.
    Can it be done in Adobe Live Cycle Designer ES? There is a 'PrePrint' event, but I have no clue on how to make it workable to my requirments?
    Your help is highly appreciated.
    Regards
    Sujit Talukder

    Thank you Clintonfor the reply.
    I have used the code, Pressing Ctrl+P is giving the message but thereafter the Print Dialog box appears and thereafter it prints the page as usual and not a blank page.
    I have used the code as follows-
    topmostSubform::prePrint - (FormCalc, client)
    if (
    topmostSubform.Page1.Name_of_the_Employee.isNull or
    topmostSubform.Page1.PAN_of_the_employee.isNull
    then
       this.presence = "hidden"
       xfa.host.messageBox("This form does not allow printing of its contents until all required fields have been completed.  If you print now, the page(s) will be blank.  Please complete all required fields first, then printing of the form contents will be enabled.")
    endif
    and-
    topmostSubform::postPrint - (JavaScript, client)
    this.presence = "visible"
    Where is the lacuna?

  • How to fill a field with after changing another field in a multi form?

    Hi,
    I have multi occurence form in which multiple record are showeds and/or added.
    One field is a dropdown field, after filling this field (selecting a value in the dropdown), another field needs to filled with the selected value.
    My problem is that only the first occurence is filled with the value of the selected dropdown, even when filling the dropdown field in one of the other occurences.
    I tried point to the other occurences but this was not succesfull
    See script
    So when a sparepart is selected from the dropdown sparepart, the field defectpart must be filled the selected sparepart, when I have multi forms (occurences) only the first occurence defect part gets filled with the selected parts, even when a sparepart from another occurence is selected.
    data.p1.spare_parts.spare_parts::change: - (JavaScript, client) -
    p1.spare_parts.DefectPart.rawValue =  xfa.event.newText;
    Can anyone help to solve this problem
    Thanks
    Christophe Van Mechelen

    hi,
    Your code is right, i dont know why its not working,
    try this,
    dropdown field in change event,
    var c = xfa.host.newtext
    textfield1.rawValue = c;
    (or)
    textfield1.rawValue = xfa.event.newText;
    by
    Parthi

  • HT201320 i'm trying to add an email account and foolowed on screen directions but after "verifying account" screen i got new account" and no options highlighted but "cancel"  The mail server is our local phone company.  Appreciate any help.

    i'm trying to add an email account and followed on screen directions but after "verifying account" screen i got "new account" and no options highlighted but "cancel"  The mail server is our local phone company.  Appreciate any help.

    Hello there, shallotte07.
    The following iPhone Troubleshooting Assistant should get you through all the steps to set up mail:
    Apple - Support - iPhone - Setting up Mail Assistant
    http://www.apple.com/support/iphone/assistant/mail/http://www.apple.com/support/iphone/assistant/mail/
    Remember that some Service Providers require particular settings, and you may need to contact them directly to acquire that information. Check out the "Email cheat-sheet" section in the information that follows:
    If iPhone can't find your service provider's settings, this article can help you obtain the necessary account settings from your provider.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro D.

  • I am experiencing some major problems with my MacBook Pro. I have had some issues with it turning on/off at random times, but today, when starting, I get the grey start-up screen and a recovery bar. After filling in approx 1/4 of the way, the machine dies

    I am experiencing some major problems with my MacBook Pro. I have had some issues with it turning on/off at random times, but today, when starting, I get the grey start-up screen and a recovery bar. After filling in approx 1/4 of the way, the machine dies. After starting it in recovery mode, it will not allow me to download OS X Mavericks- it says the disk is locked. Any ideas? I do not have a back-up and do not want to erase everything before I have explored my options. Help?

    try forcing internet recover, hold 3 keys - command, option, r - you should see a spinning globe
    most people will tell you to do both pram and smc resets (google) and if you still have issues, either clean install (easy) or troubleshoot (hard)

  • I am unable to register my debit card after creating my apple ID. Whenever i click enter after filling all the debit card details, it shows that, "your payement method has been declined". Please help me people, why is it so.?

    I am unable to register my debit card after creating my apple ID. Whenever i click "continue" after filling all the debit card details, it shows that, "Your payement method has been declined". Please help me people, why is it so.? Also, i would ike to tell that my bank is, Union Bank Of India and it facilitates the auto conversion, rupee to dollar.. I think there is a different problem. Please help me guys.!!

    The card must be issued in the same country as the store you are trying to use. If you're trying to sign up for the US Apple Store, it must be a US card with a US billing address. If you're trying to sign up in India, it must be an Indian card with an Indian billing address.
    Apple will run a small charge, which will be credited back, to make sure the card is valid. If it is a debit card and you do not have enough in the account to cover the authorization, it will be declined.
    It is possible the currency conversion you mentioned may be causing a problem. Contact the issuing bank if you are sure you have enough in the account and you are signing up for the correct store.

  • How to open images in Fill Screen mode from Camera Raw

    I am using Photoshop CS4 for Windows. I created an action that executes Fit on Screen and set the Scripts Event Manager to execute that action on the Open Document event. This works when opening a document from Photoshop.
    Here are my questions:
    1) After opening a raw image from Bridge in Camera Raw, when I then open the image in Photoshop, it does not run the Open Document event action to Fit on Screen. What event do I need to set the action to execute on when opening an image from Camera Raw in Photoshop?
    2) I added Fit on Screen to the action by selecting Insert Menu Item from the Actions menu and then selecting View-Fit on Screen. I cannot find Fill Screen on any pull-down menu (the button found on the Hand tool bar). How can I insert the Fill Screen item (which fills the screen a little more than Fit on Screen?
    3) In the Scripts Events Manager, when you select Add an Event, it says Any scriptable event can be entered here. See the Scripting Reference for the full list of Photoshop event names.. On the following Adobe webpage, I found the Adobe Photoshop CS4 Scripting Guide but I did not find a list of Photoshop event names in that document. Where can I find the list of Photoshop event names?
    http://www.adobe.com/devnet/photoshop/scripting
    Thanks to anyone who can help me out.

    > 3) In the Scripts Events Manager, when you select Add an Event, it says Any scriptable event can be entered here. See the Scripting Reference for the full list of Photoshop event names.. On the following Adobe webpage, I found the Adobe Photoshop CS4 Scripting Guide but I did not find a list of Photoshop event names in that document. Where can I find the list of Photoshop event names?
    >
    >
    >
    See "Appendix A: Event ID Codes" in the PSCS4 JavaScript Reference pdf file that
    comes with PSCS4.
    -X

  • After updating my I pad, I have problems with getting new apps. After filling in my Apple Id, I fill in my  3 secret questions. But than I get à Message that this session had to break of, without results.

    Alter updating my IPad, I have problems getting new apps. After filling  in my Apple Id, and answer my 3secret questions, I get THE answer that this session had to be ended without results.

    Wow ! I got it running again ! :-)
    I called support and got helped by a very friendly guy:
    We tried serveral things, what worked for me was to reset my cookies:
    - Close all apps by doubleclicking the "home" button - you see all running apps in the lower part of the screen. Then click an hold the first icon until it starts "shaking". Klick the small minus, proceed like that until the row is empty. 
    - Go in to the control center (don't know what it's called in english, in swedish it's "Inställningar")
    - Klick the tab "Safari"
    - Klick on Clear cookies and data ("rensa cookies och data")
    - Close the control center and start App store
    If you now try to download an app you still get the request for the three safety-questions, but when filling them in it works and you can proceed after that. The questions will not turn upp again afterwards...
    Good Luck !
    Other things we tried was:
    - disconnecting the wifi and restarting it
    - log out from app-store (in control center, tab "itunes and appstore")

  • Hit something when editing presentation and now slides are all reduced in size and not filling screen.  Preferences, scale to fit doesn't work.  What did I do?

    Hit something when editing presentation and now slides are all reduced in size and not filling screen.  Preferences, scale to fit doesn't work.  What did I do?

    Please give complete details of your system and the media and the project properties.

  • Some games to not continue after splash screen.

    I've already asked it on answers.microsoft.com but didn't get any reply. So, thought I would ask here.
    What I've tried:
    App troubleshooter
    sfc /scannow
    Answers in http://superuser.com/questions/562188/windows-8-metro-apps-wont-load
    also, I've tried some technet links but in vain.
    I've installed two games - Sonic Dash and Despicable Me 2:Minion Rush. Both of these games to not work after splash screen and they get minimized.
    I've checked the event log and found this
    Activation of app SegaNetworksInc.56538047DFC80_as33fap47kd3c!App failed with error: The remote procedure call failed. See the Microsoft-Windows-TWinUI/Operational
    log for additional information.
    And full details here
    Faulting application name: Template.exe, version: 2.0.0.0, time stamp: 0x5492b318
    Faulting module name: combase.dll, version: 6.3.9600.17031, time stamp: 0x53086d7c
    Exception code: 0xc000027b
    Fault offset: 0x000fb152
    Faulting process id: 0x1418
    Faulting application start time: 0x01d0227a62078008
    Faulting application path: C:\Program Files\WindowsApps\SegaNetworksInc.56538047DFC80_2.0.0.0_x86__as33fap47kd3c\Template.exe
    Faulting module path: C:\WINDOWS\SYSTEM32\combase.dll
    Report Id: 9fbff746-8e6d-11e4-a383-c0cb38d6092f
    Faulting package full name: SegaNetworksInc.56538047DFC80_2.0.0.0_x86__as33fap47kd3c
    Faulting package-relative application ID: App
    Apparently it has something to do with remote procedure call. When I open the other game, I get same errors as the above, the only thing which has changed being name of the app.
    Graphics shouldn't be a problem since these games have ALREADY run once, but not now, and I have other heavy-graphic games like Asphalt 8 Airborne which still WORKS.
    I've also tried re-installing but in vain, duh. Looking for help badly. I'd appreciate any help.

    Sorry. Those two links too didn't work. I did all that was instructed in them. However I really appreciate your effort in solving my problem.
    I checked the event log in the path which you asked me to and got this
    Activation of the app SegaNetworksInc.56538047DFC80_as33fap47kd3c!App for the Windows.Launch contract failed with error: The remote procedure call failed..
    And a detailed view
    - <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    - <System>
    <Provider Name="Microsoft-Windows-Immersive-Shell" Guid="{315A8872-923E-4EA2-9889-33CD4754BF64}" />
    <EventID>5961</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>5961</Task>
    <Opcode>0</Opcode>
    <Keywords>0x4000000000000000</Keywords>
    <TimeCreated SystemTime="2015-01-28T04:44:28.735933800Z" />
    <EventRecordID>71148</EventRecordID>
    <Correlation />
    <Execution ProcessID="1060" ThreadID="5520" />
    <Channel>Microsoft-Windows-TWinUI/Operational</Channel>
    <Computer>Amit</Computer>
    <Security UserID="S-1-5-21-66860032-2800664797-2745505841-1010" />
    </System>
    - <EventData>
    <Data Name="AppId">SegaNetworksInc.56538047DFC80_as33fap47kd3c!App</Data>
    <Data Name="ContractId">Windows.Launch</Data>
    <Data Name="ErrorCode">-2147023170</Data>
    </EventData>
    </Event>
    Can the error log be of some help?

  • Since loading iOS 8 my e-mails do not appear on my locked screen.

    Since loading iOS 8 my e-mails do not appear on my locked screen.

    Hey brianfromkirkcudbright,
    Thanks for the question. Let’s check your notification settings for the Mail application, we’ll want to make sure that “Show on Lock Screen” is enabled for the specific account (ex. iCloud):
    iOS: Understanding notifications
    http://support.apple.com/kb/HT3576
    Troubleshooting notifications
    Verify that the app supports notifications.
    After installing an app or restoring a backup to a different iOS device, open the app to begin receiving notifications. If the app requires entering or logging in to an account, you will need to do this before receiving notifications.
    Check Settings > Notifications to ensure that the app is configured for notifications. If notifications do not appear in the Notification Center, verify that the Notification Center setting for the app is enabled.
    Thanks,
    Matt M.

  • Mail app quits when opened after installing Mavericks. I reinstalled and still the same. I noticed the mail app icon has not changed to the new icon in Mavericks. Any suggestions?

    Mail app quits when opened after installing Mavericks. I reinstalled and still the same. I noticed the mail app icon has not changed to the new icon in Mavericks. Any suggestions?

    I also forgot to note that this problem also persists with the new iBooks application. I cannot get past the 'Get Started' screen or access the iBooks Store. Again, all top bar menus are unresponsive.
    DT

  • On Mavericks: Wallpapers with an aspect ratio of 16:9 or 16:10, if set to "center", will either format as "fill screen" or "fit to screen". Help?

    If I select a custom wallpapers with an aspect ratio of 16:9 or 16:10, if set to "center", will either format as "fill screen" or "fit to screen".
    With other aspect ratios, center works as supposed to.
    Ideas?

    In general this script should work:
    mov GPRM0, SPRM14
    and GPRM0, 3072
    Set System Stream St(Subtitle Stream 1) (On) if GPRM 0 = 3072)
    Set System Stream St(Subtitle Stream 2) (On) if GPRM 0 != 3072)
    Jump Track 1
    The value of 3072 is returned when 16:9 value is stored in SPRM14.
    However some players may disregard this script as they might look for the presentation information in IFO files or in the video stream itself.
    The better approach is to flag one subtitle stream as 16:9 and the other as 4:3 in DVD After Edit if you have an access to it.
    MacPro 2.66, G5 DP 2.7   Mac OS X (10.4.9)   TASCAM DA-88, DigiBeta, DeckLink HD Extreme, Cinemacraft Encoder

  • This morning, my iPad screen didn't respond to my touch commands. It displays mail, but I can't move the screen, can't delete an incoming item. Nothing. All the other screens work normally -- just no response to mail.

    This morning, my iPad screen didn't respond to my touch commands. It displays mail, but I can't move the screen, can't delete an incoming item. Nothing. All the other screens work normally -- just no response to mail.

    Have you tried closing the Mail app completely ? From the home screen (i.e. not with the Mail app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Mail app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    If that doesn't work then you could try a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • Can't open mail on i phone 4s after upgrading to iOS 8.1

    Can't open incoming mail on i phone 4s after upgrading iOS 8

    Hello Cheri,
    Thank you for using Apple Support Communities. 
    If you are unable to download photos from your iPhone. You can use the following article for suggestions to accomplish that task. 
    iOS: Unable to import photos to computer - Apple Support
    Cheers,
    Jeff D. 

Maybe you are looking for

  • Setting up IPsec VPNs to use with Cisco Anyconnect

    So I've been having trouble setting up vpns on our ASA 5510. I would like to use IPsec VPNs so that we don't have to worry about licensing issues, but from what I've read you can do this with and still use Cisco Anyconnect. My knowledge on how to set

  • Read speeds for my super drive ?

    can anyone tell me what the read speeds are for the super drive i have in my MBP (MacBookPro3,1) C2D 2.4GHz ? specifically DVD read speeds MATSHITA DVD-R UJ-857E: Firmware Revision: ZA0E Interconnect: ATAPI Burn Support: Yes (Apple Shipping Drive) Ca

  • XServe disappeared from Windows Workgroup.

    Folks, We did some seemingly minor maintenance yesterday, and now Windows boxes no longer see the XServe in their workgroup (either in My Network Places, where other WG members appear, nor when using the short computer name in paths). They can still

  • TS1372 I have reset my ipod I have rebooted my Ipod but it stil brings up 1415 and 1439 everysingle time even after I have done a Hard reset Please someone help me

    Hi, I hve a Apple Ipod Classic 80G and I need to restore it but it is not working and I hav tried to rest it mannually and do a hard reset but everytime I try and restore it it always says Unknown error 1415 and 1439. Please help me fix this

  • 8 hour update to iOS 8.1.3

    Hello.  I contacted Apple about a glitch with my iPhone 6.  We decided to restore the phone to factory settings.  I connected to iTunes and it said that the update to the latest version would take 8 hours.  I decided to disconnect my phone and go to