BAPI_SALESORDER_CREATEFROMDAT2 email

Does anyone have any info on using this BAPI to create a sales order and also an email address against a one time customer?
Thanks, Mark

Here is some sample code:
Order header
l_order_header-doc_type = 'ZQBV'.
l_order_header-distr_chan = '10'.
l_order_header-division = '00'.
if g_qals-werk eq '1100'.
l_order_header-sales_org = '1000'.
else.
if g_qals-werk eq '3100'.
l_order_header-sales_org = '3000'.
else.
message i001(00) with text-005.
endif.
endif.
l_order_header-purch_no_c = g_qals-prueflos. " <= lot
Partner data
l_order_partners-partn_role = 'AG'.
l_order_partners-partn_numb = g_qals-kunnr.
append l_order_partners to it_order_partners.
Order items => only one
l_order_items-itm_number = 10.
l_order_items-material = g_qals-matnr.
l_order_items-target_qty = 1.
append l_order_items to it_order_items.
Schedules for quantity
l_order_schdl-itm_number = 10.
l_order_schdl-req_qty = 1. " <= only 1 !
append l_order_schdl to it_order_schdl.
Conditions for value
l_order_conditions-itm_number = 10.
l_order_conditions-cond_type = 'PR00'.
l_order_conditions-cond_value = g_effort_sum.
l_order_conditions-currency = g_effort_unit.
append l_order_conditions to it_order_conditions.
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
EXPORTING
* SALESDOCUMENTIN =
ORDER_HEADER_IN = l_order_header
* ORDER_HEADER_INX =
* SENDER =
* BINARY_RELATIONSHIPTYPE =
* INT_NUMBER_ASSIGNMENT =
* BEHAVE_WHEN_ERROR =
* LOGIC_SWITCH =
* TESTRUN =
* CONVERT = ' '
IMPORTING
SALESDOCUMENT = l_salesdocument
TABLES
RETURN = it_return
ORDER_ITEMS_IN = it_order_items
* ORDER_ITEMS_INX =
ORDER_PARTNERS = it_order_partners
ORDER_SCHEDULES_IN = it_order_schdl
* ORDER_SCHEDULES_INX =
ORDER_CONDITIONS_IN = it_order_conditions
* ORDER_CONDITIONS_INX =
* ORDER_CFGS_REF =
* ORDER_CFGS_INST =
* ORDER_CFGS_PART_OF =
* ORDER_CFGS_VALUE =
* ORDER_CFGS_BLOB =
* ORDER_CFGS_VK =
* ORDER_CFGS_REFINST =
* ORDER_CCARD =
* ORDER_TEXT =
* ORDER_KEYS =
* EXTENSIONIN =
* PARTNERADDRESSES =
Message was edited by:
        Pankaj Singh

