Incoming Invoice Create from data without posting the GR details

Hi Experts,
I am trying to create a MM invoice (MIRO) using the BAPI BAPI_INCOMINGINVOICE_CREATE and I do not want to post GR details in this invoice. But I have not been able to see the face of success yet.
Following are the parameters that I pass to the structures of this BAPI:
BAPI_INCINV_CREATE_ADDRESSDATA Addressdata = new BAPI_INCINV_CREATE_ADDRESSDATA();
BAPI_INCINV_CREATE_HEADER Headerdata=new BAPI_INCINV_CREATE_HEADER();
BAPI_INCINV_CREATE_ACCOUNTTable Accountingdata = new BAPI_INCINV_CREATE_ACCOUNTTable();
BAPI_INCINV_CREATE_ACCOUNT Account = new BAPI_INCINV_CREATE_ACCOUNT();
BAPI_INCINV_CREATE_ITEMTable Itemdata = new BAPI_INCINV_CREATE_ITEMTable();
BAPI_INCINV_CREATE_ITEM Item = new BAPI_INCINV_CREATE_ITEM();
BAPI_INCINV_CREATE_GL_ACCOUNTTable Glaccountdata=new BAPI_INCINV_CREATE_GL_ACCOUNTTable();
BAPI_INCINV_CREATE_GL_ACCOUNT Glaccount = new BAPI_INCINV_CREATE_GL_ACCOUNT();
BAPI_INCINV_CREATE_MATERIALTable Materialdata = new BAPI_INCINV_CREATE_MATERIALTable();
BAPIRET2Table Return=new BAPIRET2Table();
BAPI_INCINV_CREATE_TAXTable Taxdata = new BAPI_INCINV_CREATE_TAXTable();
BAPI_INCINV_CREATE_VENDORSPLITTable Vendoritemsplitdata = new BAPI_INCINV_CREATE_VENDORSPLITTable();
BAPI_INCINV_CREATE_WITHTAXTable Withtaxdata = new BAPI_INCINV_CREATE_WITHTAXTable();
string Fiscalyear="", Invoicedocnumber="";
Headerdata.Invoice_Ind = "X";
Headerdata.Bus_Area = "ED";
Headerdata.Comp_Code = "GAMB";
Headerdata.Doc_Date = "20110505";
Headerdata.Bline_Date = "20110505";
Headerdata.Doc_Type = "RE";
Headerdata.Diff_Inv = "0001736123";
Headerdata.Currency = "USD";
Headerdata.Exch_Rate = 7.33M;
Headerdata.Po_Ref_No = "4510146624";
Headerdata.Gross_Amount = 87500.00M;
Headerdata.Header_Txt = "";
Headerdata.Inv_Rec_Date = "20110505";
Headerdata.Pmnttrms = "G001";
Headerdata.Pmnt_Block = "A";
Headerdata.Ref_Doc_No = "Inv01";
Headerdata.Pstng_Date = "20110505";
Headerdata.Calc_Tax_Ind = "X";
Headerdata.Person_Ext = "extsuro";
BAPI_INCINV_CREATE_MATERIAL Material = new BAPI_INCINV_CREATE_MATERIAL();
Material.Invoice_Doc_Item = "0001";
Material.Material = "W900000664";
Material.Val_Area = "PL01"; // plant
Material.Db_Cr_Ind = "S";
Material.Item_Amount = 70000.00M;
Material.Quantity = 200.00M;
Material.Base_Uom = "EA";
Material.Tax_Code = "I1";
Materialdata.Add(Material);
Item = new BAPI_INCINV_CREATE_ITEM();
Item.Invoice_Doc_Item = "0001";
Item.Po_Number = "4510146624";
Item.Po_Item = "00010";
Item.De_Cre_Ind = "X";
Item.Freight_Ven = "0000010149";
Item.Tax_Code = "I1";
Item.Item_Amount = 70000.00M;
Item.Quantity = 200.00M;
Item.Po_Unit = "EA";
Item.Po_Unit_Iso = "EA";
Itemdata.Add(Item);
proxyPOInvoice.Bapi_Incominginvoice_Create(Addressdata, Headerdata, out Fiscalyear, out Invoicedocnumber,
    ref Accountingdata, ref Glaccountdata, ref Itemdata, ref Materialdata, ref Return, ref Taxdata, ref Vendoritemsplitdata, ref Withtaxdata);
