Business area in BAPI 'BAPI_GOODSMVT_CREATE'
Hi!
I'm using BAPI 'BAPI_GOODSMVT_CREATE' to do a Goods issue (transaction MB1A) and I need to know where can I find the Busines Area which is required in this transaction.
This field is not available in table with item data. Does anybody have any idea?
Thanks in advance!
Juan
Hi Naren.
Yes, I checked that field.
Field TR_PART_BA is Trading partner's business area, but I need just Business area. As I know, both fields are different. Aren't they?
Juan
Finally I had to use a batch input. Thanks all.
Message was edited by:
Juan Cardona
Similar Messages
-
Dear Experts
I am using this two BAPIs. for Invoice creation
BAPI_INCOMINGINVOICE_CREATE for MIRO Invoice
BAPI _ ACC _ INVOICE _ RECEIPT _ POST for FB60 invoice creation,
In this I am facing Problem to Pass Business area, in BAPI _ ACC _ INVOICE _ RECEIPT _ POST no Business area field found (for vender line Item) this is required for us
and in this bapi '' BAPI_INCOMINGINVOICE_CREATE '' business area field is available when I pass value in that it is asking Profit center in Header Data
kindly help me to solve this very urgent
Regards
Sathish JHi Meridius
I am having a similar problem to the one which you described in this thread. Tax is not calculated when I use BAPI_ACC_INVOICE_RECEIPT_POST for vendor invoice postings.
If you want more details regarding my problem, please look at the following thread:
VAT error when posting with BAPI_ACC_INVOICE_RECEIPT_POST
Will you please help me?
Sephiroth -
Error while using BAPI BAPI_GOODSMVT_CREATE for Momvent type 321
Hi Guys,
We trying to transfer material from Inspection to Un.Stock by using momvent type 321...In SAP we do QVM1 and do stock postion.
We are using BAPI BAPI_GOODSMVT_CREATE getting this error " E QA 495 Change the inspection stock of material 11036125 in QM only".
Any one have any idea how to overcome this issue.
AtulHi Sachin,
Pass the Item Number of Reservation to GOODSMVT_ITEM-RES_ITEM .
Regards
DKS -
BAPI to update Business Area in table BSEG and BSAD
Hi,
Is there any BAPI that will update the field Business Area in table BSEG and BSAD?
Thanks,
Ekit
Moderator: Please, search SDNHi,
You can not update the business area in the posted documents.
You need to reverse them and have to recreate.
Regards,
Gaurav -
Regarding : bapi BAPI_GOODSMVT_CREATE
Hi Experts,
I have to use bapi BAPI_GOODSMVT_CREATE with GOODSMVT_CODE = 04. for the transfer posting of articles from unrestricted to block status.
The movement type for customer return is 252 and i have to execute the 344 movement type for such articles using this bapi.
Can anyone help me as to how to use this bapi, how to populate the item table etc.
Thanks,
NaveenHi,
Check the links
[http://www.sap-img.com/abap/bapi-goodsmvt-create-to-post-goods-movement.htm]
[http://www.sap-img.com/abap/bapi-goodsmvt-create-to-post-goods-movement.htm]
They will give you idea.
and please resolve your post as soon as they are answered. Keeping more than 10 unresolved post is against the rule of engagement. Moderator may lock your thread or account.
Name: Naveen Sharma - View user's Business Card
Registered: Mar 1, 2007
Total Posts: 39
Total Questions: 35 (34 unresolved)
Forum Points: 0
Reagrds,
Anirban -
Z1-015 Error "Enter Business Area" in BAPI_INCOMINGINVOICE_CREATE
Hi All,<br/><br/>
Here is a scenario that has totally confused me and I don't know what to do. Any guidance in this area will be highly appreciated.<br/><br/>
I am using BAPI BAPI_INCOMINGINVOICE_CREATE for MIRO. Our client gets invoices that contains both PO lines and some Non PO lines. For the PO lines I am populating the BAPI_INCINV_CREATE_ITEMDATA table and for the non po lines I am populating the BAPI_INCINV_CREATE_GL_ACCOUNTDATA table. In the structure BAPI_INCINV_CREATE_GL_ACCOUNT I am also populating the Bus_Area field with the Business Area value along with other values. The header Bus_Area is also populated with business area code. <br/><br/>
However, when I try to post the invoice the bapi return me a message: Z1 015 "Enter Business Area" and the invoice does not get booked in SAP, <br/><br/>
I have tried searching this forum and also googled about it, but I got no help in this regard. Please help me out in understanding this problem. I am attaching the code below for ease of understanding my problem. I am using SAP .Net Connector for the purpose. However, any guide related to this error (may not be .Net specific) will be appreciated.<br/><br/>
//objects used for creating the invoice ****<br/>
BAPI_INCINV_CREATE_ADDRESSDATA Addressdata = new BAPI_INCINV_CREATE_ADDRESSDATA();<br/>
BAPI_INCINV_CREATE_HEADER Headerdata = new BAPI_INCINV_CREATE_HEADER();<br/>
BAPI_INCINV_CREATE_ACCOUNTTable Accountingdata = new BAPI_INCINV_CREATE_ACCOUNTTable();<br/>
BAPI_INCINV_CREATE_ACCOUNT Account = new BAPI_INCINV_CREATE_ACCOUNT();<br/>
BAPI_INCINV_CREATE_ITEMTable Itemdata = new BAPI_INCINV_CREATE_ITEMTable();<br/>
BAPI_INCINV_CREATE_GL_ACCOUNTTable Glaccountdata = new BAPI_INCINV_CREATE_GL_ACCOUNTTable();<br/>
BAPI_INCINV_CREATE_GL_ACCOUNT Glaccount = new BAPI_INCINV_CREATE_GL_ACCOUNT();<br/>
BAPI_INCINV_CREATE_MATERIALTable Materialdata = new BAPI_INCINV_CREATE_MATERIALTable();<br/>
BAPIRET2Table InvReturn = new BAPIRET2Table();<br/>
BAPI_INCINV_CREATE_TAXTable Taxdata = new BAPI_INCINV_CREATE_TAXTable();<br/>
BAPI_INCINV_CREATE_VENDORSPLITTable Vendoritemsplitdata = new BAPI_INCINV_CREATE_VENDORSPLITTable();<br/>
BAPI_INCINV_CREATE_WITHTAXTable Withtaxdata = new BAPI_INCINV_CREATE_WITHTAXTable();<br/>
// ****<br/>
// populating the header<br/>
Headerdata.Bus_Area = invoice.BusinessArea;<br/>
Headerdata.Comp_Code = invoice.CompanyCode;<br/>
Headerdata.Doc_Date = invoice.InvoiceDate;<br/>
Headerdata.Doc_Type = "RE";<br/>
Headerdata.Diff_Inv = invoice.VendorID;<br/>
Headerdata.Currency = invoice.Currency;<br/>
Headerdata.Exch_Rate = 1.00M; // to be replaced<br/>
Headerdata.Gross_Amount = invoice.InvoiceAmount;<br/>
Headerdata.Header_Txt = "";<br/>
Headerdata.Invoice_Ind = "X"; // X = Invoice , '' = Credit Memo<br/>
Headerdata.Inv_Rec_Date = invoice.DateReceived;<br/>
Headerdata.Pmnttrms = invoice.PaymentTerm;<br/>
if (invoice.IsMatched == "0")<br/>
Headerdata.Pmnt_Block = "A"; // in case the IsMatch Status = 0<br/>
Headerdata.Pstng_Date = invoice.PostingDate;<br/>
Headerdata.Calc_Tax_Ind = "X";<br/>
Headerdata.Del_Costs = 0.00M;<br/>
Headerdata.Ref_Doc_No = invoice.InvoiceNumber;<br/>
Headerdata.Inv_Year = "0000";<br/><br/>
// populating the line<br/>
List<Invoice.LineItem> lines = invoice.LineItems.Where(item => item.PONumber.Trim() != String.Empty).ToList();<br/>
int itemCount = 0, accSlNo = 0;<br/>
foreach (Invoice.LineItem line in lines)<br/>
{<br/>
itemCount++;<br/>
string strItemNo = FillCharacter(itemCount.ToString(), "0", 6);<br/>
BAPI_INCINV_CREATE_ITEM Item = new BAPI_INCINV_CREATE_ITEM();<br/>
Item.Invoice_Doc_Item = strItemNo;<br/>
Item.Po_Number = line.PONumber;<br/>
Item.Item_Amount = line.Amount;<br/>
Item.Quantity = line.Quantity;<br/>
Item.Po_Item = FillCharacter(line.PO_LineNo, "0", 5);<br/>
Item.Po_Unit = line.PO_Unit;<br/>
Item.Po_Unit_Iso = line.PO_Unit_Iso;<br/>
Item.Tax_Code = line.TaxCode;<br/>
Item.Cond_St_No = "000";<br/>
Item.Cond_Count = "00";<br/><br/>
Item.Ref_Doc_It = "0000";<br/>
Item.Ref_Doc_Year = "0000";<br/><br/>
Item.Po_Pr_Qnt = Convert.ToDecimal(Po_item["Quantity"]);<br/>
Item.Po_Pr_Uom = Po_item["Orderpr_Un"].ToString();<br/>
Item.Po_Pr_Uom_Iso = Po_item["Orderpr_Un_Iso"].ToString();<br/><br/>
Itemdata.Add(Item);<br/><br/>
}<br/>
// populating the GL Accounts for the non PO and PM lines where the PO number will be blank<br/>
List<Invoice.LineItem> nonPOlines = invoice.LineItems.Where(item => item.PONumber.Trim() == String.Empty && item.LineItemType == "L").ToList();<br/>
itemCount = 0;<br/>
foreach (Invoice.LineItem line in nonPOlines)<br/>
{<br/>
int multiplier = 1;<br/>
itemCount++;<br/>
Glaccount = new BAPI_INCINV_CREATE_GL_ACCOUNT();<br/>
Glaccount.Invoice_Doc_Item = FillCharacter(itemCount.ToString(), "0", 6);<br/>
Glaccount.Db_Cr_Ind = "S"; // debit<br/>
Glaccount.Neg_Postng = "";<br/>
if (line.Amount < 0.00M)<br/>
{<br/>
Glaccount.Neg_Postng = "X";<br/>
Glaccount.Db_Cr_Ind = "H"; // credit<br/>
multiplier = multiplier * -1;<br/>
}<br/>
Glaccount.Comp_Code = invoice.CompanyCode;<br/>
Glaccount.Item_Text = line.Description;<br/>
Glaccount.Item_Amount = line.Amount * multiplier;<br/>
Glaccount.Gl_Account = line.GLCode;<br/>
Glaccount.Costcenter = line.CC;<br/>
Glaccount.Profit_Ctr = line.PC;<br/>
Glaccount.Orderid = line.OrderNo;<br/>
Glaccount.Tax_Code = line.TaxCode;<br/>
Glaccount.Bus_Area = line.BA;<br/>
Glaccount.Person_No = "00000000";<br/>
Glaccount.Sdoc_Item = "000000";<br/>
Glaccount.Ref_Date = "00000000";<br/>
Glaccount.Wbs_Elem = "00000000";<br/>
Glaccount.Profit_Segm_No = "0000000000";<br/>
Glaccount.Alloc_Nmbr = line.Assignment;<br/>
Glaccount.Tr_Part_Ba = line.BA;<br/>
Glaccount.Activity = "";<br/>
Glaccount.Acttype = "";<br/>
Glaccount.Cmmt_Item = "";<br/>
Glaccount.Cmmt_Item_Long = "";<br/>
Glaccount.Co_Busproc = "";<br/>
Glaccount.Costobject = "";<br/>
Glaccount.Func_Area = "";<br/>
Glaccount.Func_Area_Long = "";<br/>
Glaccount.Fund = "";<br/>
Glaccount.Funds_Ctr = "";<br/>
Glaccount.Network = "";<br/>
Glaccount.Rl_Est_Key = "";<br/>
Glaccount.Sd_Doc = "";<br/>
Glaccount.Grant_Nbr = "";<br/><br/>
Glaccountdata.Add(Glaccount);<br/>
}<br/>
proxyPOInvoice.Bapi_Incominginvoice_Create(Addressdata, Headerdata, out FiscalYear, out InvoiceNumber,<br/>
ref Accountingdata, ref Glaccountdata, ref Itemdata, ref Materialdata, ref InvReturn, ref Taxdata, ref Vendoritemsplitdata, ref Withtaxdata);<br/>Hi,
This error was mis leading. If CalculateTax flag is set to 'X' and there is balance in the transaction currency then, instead of giving "Balance in transaction currency" error "Enter Business Area" error comes.
There must be some logic for SAP to give this error, but it was somewhat misleading. When i removed the flag for CalculateTax="", this error vanished and "Balance in transaction currency" error came. When I retrified that my invoice got booked properly.
Thanks to all anyway for the responses provided.
Best Regards
Sutirtha -
Creation of GR from Contract using bapi BAPI_GOODSMVT_CREATE
Hi,
As per requirement I need to create a GR for Contract line item. I tried to create using BAPI BAPI_GOODSMVT_CREATE but It returns the error message. I tried with GM_CODE '05', so could you please let me know which are the parameters I need to pass to create GR?
Thanks,
Nishad ShahHi,
Populate header, code, item and return table
In header populate PSTNG_DATE ,DOC_DATE ,PR_UNAME(if u have additional information then pass those also)
In Item table MOVE_TYPE ,MVT_IND ,PO_NUMBER ,MATERIAL,PLANT ,STGE_LOC ,PO_ITEM = POITEM-PO_ITEM,ENTRY_QNT .
MVT_IND filed u can leave it as blank as GM_CODE is 05.
Regards,
Sajith -
Hi
How can I do the following?
I have 5 business areas defined in SAP. The 5th BA is not going to be running on SAP. Instead, we want to upload the G/L balances into SAP from its own legacy system at the end of every month/year. We will not mantain any master data of the 5th BA. Is that possible? How?
ThanksHi,
Good afternoon and greetings,
TxShuttle is a licensed software which can upload values from excel sheet into the SAP system. Alternatively you can create a bespoke program to call Document Post BAPI and post the entries into the books.
Please reward points if found useful.
Thanking you,
With kindest regards
Ramesh Padmanabhan -
How to update j_1ipart1 j_1ipart2 by using bapi BAPI_GOODSMVT_CREATE
i want to update records in j_1ipart1 , j_1ipart2 , rg1 as it gets updated when posting in MIGO with refer to excise incoice.
i want to do the same by using the bapi BAPI_GOODSMVT_CREATE. Any one who can help me out , for what are the steps involved .
thanks in advanceHi,
Refer the following SAP notes.
1. Note 485557 - BAPI_REQUISITION_CREATE: 'EXTENSIONIN' customer enhancements
2. Note 584902 - BAPI_REQUISITION_CHANGE: ExtensionIn not connected
3. Note 792132 - EBAN, EBKN: user-defined fields are not filled
Regards,
Harish -
Business Area error in BAPI_ACC_DOCUMENT_POST
I am using BAPI_ACC_DOCUMENT_POST to post an accounting document (FB50). In the header of BAPI parameter I pass BUS_ACT as 'RFBU'.
I am getting an error message Cost center belong to business area 'XXX' not 'YYY'. The reason is see for this error is there is a substitution rule defined saying if business area is blank, default this to 'YYY'. Business area is not passed through interface of BAPI, but business area 'XXX' is maintained in Cost Center master data.
In the case of BAPI, BAPI is getting the business area from substitution and during the function call 'K_COBL_CHECK' inside BAPI, the business area of G/L line item and business are from cost center is not matching.
But when the same is entered through FB50, its getting the business area from cost center and business area. Is there any SAP Note to solve this issue. Is any one aware of this.
Thanks
VishnuAnd if business area is blank (not maintained in cost center master) and you don't pass anything, BAPI works correctly right? If you could determine the business area , why not pass it to BAPI?
BAPI sometimes do have minor differences from online transactions.. I don't see it as a big issue.. you can look for OSS notes or see how others handled it... -
I can't see release business object in bapi explorer.
Hi,
i can't see my business object in bapi explorer which is already released.
Regards,
GurpritHello Gurprit
I am not sure whether customer BAPIs are displayed in the BAPI explorer at all. However, you could try to push the <i><b>button with the filter icon</b></i> and choose option "<b>All </b>(BAPIs)".
Regards
Uwe -
Business connector and BAPI ,java code
Guy's
we are having development project based on <b>Business
connector and bapi</b> for sales order creation,we are
going for function module /TECCOM/SALESORDER_SIMULATE
for Availability request ,i am not aware of using business
connector and bapi before,they are going for some java code,now i have to create java code and use this particualr BAPI,pls if somebody already worked on such issue,then help me with some material which will guide
me and help me in finishing this task easily,
<b>mail me at [email protected]</b>This is a very usefull link:
http://www.henrikfrank.dk/abapexamples/Java/ -
What are idocs, BAPI, RFC?
Hi,
What are idocs, BAPI, RFC?
Regards,
anujHii,
BAPIs and RFCs are the functions exposed by SAP, when it comes to the integration part, you have to know that particular BAPI or RFC. For example, if you want to get table data or want to query to the SAP table then you use RFC_READ_TABLE. Similarly if you want to know whether customer is existing, you need to know which RFC/BAPI has this info. May I know which tool are you using, are you talking about generating a proxy and playing around that.
Data Creation in Idoc
IDocs are text encoded documents with a rigid structure that are used to exchange data between R/3 and a foreign system. Instead of calling a program in the destination system directly, the data is first packed into an IDoc and then sent to the receiving system, where it is analyzed and properly processed. Therefore an IDoc data exchange is always an
asynchronous process. The significant difference between simple RFC-calls and IDoc data exchange is the fact, that every action performed on IDocs are protocolled by R/3 and IDocs can be reprocessed if an error occurred in one of the message steps.
While IDocs have to be understood as a data exchange protocol, EDI and ALE are typical use cases for IDocs. R/3 uses IDocs for both EDI and ALE to deliver data to the receiving system. ALE is basically the scheduling mechanism that defines when and between which partners and what kind of data will be exchanged on a regular or event triggered basis. Such a set-up is called an ALE-scenario.
IDoc is a intermediate document to exchange data between two SAP Systems.
*IDocs are structured ASCII files (or a virtual equivalent).
*Electronic Interchange Document
*They are the file format used by SAP R/3 to exchange data with foreign systems.
*Data Is transmitted in ASCII format, i.e. human readable form
*IDocs exchange messages
*IDocs are used like classical interface files
IDOC types are templates for specific message types depending on what is the business document, you want to exchange.
WE30 - you can create a IDOC type.
An IDOC with data, will have to be triggered by the application that is trying to send out the data.
FOr testing you can use WE19.
How to create idoc?
*WE30 - you can create a IDOC type
For more information in details on the same along with the examples can be viewed on:
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm#_Toc8400404
http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a6620507d11d18ee90000e8366fc2/frameset.htm
http://www.sappoint.com/presentation.html
http://www.allsaplinks.com/idoc_search.html
http://www.sapgenie.com/sapedi/idoc_abap.htm
http://www.erpgenie.com/sapedi/idoc_abap.htm
To Create Idoc we need to follow these steps:
Create Segment ( WE31)
Create Idoc Type ( WE30 )
Create Message Type ( WE81 )
Assign Idoc Type to Message Type ( WE82 )
Creating a Segment
Go to transaction code WE31
Enter the name for your segment type and click on the Create icon
Type the short text
Enter the variable names and data elements
Save it and go back
Go to Edit -> Set Release
Follow steps to create more number of segments
Create IDOC Type
Go to transaction code WE30
Enter the Object Name, select Basic type and click Create icon
Select the create new option and enter a description for your basic IDOC type and press enter
Select the IDOC Name and click Create icon
The system prompts us to enter a segment type and its attributes
Choose the appropriate values and press Enter
The system transfers the name of the segment type to the IDOC editor.
Follow these steps to add more number of segments to Parent or as Parent-child relation
Save it and go back
Go to Edit -> Set release
Create Message Type
Go to transaction code WE81
Change the details from Display mode to Change mode
After selection, the system will give this message The table is cross-client (see Help for further info). Press Enter
Click New Entries to create new Message Type
Fill details
Save it and go back
Assign Message Type to IDoc Type
Go to transaction code WE82
Change the details from Display mode to Change mode
After selection, the system will give this message The table is cross-client (see Help for further info). Press Enter.
Click New Entries to create new Message Type.
Fill details
Save it and go back
Check these out..
Re: How to create IDOC
Check below link. It will give the step by step procedure for IDOC creation.
http://www.supinfo-projects.com/cn/2005/idocs_en/2/
ALE/ IDOC
http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
http://www.sapgenie.com/sapedi/index.htm
http://www.sappoint.com/abap/ale.pdf
http://www.sappoint.com/abap/ale2.pdf
http://www.sapgenie.com/sapedi/idoc_abap.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm
http://www.allsaplinks.com/idoc_sample.html
http://www.sappoint.com/abap.html
http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
http://www.sapgenie.com/sapedi/index.htm
http://www.allsaplinks.com/idoc_sample.html
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.docs
go trough these links.
http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
http://www.sapgenie.com/sapedi/index.htm
http://www.sappoint.com/abap/ale.pdf
http://www.sappoint.com/abap/ale2.pdf
http://www.sapgenie.com/sapedi/idoc_abap.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm
http://www.allsaplinks.com/idoc_sample.html
http://www.sappoint.com/abap.html
http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
http://www.sapgenie.com/sapedi/index.htm
http://www.allsaplinks.com/idoc_sample.html
http://http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
An IDoc is simply a data container that is used to exchange information between any two processes that can understand the syntax and semantics of the data...
1.IDOCs are stored in the database. In the SAP system, IDOCs are stored in database tables.
2.IDOCs are independent of the sending and receiving systems.
3.IDOCs are independent of the direction of data exchange.
The two available process for IDOCs are
Outbound Process
Inbound Process
AND There are basically two types of IDOCs.
Basic IDOCs
Basic IDOC type defines the structure and format of the business document that is to be exchanged between two systems.
Extended IDOCs
Extending the functionality by adding more segments to existing Basic IDOCs.
To Create Idoc we need to follow these steps:
Create Segment ( WE31)
Create Idoc Type ( WE30)
Create Message Type ( WE81)
Assign Idoc Type to Message Type ( WE82)
imp links
http://www.allsaplinks.com/idoc_sample.html
http://www.sapgenie.com/sapedi/idoc_abap.htm
www.sappoint.com
--here u can find the ppts and basic seetings for ALE
http://sappoint.com/presentation.html
www.sapgenie.com
http://www.sapgenie.com/ale/index.htm
WE30 - you can create a IDOC type.
An IDOC with data, will have to be triggered by the application that is trying to send out the data.
Try this..Hope this will help.
SAP ALE & IDOC<<<<
Steps to configuration(Basis) >>
1. Create Logical System (LS) for each applicable ALE-enabled client
2. Link client to Logical System on the respective servers
3. Create background user, to be used by ALE(with authorizaton for ALE postings)
4. Create RFC Destinations(SM59)
5. Ports in Idoc processing(WE21)
6. Generate partner profiles for sending system
The functional configuration(Tcode: SALE)
Create a Customer Distribution Model (CDM);
Add appropriate message types and filters to the CDM;
Generate outbound partner profiles;
Distribute the CDM to the receiving systems; and
Generate inbound partner profiles on each of the clients.
Steps to customize a new IDoc >>>
1. Define IDoc Segment (WE31)
2. Convert Segments into an IDoc type (WE30)
3. Create a Message Type (WE81)
4. Create valid Combination of Message & IDoc type(WE82)
5. Define Processing Code(WE41 for OUT / WE42 for IN)
6. Define Partner Profile(WE20)
Important Transaction Codes:
SALE - IMG ALE Configuration root
WE20 - Manually maintain partner profiles
BD64 - Maintain customer distribution model
BD71 - Distribute customer distribution model
SM59 - Create RFC Destinations
BDM5 - Consistency check (Transaction scenarios)
BD82 - Generate Partner Profiles
BD61 - Activate Change Pointers - Globally
BD50 - Activate Change Pointer for Msg Type
BD52 - Activate change pointer per change.doc object
BD59 - Allocation object type -> IDOC type
BD56 - Maintain IDOC Segment Filters
BD53 - Reduction of Message Types
BD21 - Select Change Pointer
BD87 - Status Monitor for ALE Messages
BDM5 - Consistency check (Transaction scenarios)
BD62 - Define rules
BD79 - Maintain rules
BD55 - Defining settings for IDoc conversion
WEDI - ALE IDoc Administration
WE21 - Ports in Idoc processing
WE60 - IDoc documentation
SARA - IDoc archiving (Object type IDOC)
WE47 - IDoc status maintenance
WE07 - IDoc statistics
BALE - ALE Distribution Administration
WE05 - IDoc overview
BD87 - Inbound IDoc reprocessing
BD88 - Outbound IDoc reprocessing
BDM2 - IDoc Trace
BDM7 - IDoc Audit Analysis
BD21 - Create IDocs from change pointers
SM58 - Schedule RFC Failures
Basic config for Distributed data:
BD64: Maintain a Distributed Model
BD82: Generate Partner Profile
BD64: Distribute the distribution Model
Programs
RBDMIDOC Creating IDoc Type from Change Pointers
RSEOUT00 Process all selected IDocs (EDI)
RBDAPP01 - Inbound Processing of IDocs Ready for Transfer
RSARFCEX - Execute Calls Not Yet Executed
RBDMOIND - Status Conversion with Successful tRFC Execution
RBDMANIN - Start error handling for non-posted IDocs
RBDSTATE - Send Audit Confirmations
FOr testing you can use WE19.
BAPI
BAPI Programming guide: -
http://help.sap.com/saphelp_nw04/helpdata/en/e0/9eb2370f9cbe68e10000009b38f8cf/frameset.htm
BAPI user guide: -
http://help.sap.com/saphelp_46c/helpdata/en/7e/5e115e4a1611d1894c0000e829fbbd/frameset.htm
BAPI STEP BY STEP PROCEDURE: -
http://www.sap-img.com/abap/bapi-step-by-step-guidance.htm
Example:-
http://www.erpgenie.com/abap/bapi/example.htm
PDF download: -
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/200dd1cc-589e-2910-98a9-bb2c48b78dfa
list of all bapis
http://www.planetsap.com/LIST_ALL_BAPIs.htm
for BAPI's
http://www.sappoint.com/abap/bapiintro.pdf
http://www.sappoint.com/abap/bapiprg.pdf
http://www.sappoint.com/abap/bapiactx.pdf
http://www.sappoint.com/abap/bapilst.pdf
http://www.sappoint.com/abap/bapiexer.pdf
http://service.sap.com/ale
http://service.sap.com/bapi
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE8/BCFESDE8.pdf
http://www.planetsap.com/Bapi_main_page.htm
http://www.topxml.com/sap/sap_idoc_xml.asp
http://www.sapdevelopment.co.uk/
http://www.sapdevelopment.co.uk/java/jco/bapi_jco.pdf
Also refer to the following links..
http://www.sap-img.com/bapi.htm
http://www.sap-img.com/abap/bapi-conventions.htm
http://www.planetsap.com/Bapi_main_page.htm
http://www.sapgenie.com/abap/bapi/index.htm
Checkout !!
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
http://techrepublic.com.com/5100-6329-1051160.html#
BADI
Check these links on BADI
http://www.esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
http://www.esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
http://www.esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
http://www.esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
http://www.esnips.com/doc/3b7bbc09-c095-45a0-9e89-91f2f86ee8e9/BADI-Introduction.ppt
Check this link for advantage of BADIs over User exits
http://www.sap-img.com/abap/difference-between-badi-and-user-exits.htm
Reward points if useful.
Regards,
Sushama -
Goods issue using bapi BAPI_GOODSMVT_CREATE getting error E M7
HI consultants,
While posting goods issue using bapi BAPI_GOODSMVT_CREATE . Running the batch job(zprogram) to post the goods issue . The goods issue is been posted by passing goods receipt data's.
while processing 3 goods receipt , 2 works fine one goods receipt getting E M 7 300 NO ITEMS ARE TRANSFERED error.
when i processing one by one all the 3 goods receipt is working fine and process sucessfully. While processing in bulk ,i am getting this issue.
If anybody faces this same problem or knows the solution .Please post the answer.
The way i am passing the parameter to bapi given bellow.
WA_GOODSMVT_CODE-GM_CODE = C_03.
*--populate header data
WA_GOODSMVT_HEADER-DOC_DATE = WA_MKPF-BLDAT.
WA_GOODSMVT_HEADER-PSTNG_DATE = WA_MKPF-BUDAT.
*--populate item data
*-- call the bapi for posting goods issue
IT_GOODSMVT_ITEM-NETWORK = WA_RESBP-AUFNR.
IT_GOODSMVT_ITEM-RESERV_NO = WA_RESBP-RSNUM.
IT_GOODSMVT_ITEM-RES_ITEM = WA_RESBP-RSPOS.
IT_GOODSMVT_ITEM-ACTIVITY = WA_RESBP-VORNR.
IT_GOODSMVT_ITEM-MOVE_TYPE = C_281.
IT_GOODSMVT_ITEM-ENTRY_QNT = WA_RESBP-NET.
*--get the item details
IT_GOODSMVT_ITEM-MATERIAL = WA_MSEG-MATNR.
IT_GOODSMVT_ITEM-PLANT = WA_MSEG-WERKS.
IT_GOODSMVT_ITEM-STGE_LOC = WA_MSEG-LGORT.
IT_GOODSMVT_ITEM-ENTRY_UOM = WA_MSEG-ERFME.
CALL FUNCTION 'CONVERSION_EXIT_ABPSP_OUTPUT'
EXPORTING
INPUT = WA_MSEG-PS_PSP_PNR
IMPORTING
OUTPUT = WA_PSPHI_TEMP.
IT_GOODSMVT_ITEM-WBS_ELEM = WA_PSPHI_TEMP.
APPEND IT_GOODSMVT_ITEM.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
GOODSMVT_HEADER = WA_GOODSMVT_HEADER
GOODSMVT_CODE = WA_GOODSMVT_CODE
IMPORTING
MATERIALDOCUMENT = WA_MATERIALDOCUMENT
TABLES
GOODSMVT_ITEM = IT_GOODSMVT_ITEM
RETURN = IT_RETURN.
With Regards,
Ambrose Mohandoss.Problem solved.
-
BAPI BAPI_GOODSMVT_CREATE for Transaction MB01
Hi All,
I am using BAPI BAPI_GOODSMVT_CREATE for transaction MB01.
I have one problem while passing the value in BAPI.
Goods receipts for Schedule Agreements are not allow for delivery schedule lines with delivery date in the future.
Manual turn around for transaction MB01 is to check field "Suggest Zero Lines" from main selection screen:
I am not able to get the field name in BAPI for filling the value for check field "Suggest Zero Lines".
Kindly help me to find out the field name.
Thanks in advance.
Piyush Mathurdata flag(1) value 'X'.
set parameter ID 'NUL' field flag.
u can set the parameter 'Suggest zero lines' as 'X' by default and then call ur bapi..see if tht field is X now or not?
otherwise it can be possible tht u r not using the correct BAPI
amit
Maybe you are looking for
-
Error while trying to change settings in SALE
Hi I am trying to trigger Idocs from QAS, ECC to XI. There are some problems with the settings. I went to SALE -.> Logical System --> Define Logical System and reach " Display Logical Systems OverView screen. Here under the Logical Systems, I don't
-
what are the settings for the outgoing mail server for icloud on Outlook for Mac, what are the settings for the outgoing mail server for icloud on Outlook for Mac
-
Document Listener for JTextArea in JTable
I am trying to implement a DocumentListener for JTextArea in JTable, but its not happening. Can someone tell me what's wrong. SSCCE below. import java.awt.Component; import java.awt.Dimension; import java.awt.event.WindowAdapter; import java.awt.even
-
Error: You're browser does not support AJAX
I am running my business software and I continue to get this error. I have safari, google chrome and firefox, but they all give me the same error. Any help? Is there some kind of plug-in or something that will allow me to use AJAX? Please help.
-
Command-Line question. Delete all but particular folders
Hello. I need to create a batch file that will delete all folders within the "Users" folder except for the Administrator and Administrator.domainname. Can anyone help? Thanks