Similar Messages

  • Cannot send email from iPad2 with Shaw

    Hi there,
    I have issues that I cannot seem to resolve:
    I can receive from my shaw account but it sends all outgoing to the Outbox - I've double, triple cheked all incoming and outgoing servers - I even sat with my iPad next to my iMac to make sure everything matched.
    it says  The sender address "myemailadrees.com" was rejected by the server. even though I recive ok.
    Help please??

    I too have spend countless hours trying to get my iPad 2 to work with my Shaw email.  I FINALLY got it to work this morning after about 3 months of trying different "solutions".  Here is how I set my POP email account:
    Incoming mail server:
    Host name:  shawmail.ed.shawcable.net (I live in Edmonton)
    User name: my shaw email address without the @shaw.ca
    Password: my Shaw email password
    Outgoing mail server:
    Host name:  shawmail.ed.shawcable.net (I live in Edmonton)
    User name: leave blank
    Password: leave blank
    Use SSL: off
    Server port: 25
    This has worked so far for me, so hopefully it will work for others as well.  It seems like there is an lot of people on these forums going through the same frustrations.  I was able to set both mine and my wife's email accounts on my iPad.

  • How can a family share an iPad, specifically, using email? Seperate account

    I know, you can have multiple email accounts. i have 3 on my iphone 4. But if my wife, daughter, and I all use the ipad. Can you set up email to ask for what account to load?
    Again, i know you can switch after the fact. I am trying to avoid the scenario where I may see my daughter email, or my wife may see mine. Not that we have anything to hide. But if i order flowers or something, i wouldn't want here to inadvertently see the conf email because ipad defaulted to my account.

    Perhaps consider setting your family up with Gmail accounts. Gmail (Google's email service, even though you probably already knew that) is totally free and has an awesome web interface, especially on the iPad. Then each member of your family could log in/out of their Gmail accounts using mobile Safari.

  • How can I use multiple ipad's on one account without sharing individuals personal email accounts?

    Is it possible to have multiple ipads on one account and share info, but also allow the individual users to have personal email that is not seen on the other ipad's? We have all ipads on same icloud account because we all need to see the same ical. It seems like that's the problem. If it IS related to icloud then if we have separate icloud accounts, how would we share the main ical otherwise? Sharing the ical is very important for this business so everyone can access the daily schedule. Of course each user still wants to have private email.
    Hope this wasn't too confusing!
    Thanks!
    Doreen

    you could set up the main icloud itunes acount for ical and not have in setup on the devices
    and share the calandar with the other itunes accounts on the devices
    or only have it on one device
    devices have the users indervidual itunes icloud setup
    they should be able to access the shared "main" itunes icloud ical account once it's shared
    http://howto.cnet.com/8301-11310_39-57542557-285/three-methods-for-sharing-an-ic loud-calendar/
    if the devices are company owned you could go futher and setup find my iphone on the main itunes account
    and not on the user icloud accounts

  • Cannot send email from my Touch (connection to smtp server fails)

    Hello,
    I have a new iPod Touch with 1.1.4 and the January apps. I am having a problem setting the Mail application.
    I am trying to connect to the IMAP/SMTP servers at my university. I am using the exact same settings and passwords I use on my laptop, which works fine. I can receive email fine on my Touch, but every time I try to send one it fails tellings me "the connection to the outgoing server smtp.myuniversity.edu failed".
    If I on purpose write a wrong password for the outgoing mail, the error message I get is different ("check the account settings for the outgoing server smtp.myuniversity.edu").
    The university IT people confirmed my settings, and told me that there is nothing blocking any handheld device from using the server.
    Does anyone know why this would happen?
    Thanks,
    Marcelo

    Thank you very much for your responses
    1) the link to mail setup is (sorry, it's quite long)
    http://www.knowledgepak.com/kpaksonline/kpol.asp?PiAlias=kpolpi17&k2dockey=04096 3251575739@kpol17&ViewLink=true&SkipHeader=false&printformat=true
    2) I am indeed using SSL, as instructed by IT
    3) I do use port 587 instead of 25 (25 does not work either)
    Any ideas? Thanks again.
    MC

  • Cannot send email from iPhne 5s

    I have just upgrade from iPhone 4 to iPhone 5s.  Excited but now I cannot even send any email.  No problem receiving.
    My setting in my email account is POP, incoming and outgoing mail server is mail.optusnet.com.au which is the same seeting as my previous phone.
    Can aynone help? Thanks

    Hi,
    Are you getting any error? Perhaps switching TLS/SSL on the SMTP configuration?
    I've found this link that may help
    https://devicehelp.optus.com.au/web/apple-iphone-5s/functions/messaging/setting- up-my-mobile-phone-for-email/
    Edit: correct versino of the link

  • Cannot send email from yahoo mail client

    I cannot open or send or attach anything to my email in the yahoo mail.  I know there's nothing wrong with the email because it works on my laptop, just not on my computer.  Could there be a setting problem, or a cookie problem or something?
    I also cannot open Bonjour to see my printer settings.  Everything was working fine yesterday.

    outgoing mail server
    SMTP - Yahoo! SMTP Server
    primary server
    Yahoo! SMTP server - ON
    server port 465
    That's what I have for my yahoo account.

  • Cannot send email from yahoo account on iPhone 5

    I just got an iPhone5 and I couldn't set up my Yahoo email as "yahoo"--it would not allow me to complete the process despot multiple attempts. I had to set it up as an "other" account. I can receive and read emails on my phone, but when I reply those messages will not send. They go to the outbox and an error message pops up that says" the email account has been rejected by the server" Does anyone have advice on either issue: setting up yahoo properly and/or sending email from phone?

    outgoing mail server
    SMTP - Yahoo! SMTP Server
    primary server
    Yahoo! SMTP server - ON
    server port 465
    That's what I have for my yahoo account.

  • Cannot send email from non .mac server

    I am only able to send/reply emails using my .mac address. My 2 other server addresses keep giving me the following message.
    "Cannot send mail. One of the recipient addresses was invalid".
    How can I fix this?

    You should be able to send email from Safari, however I do wonder why you wish to do this and whether there is something inherently wrong with using your mail app and your iCloud address.

  • Cannot send email from Mail through .mac account

    I have recently opened a .mac account and started using the email service. It works fine online however I am having difficulty sending messages through the Mail application in Tiger.
    Whenever I attempt to send a message, a dialog box appears saying "Cannot send message using the server smtp.mac.com".
    I have tried looking at the setting in preferences. I have deleted and .mac a/c setting in Mail and re-set them up, all the problem persists.
    Please help!

    Hello David.
    Who is your ISP used for connecting to the internet and are you accessing an email account snd SMTP server in Mail provided by your ISP?
    If so, can you send messages with the email account and SMTP server provided by your ISP?
    Most, if not all ISPs now block the use of SMTP servers that are outside of their network (or not provided by the ISP used for connecting to the internet) on Port 25 which is the standard port used for SMTP servers. Some ISPs allow the use of an authenticated SMTP server only (such as the .Mac SMTP server) that is outside of their network on Port 25 but some block its use regardless.
    These restrictions are part of an overall effort to prevent spam emanating from the ISP's domain.
    Something to try.
    Go to Mail > Preferences > Accounts and under the Account Information tab for your .Mac account preferences at the SMTP server selection, select the Server Settings below for the .Mac SMTP server.
    Enter 587 in place of 25 in the Server Port field and when finished, select OK to save the changed setting.
    Test if this resolves the problem.
    If not and you are accessing an email account and SMTP server in Mail that is provided by your ISP used for connecting to the internet, select/use your ISP's SMTP server to send mail with your .Mac account which is invisible to all recipients.

  • Cannot send email from MobileMe account

    Apple recently pushed out an update to the MobileMe calendar. Since upgrading my account, I am unable to send emails from Firefox4 (current version) in Windows. The page sits indefinitely at a loading screen. Apple Support won't help because it isn't an issue with Safari. Anyone else have this issue?

    When using the MobileMe account preset to create the account, the SMTP server is created with 587 as the SMTP server port, which can't be changed when using the MM account preset to create the account.

  • Cannot send email from Verizon to a specific domain using the web UI

    I'm trying to send an email to a specific address on a domain I own from a Verizon account using the web UI. Whenever I click send, a popup appears saying "Your e-mail contains the following invalid e-mail addresses:" followed by the email address. I can send email to this address from a GMail account as well as my work email.
    In Chrome, I can see that a "code":1002 error is being produced.
    Does anyone know why this would happen? Does Verizon check destination domains for reputation? Is there any way to debug this further?

    rhodeislandred wrote:
    I'm trying to send an email to a specific address on a domain I own from a Verizon account using the web UI. Whenever I click send, a popup appears saying "Your e-mail contains the following invalid e-mail addresses:" followed by the email address. I can send email to this address from a GMail account as well as my work email.
    In Chrome, I can see that a "code":1002 error is being produced.
    Does anyone know why this would happen? Does Verizon check destination domains for reputation? Is there any way to debug this further?
    What is the domain that is giving you the error?

  • Cannot send email from promail.ptd in iPad Air

    Help, I have deleted the accounts, rebooted the iPad &amp; nothing has worked. My gmail is working fine but these other two from ptd.net cannot send. And, when I try deleting emails, they flood back into the account.

    Hi,
    Check if you have the Accepted domain settings are correct.
    ECP->Mail Flow->Accepted Domains. Make sure that your default domain is the domain which is having the AD name (eg.domain.local)
    Regards from ExchangeOnline.in|Windows Administrator Area | Skype:[email protected]

  • Cannot send email from messages app

    Hey everyone
    I am unable to send an email from my iPhone to any email address. This feature was working perfectly a couple weeks ago. Once I noticed the issue, I restored my phone and upgraded it to iOS 6.1. This still did not fix the error unfortunately.
    Any advice?

    resolved part one: played around with mail preferences of user two to match prefs in user one
    still do not know about access to TDM saved addressbook data.

  • Cannot send email from Powershell on Mailbox Role

    Hi,
    I am trying to send an email from Powershell on Mailbox role of Exchange server. I have installed Symantec Mail Security on Mailbox Role.
    When I try to send email using Powershell, I got the following error.
    PS C:\a> Send-MailMessage -to [email protected] -Subject "Alert Closed.. Service is restarted on Computer" -from
    [email protected] -Body "The service was found stopped on Computer it was started automatically and it is now running normally." -bodyasHTML -priority High -SmtpServer smtp.domain.com
    Send-MailMessage : Service not available, closing transmission channel. The server response was: 4.3.2 Service not active
    At line:1 char:1
    + Send-MailMessage -to [email protected] -Subject "Alert Closed.. Service is ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (System.Net.Mail.SmtpClient:SmtpClient) [Send-MailMessage], SmtpException
        + FullyQualifiedErrorId : SmtpException,Microsoft.PowerShell.Commands.SendMailMessage
    This command is working fine on every server except exchange server (CAS, Mailbox). Firewall is off on the servers.
    Any help will be highly appreciated.
    Regards,
    Anees

    Hi,
    Please check the similar thread .
    http://social.technet.microsoft.com/Forums/exchange/en-US/ef699832-8da9-4709-9a50-c6223b13bd95/sendmailmessage-returns-the-server-response-was-432-service-not-available?forum=exchangesvrsecuremessaginglegacy
    smtp server (smtp.domain.com) is rejecting the connection from the
     Mailbox role of Exchange server.
    So please allow the mailbox server ip address on the smtp server's (i.e. smtp.domain.com)
    receive connector to get it done 
    Regards
    S.Nithyanandham
    Thanks S.Nithyanandham

