- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Error while posting a sales order in SAP from .net application
Note that sold to party and ship to party are mandate fields. You need to add the created structures and tables to the function as shown in below code:
RfcRepository repo = destination.Repository; IRfcFunction salesDoc = repo.CreateFunction("BAPI_SALESORDER_CREATEFROMDAT1"); IRfcStructure salesHeader = salesDoc.GetStructure("ORDER_HEADER_IN"); salesHeader.SetValue("DOC_TYPE", "ZDLR"); salesDoc.SetStructure(salesHeader); salesDoc.Invoke(destination);
For more details you can check BAPI_SALESORDER_CREATEFROMDAT1 or below link:
BAPI_SALESORDER_CREATEFROMDAT1
Advertisements