This is resulting in the below error message:
u2022     Enter goods receipt data only when working with GR-based IV
For the first error messages, after some good amount of googling and also searching in this forum I could reach to this conclusion that, if PO is marked with GR-based IV flag then invoice cannot be booked without GR. Also while booking such as invoice for every GR Item we need to pass:
Ref_Doc = goods recript number,
Ref_Doc_Year = year for good receipt number
and Ref_Doc_It = item number in the goods receipt.
I have created a PO which is not GR-based IV flagged, i.e. GR is not mandatory for creating invoice. Still I get the same message every time. I went through the documentation of the BAPI and also through many sites that gave sample codes to create an MM invoice but without any success.
The same entry when I enter through SAP screens I am able to post the invoice without GR.  Please help me identify where I am going wrong.
Thanks in Advance
Best Regards
Roy

I found out the cause to this whole thing. It seems that even though if you don't need to pass a parameter you need to fill it with default value. e.g.
my invoice was not GR-based IV invoice. Therefore, I don't actually need to pass values for:
REF_DOC
REF_DOC_IT &
REF_DOC_YEAR.
Well i was wrong here. Even then I need to pass these values as:
REF_DOC = ""
REF_DOC_IT = "0000"
REF_DOC_YEAR = "0000"
I guess this is how SAP .Net Connector works.
Thanks to all anyway
Roy