Maybe you are looking for

  • Connecting Aquos Sharp TV to Macbook pro

    Has anybody figured out how to do this? I have done everything by the manuals. I have a DVI connector to the HDMI Port 6 in the TV. All the right adapters. My TV model is:LC32LE700UN. All I get is a black screen. Computer does not recognize. Does the

  • Adding video in different quality into iTunes library

    I have the problem with importing my video in different quality (for iPhone 3GS, Full HD and so on) into my iTunes Library. Before upgrade of my mac pro 1.1 to Lion 10.7.5. from Snow Leo I was able to drag the whole folder with video files in differe

  • Output determination for P45 form...

    I had a quick look at OSS 1230107 in regards to the new P45 A4 form. All seems to have been installed and is working, although all three pages print to the same printer tray at the moment. I have made a copy of sapscript HR_GB_P45_A4_D (ZHR_GB_P45_A4

  • OracleAS JMS is slow

    We are using OracleAS 10g JMS. But it is unbelivablely slower than the previous version. Could anybody comment on this issue?.

  • How do I set up pixels and resolution to print out my illustration?

    I want to print my illustration which I'm going to paint on Photoshop 5 to the size of 8x10(inch) at Walgreens.com.  How do I set up the pixels and resolutions in Photoshop to start with? There was a guideline at Walgreens Photo site, and it says "Mi