How can i capture sales order items in C# and pass them to a BAPI?

Hi everybody,
here is another novice question for you.
What control should i use in Visual Studio to allow the user to enter sales order items (material and qty) as a table on the screen and then put these items on a table and call the BAPI to create an order?.
I've tried using a Datagrid and set the "edititemindex" as "1" but doesn't work.
Any help will be greatly appretiated.
thank you
Javier ...

Dear Todd,
thanks for your reply. I'm using ASP. I tried a grid but i cannot seem to make it work, it doesn't appear at first because it's empty, i tried creating some blank rows but the same happens.
The other thing i tried just to test is to create a row on the table "partners" to pass the needed "AG" (sold to party) and its number and the BAPI keeps returning an error "Please enter Sold ot or Ship to party". Like if the table was empty. Is there any special way to send a table to a BAPI ?. I'm sending it by ref, and i'm creating the record by first creating a structure, filling it an then calling the ADD method of the table and passing the structure. I'm i missing something here?
Please Help, it's been days with this problem,
I'll appreatiate it very much
Best regards and have a great day.
Javier ..

Similar Messages

  • Urgent: How to copy multiple sales order items into a return sales order?

    Dear developers,
    I have a requirement to copy multiple sales order items into a single return sales order. For example, generated return sales order have 2 items, item 10 is created with reference to sales item 2610/10 and item 20 is created with reference to sales item 2611/20. What's more, when it happens, copy control should be taken care of. I know it is possible to create this kind of order by transaction. But how to do it in coding?
    In current SAP release, there is only BAPI for creating with reference on 1:1 relationship which means copy one document to another but what I need is N:1 copy.
    Any suggestion is high appreciated!!
    BR,
    Tony.

    Hi ,
    If you are creating sales order by using bapi then after calling bapi you can check import parameter <i><b>SALESDOCUMENT</b></i> in the bapi function module .If this parameter is not initial then sales order is created in this case you can create return order. If this import parameter is initial then sales order is not created and you cannot use return bapi function module.
    Bapi is simple method than BDC.
    In above case it is required to call BAPI_TRANSACTION_COMMIT after every successful sales order creation.
    One more important point is you have to clear import parameter <i><b>SALESDOCUMENT</b></i>  before calling sales order creation function module.
    Thanks,
    shyla

  • When printing a list in Address Book, how can I select more than the default Attributes and keep them selected when I print again? I want to print ALL information for contacts so I have email address, notes, phone, company, title, etc all on one page.

    When printing a list in Address Book, how can I select more than the default Attributes and keep them selected when I print again? I want to print ALL information for contacts so I have email address, notes, phone, company, title, etc all on one page. I don't want to have to check off an additional 5 or 6 attributes each time I print out contact information. Is there a way to change the default setting for printing lists, so it is not just "phone," "photo," and "job title?"

    I have a user who wants to do this same thing. I did not find any way either to default the attributes to anything other than what you see the first time. Seems like such a trivial thing, hard to believe they do not allow it. I did find a program for this called iDress but I can't seem to download it from any links on the Internet. Not sure if it is free or not, but it was recommended by a link on the Mac support site.

  • How can you pull in pdf's from iBooks and bring them into the Box app?

    How can you pull in pdf's from iBooks and bring them into the Box app?

    That sounds great, but I'm lost.
    I followed these steps:
    1) Open your PDF (in Adobe Acrobat Pro)
    2) Chose print
    The print/printer options pop-up will show.
    3) In the printer section, do not use your normal printer, a printer named Adobe PDF should be an option. Chose it.
    4) Under the "Page handling" section, change the Page Scaling drop-down menu to "Multiple pages per sheet".
    It works fine, but it looses all of the font information and the search no longer works. How can you do it and save the font info, so the search tool continues to operate.
    Am I missing anything?

  • How can I stop Mac Mail from underlining hyperlinks and changing them to blue?

    How can I stop Mac Mail from underlining hyperlinks and changing them to blue?

    It doesn't look like you can. But that's how you tell they are a hyperlink. Is this a problem?

  • How can I reallocate sales order stock within sales order?

    I have a material that is strategy 50 and produces sales order stock.   A customer placed an order for a quantity to be shipped to a single location.  So the sales order was set up with a single line item and a single ship-to partner.  Just before shipping, the customer now wants the quantity broken into deliveries for 4 different ship-to locations.  The total quantity is the same, but it is now to be spread across 4 ship-to partners.   I thought we could just add 3 more line items to the sales order, set the ship to partners for each of the 4 sales order items to the new ship to locations, and then adjust the quantities to the amount to be shipped to each partner.  But when I do this, ATP does not let me confirm the new order items and confirms the original item with a note that the quantity produced is less than the order quantity.  How can I split this order up into multiple items?  
    Thanks in advance.

    I was able to resolve the problem yesterday evening.   The solution was to first create a posting change using MB1B with movement 413 E - Sales Order to Sales Order.   Then I did a posting change notice to change the material - the only thing that I changed, however, was the special stock number.   Worked like a charm, but was tough to figure out (I am an SD person, not IM/MM).

  • How to read the Sales Order( Item ) System status?

    Hi All,
    My requirement is to display the  System status of the sales order item*. When we go to the sales order display, if i double click on the line item , ii will lead to the next screen.Click on status tab,here we can see the Sytem staus. I would like to know the logic to read this sytem status ?
    Thanks,
    Suresh.

    read tables VBUK, VBUP for SD document status indicators

  • CIF: how to "push" a Sales Order item from ERP to SCM via FunctionModule ?

    Hello experts,
    we are implementing a process in ERP (ECC6.0) where we change a sales order item (VBAP- VPZUO) in order to stop SNP (LiveCache) performing the "fcst consumption" for this specific sales order since it is a spezial promotion / trade fair order which does not justify to change the fcst consumption for the entire product.
    We are searching for a function module or any ABAP "handle" of telling the CIF in ERP to "push" a specific sales order item thru to SCM again. We started with an artificial batch input in VA02 / VA32 and changed a non-used text field field in the sales order position and the document save was doing it. I wonder if someone run over same topic and found a better way to get this done with a specific function module or setting a specific trigger in some other ways.
    I was not sure if this is the correct forum - in case someone knows a better match on SDN I'm happy to move it over to the right place.
    Regards
    Thomas

    Hello Thomas,
    You can't really push a Sales Order seperately, and not advisable also as you should not tamper with CIF interface. I can give you another approach.
    You have to identify during CIF that the Sales Order is a special Sales Order. Better have a separate Sales order type for such special Sales Orders. That being the case, I think you can handle your issue by changing the ATP category of the Sales Order during CIF. The standard Order category is BM. You could create a custom category in APO, and during the transfer, you could change the Sales order category to this custom category. APOCF010  EXIT_/SAPAPO/SAPLCIF_SLS_001 exit (Inbound Sales Order in APO) should be helpful for this. You would need to change the ATP category field in IT_SL_REQ table.
    You could then display this "additional" Sales Order in a separate KF in SNP (if you need it) by assigning it a custom category group in SNP planning area which would have only this custom category. For normal SNP planning, normal SNP sales order of category BM would be relevant.
    Please be aware that when you try out things like this, you might need to tweak a lot of SAP standard behaviour at many other places. Things like CCR also need to be tweaked, and also whatever further planning you have to do for this particular Sales Order might also need to be tweaked.
    Thanks - Pawan

  • Sales Order Item Change Date and delta flag

    is there a field for Sales Order Item Change date in MC11VAOITM?
    Also is there a flag that tell if a record is a delta or not once it is extracted to BW?

    You may be aware, any changes to a document will be recorded in CDHDR (for header changes) and CDPOS (for item changes).  You can explore these two tables.
    thanks
    G. Lakshmipathi

  • How to make a sales order item deleted in ECC while in CRM just status changed?

    Hi expert,
    I have a requirment, that is:
    1. the user will change the USER STATUS in a line item of sales order to "CANCEL".
    2. When the order was replicated to ECC,the item should be deleted totally and the ITEM in CRM should not be affected.
    How can I implement this? Is there any resolution by just make some configuration?
    Thanks in advance.
    Jerry

    Hi Jerry,
    As per standard SAP, the line item is not deleted (in ECC) based on the status changes at the line item (in CRM)
    You need to do the development to achieve this.  Following points to be considered if you are doing any custom enhancement.
    1. What triggers the sales order replication ? Is it status change at header level ?  If yes, then you need to define a program which will first check the line item status in CRM Sales Order.
    2. Wherever a line item status is CANCEL, it may store in some internal table and then it will call an RFC to delete these line items in the replicated ECC Sales Order.  (without deleting the line items in CRM Sales Order)
    3. Mind you that, this will be a complex enhancement and may give lot of challenges in the sales order replication to ECC.
    Drawback of this requirement -
    1. If your client prefer to have this scenario, then it is fine, but I could see the data inconsistency in all such sales orders.  There will be a mismatch between the sales order in ECC and CRM
    Hope this will be useful
    Thanks and Regards
    DJ

  • How can i show sales order details for specific partner in view

    Hi All,
              My Requirement is that I want to display the sales order id,sataus,amount in sales order assignment block  in Customer FACTSHEET. I created a new componnet and new view for Sales Order View  using BTQRSlsOrd BOL Entity in ONEORDER I want to diplay sales order id ,status ,amount for specifc business partner which i selected from Account Tab in WEB UI.How can i bind my ( view or context node or context ) so that it shows details of sales order for specific business partner.
    Thanks in Advance.......
    Vishwas Sahu

    Hi Vishwas
    I hope the following link helps you in setting up the sales order in account fact sheet:
    Add Sales Order to Account Factsheet
    If you are on CRM 2007 SP03 then you might need the following note:
    Note 1165224 - Search result is not showing up in IC account factsheet.
    Regards
    Rupesh

  • How can attach a sales order link into an Internal Mail - Workplace.

    Hello, is there somebody can give me some tips to do this.
    I need to attach a link of a sales order into a message of an internal mail (workplace).
    When a sales order is blocked by credit, one mail sent to the representative credit manager.
    The subject of the mail already have the number of the sales order (&VBAK-VBELN&), BUT I don't know how to attach the link of a sales order. The idea is the user that  will read the mail can clic the link to display the sales order.
    Thanks for your help,
    JEOS.

    Hi Jeos
    While maintaining condition record VV11 with transmission medium Internal Mail  you will get the option attach file then you can attach that file and send internally to the other user . But you cant attach the sales order , you convert the sales order data into an excel file and then upload that excel file and then send to the other user
    Regards
    Srinath

  • How can I remove books from my Ipad "Kindle" and put them back into Icloud "archieve"

    I have purchased a mini Ipad and loaded up Kindle.  How can I remove the books I've read from my device and move them back to Icloud archieve?

    The following info is included with the current version for the Kindle app.
    Cloud shows all items in your Kindle library.
    Device shows items you have downloaded.
    Tap an item to download it from the cloud.
    Press and hold an item to remove it from your device.

  • How can I hyperlink pages between multiple indd docs, and have them work in a pdf?

    Ok, this is confusing, so I'm going to try to be as clear as possible. I'm using InDesign CS6.
    I am working on a catalog, over 500 pages, which is split into several smaller indd files.
    I need to end with one single pdf of the whole catalog, with links to different pages. For example, there's an index in the back, a TOC in the front, and various "related product" type references throughout the catalog which I would like to have the page numbers as clickable links.
    When I try just linking to the different docs, either clicking it in the pdf opens the indd file (not helpful) or nothing happens at all (even less helpful). So I assume there must be a trick to it. Or it's impossible.
    I know how to do this if everything was one big indd file, but it's not. I suppose that could be an option but I really don't know how my mac will react to a file that large.
    So, how can I make this happen? Is there a way? Would it be better to just do this in Acrobat?

    I actually did already create a book with all the files in it, but I couldn't figure out how that was helpful. The hyperlink panel doesn't seem to have any "book" options (unless I'm looking in the wrong place?) and just linking to the different files (after creating the book) didn't have any different results than linking to the files before I created the book.
    I thought maybe linking to the different files in the book would work if I could export the whole book to pdf at once (which would be super-helpful in and of itself), but that doesn't seem to be an option either.
    I guess what I'm asking is for you to elaborate on what to do after creating the book.
    Thanks!

  • How can I copy cookies about some web site and paste them into a program's header?

    You may know the programme called Teleport Ultra which allows us to download an entire web site and browse offline. There is a forum I want to download but it doesn't allow to see the pages without logging in. So I want to take the cookies after I log in to site, and put them to the programme. How can I do?
    PS: I have to re-create it like "cookie: name1=value1 name2=value2;" in the program

    *Cookie Exporter: https://addons.mozilla.org/firefox/addon/cookie-exporter/

Maybe you are looking for

  • New @ RMI need help with  java.rmi.UnmarshalException: error unmarshalling

    Hi @ all out there, I'm new with Java RMI and have to write a EventSystem for an college project where clients can subscribe to a topic and get notified when someone publishes a message to the subscribed topic. At server-side I have a class called Ev

  • The order of result changed in oracle 10g after migration from 9i.

    i am using the below query to fetch data from two views. SQL: select distinct PVCID pvcid, PATH_ID pathId, fnn fnn, g.XDM_SERVICEID xdmServiceid, TC_SERVICETYPE tcServicetype, TC_PORTTYPE tcPorttype, TERMINATION_TYPE terminationType, TC_PRODUCTCODES

  • Problem while uploading FF_5

    Hello, We are uploading the bank file using FF_5. when we upload the file the file is getting uploaded but showing error message difference is to large for clearing. When we check in FEBA the items in files are displayes as TO BE POSTED. Can any one

  • Question: Migration from Tibco BW to SAP XI

    I have been actively involved in TIBCO BW projects as project co-ordinator for the past year. Now i am thinking of shifting into SAP XI. I am assuming that SAP XI has the same underlying concept as TIBCO BW. Is my assumption correct? If yes then how

  • Multiple facts

    Hi All,      I have one doubt, I have F1 fact connect  D1&D2 dimensions.And F2 fact connect with D3 dimensions.In report we need F1 D1 F2 & D3 tables only.How can we do .Give reply anybody..........