Similar Messages

  • I have hidden unwanted books from the purchased area of the iBooks store, but they're are still appearing on the front page of iOS as cloud downloads, is there a way to remove these from iBooks without using the hide iCloud books button?

    I have hidden unwanted books from the purchased area of the iBooks store, but they're are still appearing on the front page of iOS as cloud downloads, is there a way to remove these from iBooks without using the hide iCloud books button?
    Let me explain a little more. I had downloaded a lot of free books in the past as a trial when iBooks was first released and since then I have decided I no longer want them, because of this I hid them from the purchased section of the iBooks store. The 5 books left are ones I decided to keep as seen in the following picture.
    This is how it appears in iBooks on my mac. There are 4 books downloaded and 1 book that I have decided not to download at this time. I would still like to keep this book available in the cloud incase I want to download it again in the future. You’ll notice that hide iCloud books is not selected, if I wanted to hide the book that I have chosen to keep in the cloud, but have not downloaded yet I could.
    This is exactly how I think this feature should work. If you have hidden a book from your purchases it should not show up in the mac Ibooks app. (I am aware you can never actually delete a purchase, just hide them and that hidden purchases can be restored to your account from within the account management section of the iBooks store).
    The iOS app is working differently for me. Here is a picture of the purchased tab on the iBooks store in iOS Ibooks. Again notice that pictures of Lilly is still yet to be downloaded. This is how I expected it to look.
    If we visit the front page of iOS iBooks the view is very different from what I expected. Here we can see the 4 books I wanted to keep on my device and have downloaded. We can also see the 1 book I wanted to keep, but did not want to store locally on the device and left in iCloud (Pictures of Lilly). However we can also see all the books I had hidden from the purchased section of my iTunes account and which I believe should no-longer be visible, Dracula, frankenstein etc…
    I am aware of the hide iCloud books button within the iOS app, but I did not need to use this to hide the books I had removed from the my purchased section of the iBooks store on the mac, why are they still appearing in iOS?
    I’m still not sure if this is a software glitch or not. This article suggests to me that books can be hidden, but I had already completed these steps.
    https://support.apple.com/en-us/HT201322
    A browse of google also suggests people may have been able to hide past purchases from the front page of iBooks on iOS in the past.
    In case there was an issue with syncing I tried logging in and out of my iTunes account via settings in iOS. Force closing the app, disabling automatic downloads and removing my device from iTunes in the cloud. Syncing with iTunes on the mac did not correct the issue either.
    Interestingly I have the same issue on my iPhone 6 running iOS 8.3 as I do on my iPad mini suggesting that this might be an issue either with my account or with iOS iBooks software in general.
    If there is a way to remove the already hidden iBooks in your account from the front page of iBooks on iOS without using the hide iCloud downloads button? Please help community!

    My apologies for the lack of photos, here is my post again with photos.
    I have hidden unwanted books from the purchased area of the iBooks store, but they're are still appearing on the front page of iOS as cloud downloads, is there a way to remove these from iBooks without using the hide iCloud books button?
    Let me explain a little more. I had downloaded a lot of free books in the past as a trial when iBooks was first released and since then I have decided I no longer want them, because of this I hid them from the purchased section of the iBooks store. The 5 books left are ones I decided to keep as seen in the following picture.
    This is how it appears in iBooks on my mac. There are 4 books downloaded and 1 book that I have decided not to download at this time. I would still like to keep this book available in the cloud incase I want to download it again in the future. You’ll notice that hide iCloud books is not selected, if I wanted to hide the book that I have chosen to keep in the cloud, but have not downloaded yet I could.
    This is exactly how I think this feature should work. If you have hidden a book from your purchases it should not show up in the mac Ibooks app. (I am aware you can never actually delete a purchase, just hide them and that hidden purchases can be restored to your account from within the account management section of the iBooks store).
    The iOS app is working differently for me. Here is a picture of the purchased tab on the iBooks store in iOS Ibooks. Again notice that pictures of Lilly is still yet to be downloaded. This is how I expected it to look.
    If we visit the front page of iOS iBooks the view is very different from what I expected. Here we can see the 4 books I wanted to keep on my device and have downloaded. We can also see the 1 book I wanted to keep, but did not want to store locally on the device and left in iCloud (Pictures of Lilly). However we can also see all the books I had hidden from the purchased section of my iTunes account and which I believe should no-longer be visible, Dracula, frankenstein etc…
    I am aware of the hide iCloud books button within the iOS app, but I did not need to use this to hide the books I had removed from the my purchased section of the iBooks store on the mac, why are they still appearing in iOS?
    I’m still not sure if this is a software glitch or not. This article suggests to me that books can be hidden, but I had already completed these steps.
    https://support.apple.com/en-us/HT201322
    A browse of google also suggests people may have been able to hide past purchases from the front page of iBooks on iOS in the past.
    In case there was an issue with syncing I tried logging in and out of my iTunes account via settings in iOS. Force closing the app, disabling automatic downloads and removing my device from iTunes in the cloud. Syncing with iTunes on the mac did not correct the issue either.
    Interestingly I have the same issue on my iPhone 6 running iOS 8.3 as I do on my iPad mini suggesting that this might be an issue either with my account or with iOS iBooks software in general.
    If there is a way to remove the already hidden iBooks in your account from the front page of iBooks on iOS without using the hide iCloud downloads button? Please help community!
    iPhone 6, iOS 8.3, Also an issue on my iPad mini iOS 8

  • Scripting Crash- "Create from Data Type" on Typedef Enum

    I just encountered a crash that I can duplicate in both LabVIEW 2013 and 2012 (student).
    Attached is a project that contains the code I used on 2012. Run the target VI.
    (I can get the project I had in 2013, if needed, sometime next week)
    Basic steps:
    Create a type def enum
    Place it on a VI
    Use scripting to get ahold of the Control Terminal and get the data type
    "Create from Data Type"

    Haha, I saved your code and ran it while I still had another project open... didn't really think that one through. Thank you, Auto-save.
    So it looks like the crash happens at the Create node. I can get rid of the crash by removing the Type Def link from the enum.
    I'm not at all an expert in scripting and have only used it a few times. Could a workaround be to get a reference to all of the Controls on the FP and copy the Control with the same Label "Enum" (instead of loading the terminal and creaing a new terminal)? Maybe creating a typedef by data type is what's causing the crash, but copying an already existing control will work.

  • BAPI Diff between Creat and Create from Data

    Hi All,
    for Sales order creation we have Many BAPI function module.
    how can i decide which module shoud i use ..a
    and what is the diff bw create and create from data function module.
    And i have read some where about BAPI --- ' acces to SAP applications from Third party can only by means of BAPI's.'..
    it means can't third party call RFC's in SAP.
    if they can call RFC's why BAPI.
    i met this question in so many Situations.
    But i didnt get clear answer for this.
    could u pls help me.
    Thanks in advance.
    Jeyaseelan.G

    hi jeyaseelan guru,
    there no difference actually ...between a create bapi and create from data() bapi...
    open business object type kna1 in swo1 and see that  differeence lies in the versions .....double click on create method under the methods node u will find tat create bapi  used from the release 30a and create from data bapi used from the release from 45a.......... based on the versions it offer more features ............
    so, try to use a bapi of newer version
    The BAPI Create() or CreateFromData() creates an instance of an SAP business object type, for example, a purchase order. These BAPIs are class methods.
    reward points if helpful.....
    Message was edited by:
            raam

  • How can i format my external hard drive to write files from Mac without loosing the files that i alredy have on my external hard when i used it with windows?

    How can i format my external hard drive to write files from Mac without loosing the files that i alredy have on my external hard when i used it with windows?
    I have been using Windows to write files to my 1TB WD external hard drive and I do not want to format to loose the files capacity of around 500GB
    Someone, Please help

    Hi Allen,
    Is there any way to store the back up to Mac and restore after formating?

  • How create mail alert without triggering the event.

    1.     SR 3-4924626351: How create mail alert without triggering the event.
    We wanted to send alert mail every 10 days or 15 days or 1 month to a reporting manager of Opportunity Owner with details of that Opportunity. I don’t want to use any triggering of event like the Following. When new opportunity is created When modified Opportunity is saved etc.

    Raju,
    If you don't want to use the triggering event, you will have to do this manually.
    Manually:
    - Create a Web Link on the SR with and embed the mailto: function with the receivers email and subject and body embedded in the url (you can find this link on Google)
    - When this link is clicked, an email window will open with all the details you provide, and you can click the send button to send the email.
    - You will have to do this manually every 10-15 days or whatever is the duration
    Auto:
    - Create a time based workflow on a new Opportunity Created event
    - create a action to send an email notification to the concerned person (details in the workflow properties)
    - This workflow will auto send an email every 10-15 days to the opportunity Manager.
    The time based workflow is the best option I see. Do you see any issue/ concerns with auto generated emails?
    Hope this helps!
    Royston

  • Is there a way to erase data without reinstalling the system?

    Hi
    I have an old PowerMac G5 that I want to sell. I want to erase the hard drive, but I no longer have the system disks. Is there any way to erase the data without reinstalling the system?

    Hi-
    You could set up a new user (Administration) account, and then delete the old user account that has data related to it.
    Once that is done, if you want a more secure elimination of the data (so it cannot be scavenged) clone the drive to a second drive, and then you can erase and write zeros to the first drive.
    Reclone the cloned version back, and you should have a very clean, "fresh" system drive.
    Use SuperDuper! for the cloning.
    Mind you, I haven't tried that process, but I don't see why it wouldn't work.
    Keep a copy of the system drive (backup), just in case......
    Message was edited by: japamac

  • Create a tablespace without specifying the datafile path and name

    HI,
    Is it possible to create a tablespace without specifying the datafile path and name.
    For eg : if we just specify the tablespace name and the size of the datafile, the datafile should be created in a default location with default name? Is it possible?

    user13364377 wrote:
    HI,
    Is it possible to create a tablespace without specifying the datafile path and name.
    For eg : if we just specify the tablespace name and the size of the datafile, the datafile should be created in a default location with default name? Is it possible?Using Oracle-Managed Files
    Oracle internally uses standard file system interfaces to create and delete files as needed for the following database structures:
    * Tablespaces
    * Online redo log files
    * Control files
    Through initialization parameters, you specify the file system directory to be used for a particular type of file.
    EXAMPLE:
    The following parameter settings are included in the initialization parameter file:
    DB_CREATE_FILE_DEST = '/u01/oradata/sample'
    DB_CREATE_ONLINE_LOG_DEST_1 = '/u02/oradata/sample'
    DB_CREATE_ONLINE_LOG_DEST_2 = '/u03/oradata/sample'
    The following statement is issued at the SQL prompt:
    SQL> CREATE DATABASE sample;
    SQL> CREATE TABLESPACE tbs_2 DATAFILE SIZE 400M ;
    SQL> CREATE UNDO TABLESPACE undotbs_1;
    refer the link for more information:
    http://download.oracle.com/docs/cd/B10500_01/server.920/a96521/omf.htm

  • Invoice created via SUS having error -The template item 1 does not exists

    Hi All,
    We are in SRM6.0 and in our PRD system, we have few invoices created through SUS showing error "The template item 1 does not exist.
    These invoices went into "To be corrected" status and when I hit check it gives me above error message. The message itself don't make much sense to me. Please note we can create new invoice in SRM manually and everything works fine.
    Appreciate any pointers.
    Thanks, Sachin

    We have analysed the issue and found we are getting this error because these invoices are missing with "BE_LOG_SYSTEM" field in table BBP_PDBEI and "BE_REFOBJ_TYPE" field is showing "BUS2201 instead of "BUS2012".
    Any feedback why we have these difference as compare to good invoices (created directly in SRM).
    Thanks, Sachin

  • How to create Oracle Alert without metioning the email address in To Field

    Hi,
    I just wanna know that how to create Oracle Alert without metioning the email address in To Field.
    Please help thanks.

    If you don't enter anything in the email field, the alert email won't go out.
    If you just want to test or if you plan to use the history, you can put a non-existant email there.
    The alert will fire anyway.
    Hope this helps,
    Sandeep Gandhi

  • I purchased a download copy of Acrobat Pro XI for Mac from a reseller online for $199.00. Now I am suspicious that the reseller is less than trustworthy.  Could I purchase a copy from Adobe without losing the $199 that I already spent?

    purchased a download copy of Acrobat Pro XI for Mac from an online reseller for $199.00. Now I am suspicious that the reseller is less than trustworthy.  Could I purchase a copy from Adobe without losing the $199 that I already spent?

    I doubt it. The clue should be the price. Any time you see a copy available for less than from Adobe, I would be suspicious. You can inquire with the Adobe sales folks, but don't expect any credit. At this point, I would suggest just buying AA DC, rather than AA XI.

  • Does anyone know how to upload email contacts on my iPhone from iTunes without loosing the phone contacts previously transfered from my older phone??

    Does anyone know how to upload email contacts on my iPhone from iTunes without loosing the phone contacts previously transfered from my older phone??

    Good Afternoon irish357,
    I know the importance of saving and updating your contacts. What type of phone do you have? If you are using Backup Assistant, you have the ability to sync the contacts between your laptop and phone. You will also be able to see if all your contacts are stored on the online portion of the application versus the phone itself. The contacts should be the same for both online and the phone.
    I have attached a link below for your reference.
    http://bit.ly/rKiyOf
    I hope this information is helpful in resolving your concerns.
    Sincerely,
      JonathanK_VZW
    VZW Support
    Follow Us on Twitter@VZWSupport

  • Can i create apple id without use the credit card?

    can i create apple id without use the credit card?

    I'm getting the same thing. I created a new Apple ID via the Internet (appleid.apple.com) When I go to my device to try to use it, I have to review it first and in that process, I'm asked for a credit card or iTunes gift card. There is NO 'none' option.
    I work in a school district and we'd like employees to use their own apple ID for free apps which will allow them the freedom to explore apps without weighing down our tech dept with myriad requests for random apps. I deal with a broad demographic and many users are suspicious of putting personal credit card info on an Internet-based account.
    However, it appears they are locked out of the store unless they have some form of payment on file. Even if they enter a gift card, what happens when it's used up? Will they get locked out of the store if they don't have a balance?
    Anyone have a work around? If not ... APPLE Please update your support materials to explain this, or fix the bug.
    Thanks!

  • HT2589 how can i create apple id without using credit card details ?

    how can i create apple id without using credit card details ?

    @Limnos - that doesn't work anymore. There is no NONE option. I've been at it for hours trying to set up my daughter's account. I've tried creating and verifying an appleID on the web, on her touch...everything. Every single time you get to the stupid Touch, it wants to walk you through the verification of the account and it demands payment (even for their suggested apple Remote method listed in the KB).

  • Ordinal date columns in the activity details area  ?

    Is it possible to add ordinal date columns in the activity details area of Priamvera P6?

    It is possible - I just have to do it, I will let you know after I do it how it goes...

Maybe you are looking for