BAPI with XI
Hi Everyone,
What r the things that should be taken into consideration with a SAP BAPI involved in the scenario?
As the SAP BAPIs will not have any COMMIT WORK statement.
What will happen if that statement is not there? What should be done in this case?
-Naveen.
Hi Naveen,
If the BAPI that you are using does not have COMMIT WORK statement in it, wrap the BAPI in a custom RFC function which has the Commit Work statement. I dont think it will work without the commit work statement. Go through this blog by michal where FM Z_BAPI_GOODSMVT_CREATE_BGROUND
is the wrapper for the BAPI:-
/people/michal.krawczyk2/blog/2005/05/09/how-to-call-a-bapi-asynchronously-from-xi--with-qrfc
:What r the things that should be taken into consideration with a SAP BAPI involved in the scenario?"
Do have a look at the following blogs...they might help you..
/people/swaroopa.vishwanath/blog/2005/03/11/rfc-migration-to-bapi-in-r3--step-by-step
/people/sap.user72/blog/2004/07/19/navigating-the-maze-of-integration
Regards,
Sushumna
Similar Messages
-
JCA IConnection call to BAPI with table in table as import and export param
Is it possible to call a BAPI with a table in table as import and export data?
Please give small code example if this is possible.
Thanks in advance.Inner tables can be handled with:
IRecordSet innerTable = (IRecordSet)outerTable.getObject("INNER_TABLE"); -
Hi gurus, can any one explain me about Badi & Bapi with eg.?
Hi gurus,
Can any one explain me about Badi & Bapi with examples.
Regards
RaghuHi Raghu
1) Badis means:
The BAdIs of the enhancement concept are not treated as standalone objects, but are integrated in the overall concept. Thus, the tools for defining BAdIs are part of the Enhancement Builder included in the ABAP Workbench.
Transaction SE18, up to now the only entry point for defining classic BAdIs, now manages classic and new BAdIs. When an existing BAdI is displayed or changed, it analyzes whether the BAdI is a classic or a new one, and then switches to the respective tool. In the case of a new BAdI, this tool is the enhancement spot editor
2) Bapis means:
BAPIs can be called within the R/3 System from external application systems and other programs. BAPIs are the communication standard for business applications. BAPI interface technology forms the basis for the following developments:
Connecting:
New R/3 components, for example, Advanced Planner and Optimizer (APO) and Business Information Warehouse (BW).
Non-SAP software
Legacy systems
Isolating components within the R/3 System in the context of Business Framework
Distributed R/3 scenarios with asynchronous connections using Application Link Enabling (ALE)
Connecting R/3 Systems to the Internet using Internet Application Components (IACs)
PC programs as frontends to the R/3 System, for example, Visual Basic (Microsoft) or Visual Age for Java (IBM).
Workflow applications that extend beyond system boundaries
Customers' and partners' own developments
Thanks
Trinath -
How to use BAPI with Decision Dialogue
Hi Gurus
would you please let me know how to use BAPI with decision dialogue in guided procedure .
I have a BAPI checking logon credentials for the user . how to use this BAPI for making decisions that is if the logon is correct then perform one process else go to logon screen again .
Thanks in advance
Regards NamitaHi Namita,
1. Follow the steps mentioned in section <a href="http://help.sap.com/saphelp_crm50/helpdata/en/33/198141f906040de10000000a1550b0/frameset.htm">Exposing an RFC-Enabled Function Module as a Callable Object</a> to use the BAPI as a Callable Object.
2. Follow the steps mentioned in tutorial # 93 and 93a in the CAF Tutorial Center for the decision part.
Hope these helps.
Nilay -
I want purchase order bdc or bapi with full solution
hi,
if any one have purchase order bdc or bapi with full solution . plz send me .
thanking u,hi
Just take all required fields to create PO into one internal table . Just use BAPI_PO_CREATE1 function module. In that function module give internal table name. It will create the PO. Extra decorations like error messages and all you need to take care.
Reward if it helpful.
Thanks
Siva Kumar -
SAP HR related IDOC and BAPI with description
Hi,
This is regarding SAP HR. Here I need some help from you guys.
It would be great if you could provide list of SAP HR related IDOC and BAPI with description.
If you have any document then please forward same to [email protected]
Thanks,
Sunil Bhavsarhello Sunil ,
to find BAPIs realted to HR,use transaction BAPI and there u have to look for personnel management,time etc ,these all are HR related.
HR related Idocs shud be having Message type like HR*.
hope thts wht u needed.
amit -
can we do File---> BAPI with out BPM
Which version of XI you are using??
XI 3.0 or PI 7.0?? and SP for it?
Reffer this File to RFC Scenario without BPM
FOr solution reffer this : File - RFC - File without a BPM - Possible from SP 19.
Thanks
Farooq. -
BAPI with RFC enables creation and mapping required settings
Dear Experts,
My client is having their old legacy system in .Net .
Now their requirement is whenever they will create Vendor in their system that created vendor entry should be created automatically in SAP.
I dont know about BAPI and RFC and how it will work.
I will try to go up to the creation of BAPI with RFC enabled.
But to map their requirement what Steps and Setting need to be done in SAP as well as in their Legacy system (.Net).
Please guide me to solve the issue.
Regards,
Sanket.closed
-
Importing BAPI with Import parameter Type Structure
Hi All,
I am importing BAPI as shown below:
FUNCTION ZTEST_BAPIOC.
""Local interface:
*" IMPORTING
*" VALUE(A1) TYPE ZLEVEL1 OPTIONAL
*" EXPORTING
*" VALUE(M1) TYPE CHAR10
Where ZLEVEL1 is Structure which contains many appended structures.
ZLEVEL1 (SAP SE11 Structure)
-ZLEVEL2A
-ZLEVEL2B
ZLEVEL2A (SAP SE11 Structure)
-ZLEVEL3A
ZLEVEL2B (SAP SE11 Structure)
-FIELD1
-FIELD2
ZLEVEL3A (SAP SE11 Structure)
-FIELD3
-FIELD4
But after importing BAPI in XI I can see only A1 as follows :
Structure--Category---Type
ZTEST_BAPIOC------Element
A1--Element----ZLEVEL1
For mapping to target I need whole structure on BAPI & ZLEVEL1.
<b>Please help how to Import Or Design Strucure of BAPI with Import parameters Type as Structures?</b>
Thanks & RegardsHi,
Thanks for Reply.
Actually User ID I used for importing BAPI having some missing authorization.
After getting Authorization I can see full structure of BAPI in XI.
Thanks & Regards -
hi expert's ,
i wanted to know how we can do bapi with java ...?
how we can retrive data from java.
means what will be the coding for java?
may be m not able to explain but plz help me with this...
Regards
Pankaj.Hi
lets see if this helps.
Calling BAPIs from Java
This is an example program for calling a BAPI from the IBM development platform, Access Builder for SAP R/3.
Detailed program examples are shipped with the Access Builder for R/3.
Access Builder for SAP R/3
//Importing the required classes:
import com.sap.rfc.*;
import com.sap.rfc.exception.*;
import com.ibm.sap.bapi.*;
import com.ibm.sap.bapi.generated.*;
//Connecting to the R/3 System:
static private IRfcConnection establishConnection(MiddlewareInfo aMiddlewareInfo)
throws JRfcRemoteException
IRfcConnection aConnection = null ;
ConnectInfo aConnectInfo = null ;
UserInfo aUserInfo = null ;
String orbServerName = aMiddlewareInfo.getOrbServerName() ;
// Please adjust the values written in UPPERCASE LETTERS
// in the lines below so that they fit to your needs!
// If you don't know the correct values ask your system
// administrator!
// After correcting these values you should change the
// <bAdjusted> variable in the following line
// from "false" to "true".
// Then you can re-compile ("javac SampleCompanyCode.java") and
// re-run ("java SampleCompanyCode -conn JNI") this sample...
boolean bAdjusted = true;
if (!bAdjusted) {
throw (new JRfcRfcConnectionException (
"Please adjust the Connection-Parameters to your
needs! (See method \"establishConnection\")"));
//Connection information:
aConnectInfo = new ConnectInfo (
3, // int aRfcMode 3=R/3 or 2=R/2
null, // String aDestination
"9.7.12.7", // String aHostName YOUR HOSTNAME (e.g. IP-
//address)
0, // int aSystemNo YOUR SYSTEM-NUMBER
null, // String aGatewayHost
null, // String aGatewayService
null, // String aSystemName
null, // String aGroupName
null, // String aMsgServer
false, // Boolean isLoadBalancing
true); // Boolean isCheckAuthorization
//User information:
aUserInfo = new UserInfo (
"MUSTER", // String aUserName, YOUR USERID
"IDES", // String aPassword, YOUR PASSWORD
"800", // String aClient, YOUR CLIENT NUMBER
"e", // String aLanguage, YOUR PREFERRED
//LANGUAGE
1103); // int aCodePage YOUR REQUIRED CODEPAGE
//Technical conversion for the selected middleware;
// Open connection:
IRfcConnectionFactory aConnectionFactory = FactoryManager.getSingleInstance().getRfcConnectionFactory() ;
aConnection = aConnectionFactory.createRfcConnection(aConnectInfo, aUserInfo) ;
aConnection.open() ;
//Returning the connection:
return aConnection ;
//Calling the main method:
public static void main (java.lang.String[] args)
//Setting up the connection using the selected middleware:
MiddlewareInfo aMiddlewareInfo = new MiddlewareInfo(args) ;
FactoryManager aFactoryManager = FactoryManager.getSingleInstance() ;
aFactoryManager.setMiddlewareInfo(aMiddlewareInfo) ;
//Initializing the connection object:
IRfcConnection aConnection = null ;
try
aConnection = establishConnection(aMiddlewareInfo) ;
catch (Exception ex)
System.out.println("ERROR : Could not create connection : " + ex) ;
System.exit(-1) ;
System.out.println("Connection established.");
// --- TEST CODE (start) -
try
printList(aConnection) ;
//Calling the BAPI:
//Declare an empty Object ID for the Business Object
//CompanyCode:
objectId = CompanyCode.getEmptyObjectId() ;
//Entering a value in the object ID:
objectId.getKeyField("COMPANYCODEID").setString("1000") ;
//Instantiate the object CompanyCode with the object ID:
companyCode = new CompanyCode(objectId) ; // Create 2nd
CompanyCode
System.out.println ("Successfully created new CompanyCode : '" + companyCode + "'") ;
printDetails(companyCode, aConnection) ;
// --- TEST CODE (end) -
catch (Exception ex)
System.out.println ("Unexpected exception occurred:");
System.out.println (ex);
private static void printDetails(CompanyCode companyCode, IRfcConnection connection)
try
//Declare the parameters of the BAPI CompanyCode.GetDetail:
CompanyCodeGetdetailParams aCompanyCodeGetdetailParams =
new CompanyCodeGetdetailParams() ;
//Aufruf des BAPIs CompanyCode.GetDetail auf die Objektinstanz:
companyCode.getdetail(connection, aCompanyCodeGetdetailParams);
//Splitting the parameter object into its separate components
//(Struktur):
Bapi0002_2Structure struct = aCompanyCodeGetdetailParams.getCompanycodeDetail() ;
System.out.println ("The details of the companycode are : ") ;
//Splitting the structure into individual fields:
System.out.println ("CompCode : '" + struct.getCompCode() + "'" );
System.out.println ("CompName : '" + struct.getCompName() + "'" );
System.out.println ("City1 : '" + struct.getCity() + "'" );
System.out.println ("Country1 : '" + struct.getCountry() + "'" );
System.out.println ("Currency : '" + struct.getCurrency() + "'" );
System.out.println ("Langu1 : '" + struct.getLangu() + "'" );
System.out.println ("ChrtAccts : '" + struct.getChrtAccts() + "'" );
System.out.println ("FyVariant : '" + struct.getFyVariant() + "'" );
System.out.println ("VatRegNo : '" + struct.getVatRegNo() + "'" );
System.out.println ("Company : '" + struct.getCompany() + "'" );
System.out.println ("AddrNo : '" + struct.getAddrNo() + "'" );
System.out.println() ;
catch (Exception ex)
System.out.println("Exception in printDetails() : " + ex) ;
return;
private static void printList(IRfcConnection connection)
try
//Declaring the parameter object:
CompanyCodeGetlistParams aCompanyCodeGetlistParams =
new CompanyCodeGetlistParams() ;
//Actual BAPI call:
CompanyCode.getlist(connection, aCompanyCodeGetlistParams);
//Splitting the parameter objects into its separate components
//(Table):
Bapi0002_1Table table = aCompanyCodeGetlistParams.getCompanycodeList();
int rowCount = table.getRowCount() ;
System.out.println ("Returned table has " + rowCount + " lines.");
//Evaluating the table row by row:
for (int i = 0; i < rowCount; i++)
Bapi0002_1TableRow row = table.getRow(i) ;
System.out.println("\t" + row.getCompCode() + "\t" + row.getCompName()) ;
System.out.println() ;
catch (Exception ex)
System.out.println("Exception in printList() : " + ex) ;
return;
Regards
Neha -
About bapi with help of example
about bapi with help of example plz dont give links.
With the correct customizing (order types, etc...) the following BAPI will create a PM order for you.
Naturally the master data is also required to be created in SAP (Technical objects, Work places, etc...)
*& Report Z_BAPI_ALM_ORDER_MAINTAIN_TEST *
REPORT z_bapi_alm_order_maintain_test.
TABLES: mara,
resb. "anyagfoglalások táblája
DATA: it_methods LIKE STANDARD TABLE OF bapi_alm_order_method,
wa_methods LIKE LINE OF it_methods.
DATA: it_header LIKE STANDARD TABLE OF bapi_alm_order_headers_i,
wa_header LIKE LINE OF it_header.
DATA: it_operation LIKE STANDARD TABLE OF bapi_alm_order_operation,
wa_operation LIKE LINE OF it_operation.
DATA: it_component LIKE STANDARD TABLE OF bapi_alm_order_component,
wa_component LIKE LINE OF it_component.
DATA: it_component_up LIKE
STANDARD TABLE OF bapi_alm_order_component_up,
wa_component_up LIKE LINE OF it_component_up.
DATA: et_numbers LIKE STANDARD TABLE OF bapi_alm_numbers,
wa_numbers LIKE LINE OF et_numbers.
DATA: et_extension_in LIKE STANDARD TABLE OF bapiparex,
wa_extension_in LIKE LINE OF et_extension_in.
DATA: et_return LIKE STANDARD TABLE OF bapiret2,
wa_return LIKE LINE OF et_return.
DATA: it_resb LIKE STANDARD TABLE OF resb,
wa_resb LIKE LINE OF it_resb.
DATA: lv_commit TYPE i.
PARAMETERS: p_test AS CHECKBOX DEFAULT 'X'.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: p_create RADIOBUTTON GROUP rg1 DEFAULT 'X'.
SELECTION-SCREEN COMMENT 4(30) text-rcr.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: p_change RADIOBUTTON GROUP rg1.
SELECTION-SCREEN COMMENT 4(30) text-rch.
PARAMETERS: p_aufnr LIKE aufk-aufnr MEMORY ID anr.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN SKIP.
PARAMETERS: p_compon AS CHECKBOX DEFAULT 'X'.
PARAMETERS: p_partn AS CHECKBOX DEFAULT 'X'.
START-OF-SELECTION.
IF p_aufnr IS INITIAL.
MOVE '007321002921' TO p_aufnr.
ENDIF.
PERFORM it_methods_fill.
PERFORM it_header_fill.
PERFORM it_operation_fill.
IF p_compon = 'X'.
PERFORM it_component_fill.
ENDIF.
REFRESH et_numbers.
break zaladev.
CALL FUNCTION 'Z_BAPI_ALM_ORDER_MAINTAIN'
TABLES
it_methods = it_methods
it_header = it_header
* IT_HEADER_UP =
* IT_HEADER_SRV =
* IT_HEADER_SRV_UP =
* IT_USERSTATUS =
* IT_PARTNER =
* IT_PARTNER_UP =
it_operation = it_operation
* IT_OPERATION_UP =
* IT_RELATION =
* IT_RELATION_UP =
it_component = it_component
it_component_up = it_component_up
* IT_TEXT = it_text
* IT_TEXT_LINES =
extension_in = et_extension_in
et_return = et_return
et_numbers = et_numbers.
CLEAR lv_commit.
LOOP AT et_return INTO wa_return.
IF wa_return-type = 'S' AND NOT wa_return-message_v2 IS INITIAL.
IF p_test IS INITIAL.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
lv_commit = 1.
ENDIF.
EXIT.
ENDIF.
ENDLOOP.
IF lv_commit IS INITIAL.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
ENDIF.
break zaladev.
*& Form it_methods_fill
* text
* --> p1 text
* <-- p2 text
FORM it_methods_fill.
IF p_create = 'X'. "LÉTREHOZÁS
MOVE '1' TO wa_methods-refnumber.
MOVE 'HEADER' TO wa_methods-objecttype.
MOVE 'CREATE' TO wa_methods-method.
MOVE '%00000000001' TO wa_methods-objectkey.
APPEND wa_methods TO it_methods.
MOVE '1' TO wa_methods-refnumber.
MOVE 'OPERATION' TO wa_methods-objecttype.
MOVE 'CREATE' TO wa_methods-method.
MOVE '%000000000010010' TO wa_methods-objectkey.
APPEND wa_methods TO it_methods.
MOVE '2' TO wa_methods-refnumber.
MOVE 'OPERATION' TO wa_methods-objecttype.
MOVE 'CREATE' TO wa_methods-method.
MOVE '%000000000010020' TO wa_methods-objectkey.
APPEND wa_methods TO it_methods.
MOVE '3' TO wa_methods-refnumber.
MOVE 'OPERATION' TO wa_methods-objecttype.
MOVE 'CREATE' TO wa_methods-method.
MOVE '%0000000000100200010' TO wa_methods-objectkey.
APPEND wa_methods TO it_methods.
MOVE '4' TO wa_methods-refnumber.
MOVE 'OPERATION' TO wa_methods-objecttype.
MOVE 'CREATE' TO wa_methods-method.
MOVE '%0000000000100200020' TO wa_methods-objectkey.
APPEND wa_methods TO it_methods.
IF p_compon = 'X'.
MOVE 1 TO wa_methods-refnumber.
MOVE 'COMPONENT' TO wa_methods-objecttype.
MOVE 'CREATE' TO wa_methods-method.
MOVE '%00000000001' TO wa_methods-objectkey.
APPEND wa_methods TO it_methods.
MOVE 2 TO wa_methods-refnumber.
MOVE 'COMPONENT' TO wa_methods-objecttype.
MOVE 'CREATE' TO wa_methods-method.
MOVE '%00000000001' TO wa_methods-objectkey.
APPEND wa_methods TO it_methods.
ENDIF.
MOVE '1' TO wa_methods-refnumber.
MOVE '' TO wa_methods-objecttype.
MOVE 'SAVE' TO wa_methods-method.
MOVE '%00000000001' TO wa_methods-objectkey.
APPEND wa_methods TO it_methods.
ELSE. "MÓDOSÍTÁS
MOVE '1' TO wa_methods-refnumber.
MOVE 'HEADER' TO wa_methods-objecttype.
MOVE 'CHANGE' TO wa_methods-method.
MOVE p_aufnr TO wa_methods-objectkey.
APPEND wa_methods TO it_methods.
IF p_compon = 'X'.
MOVE 1 TO wa_methods-refnumber.
MOVE 'COMPONENT' TO wa_methods-objecttype.
MOVE 'CHANGE' TO wa_methods-method.
MOVE p_aufnr TO wa_methods-objectkey.
APPEND wa_methods TO it_methods.
MOVE 2 TO wa_methods-refnumber.
MOVE 'COMPONENT' TO wa_methods-objecttype.
MOVE 'CHANGE' TO wa_methods-method.
MOVE p_aufnr TO wa_methods-objectkey.
APPEND wa_methods TO it_methods.
MOVE 3 TO wa_methods-refnumber.
MOVE 'COMPONENT' TO wa_methods-objecttype.
MOVE 'DELETE' TO wa_methods-method.
MOVE p_aufnr TO wa_methods-objectkey.
APPEND wa_methods TO it_methods.
ENDIF.
MOVE '1' TO wa_methods-refnumber.
MOVE '' TO wa_methods-objecttype.
MOVE 'SAVE' TO wa_methods-method.
MOVE p_aufnr TO wa_methods-objectkey.
APPEND wa_methods TO it_methods.
ENDIF.
ENDFORM. " it_methods_fill
*& Form it_header_fill
* text
* --> p1 text
* <-- p2 text
FORM it_header_fill .
IF p_create = 'X'. "LÉTREHOZÁS
MOVE '%00000000001' TO wa_header-orderid.
MOVE 'D210' TO wa_header-order_type. "rendelésfajta
MOVE '2000' TO wa_header-planplant. "tervező gyár
MOVE '19' TO wa_header-mn_wk_ctr. "fel.munkahely
MOVE '2000' TO wa_header-plant. "fel.munkahely gyára
MOVE 'CUV-SZV-CSUR-ATEM-I...' TO wa_header-funct_loc. "műsz.hely
MOVE '' TO wa_header-equipment. "berendezés
MOVE '' TO wa_header-material. "anyagszám
* MOVE '' TO wa_header-LOC_WK_CTR. "fel.munkahely
* MOVE '' TO wa_header-LOC_COMP_CODE. "vállalat
* MOVE sy-datum TO wa_header-START_DATE. "kezdés dátuma
* MOVE sy-datum TO wa_header-FINISH_DATE. "befejezés dátuma
* MOVE '' TO wa_header-BASICSTART. "kezdés időpontja
* MOVE '' TO wa_header-BASIC_FIN. "befejezés időpontja
MOVE 'Teszt szöveg 1' TO wa_header-short_text. "szöveg
APPEND wa_header TO it_header.
ELSE. "MÓDOSÍTÁS
MOVE p_aufnr TO wa_header-orderid.
MOVE 'CUV-SZV-CSUR-ATEM-II..' TO wa_header-funct_loc. "műsz.hely
MOVE 'Teszt szöveg módosítva 2' TO wa_header-short_text. "szöveg
APPEND wa_header TO it_header.
ENDIF.
ENDFORM. " it_header_fill
*& Form it_operation_fill
* text
* --> p1 text
* <-- p2 text
FORM it_operation_fill .
IF p_create = 'X'. "LÉTREHOZÁS
MOVE 10 TO wa_operation-activity. "művelet
MOVE '' TO wa_operation-sub_activity. "al-művelet
MOVE 'PM01' TO wa_operation-control_key. "vezérlő kulcs
* MOVE '19' TO wa_operation-WORK_CNTR. "munkahely
* MOVE '2000' TO wa_operation-PLANT. "gyár
MOVE '' TO wa_operation-standard_text_key. "mintakulcs
MOVE 'Művelet leírása 1.sor' TO wa_operation-description."leírás
MOVE '' TO wa_operation-vendor_no. "szállító
* MOVE 3 TO wa_operation-quantity. "mennyiség
* MOVE 'KG' TO wa_operation-base_uom. "menny.egys.
* MOVE 500 TO wa_operation-PRICE. "ár
* MOVE 1 TO wa_operation-PRICE_UNIT. "áregység
* MOVE 'HUF' TO wa_operation-CURRENCY. "pénznem
* MOVE '' TO wa_operation-PERS_NO. "törzsszám
MOVE 10 TO wa_operation-work_activity. "művelet munkája
* MOVE 'KG' TO wa_operation-UN_WORK. "művelet munkája
MOVE 2 TO wa_operation-number_of_capacities. "szüks. kapacitás
APPEND wa_operation TO it_operation.
MOVE 20 TO wa_operation-activity. "művelet
MOVE '' TO wa_operation-sub_activity. "al-művelet
MOVE 'PM01' TO wa_operation-control_key. "vezérlő kulcs
* MOVE '19' TO wa_operation-WORK_CNTR. "munkahely
* MOVE '2000' TO wa_operation-PLANT. "gyár
MOVE '' TO wa_operation-standard_text_key. "mintakulcs
MOVE 'Művelet leírása 2.sor' TO wa_operation-description."leírás
MOVE '' TO wa_operation-vendor_no. "szállító
* MOVE 5 TO wa_operation-quantity. "mennyiség
* MOVE 'KG' TO wa_operation-base_uom. "menny.egys.
* MOVE 500 TO wa_operation-PRICE. "ár
* MOVE 1 TO wa_operation-PRICE_UNIT. "áregység
* MOVE 'HUF' TO wa_operation-CURRENCY. "pénznem
* MOVE '' TO wa_operation-PERS_NO. "törzsszám
MOVE 5 TO wa_operation-work_activity. "művelet munkája
* MOVE 'KG' TO wa_operation-UN_WORK. "művelet munkája
MOVE 1 TO wa_operation-number_of_capacities. "szüks. kapacitás
APPEND wa_operation TO it_operation.
MOVE 20 TO wa_operation-activity. "művelet
MOVE 10 TO wa_operation-sub_activity. "al-művelet
MOVE 'PM01' TO wa_operation-control_key. "vezérlő kulcs
* MOVE '19' TO wa_operation-WORK_CNTR. "munkahely
* MOVE '2000' TO wa_operation-PLANT. "gyár
MOVE '' TO wa_operation-standard_text_key. "mintakulcs
MOVE 'Alművelet leírása 2/1.sor' TO wa_operation-description."leírás
MOVE '' TO wa_operation-vendor_no. "szállító
* MOVE 5 TO wa_operation-quantity. "mennyiség
MOVE 'KG' TO wa_operation-base_uom. "menny.egys.
* MOVE 500 TO wa_operation-PRICE. "ár
* MOVE 1 TO wa_operation-PRICE_UNIT. "áregység
* MOVE 'HUF' TO wa_operation-CURRENCY. "pénznem
* MOVE '' TO wa_operation-PERS_NO. "törzsszám
MOVE 2 TO wa_operation-work_activity. "művelet munkája
* MOVE 'KG' TO wa_operation-UN_WORK. "művelet munkája
MOVE 1 TO wa_operation-number_of_capacities. "szüks. kapacitás
APPEND wa_operation TO it_operation.
MOVE 20 TO wa_operation-activity. "művelet
MOVE 20 TO wa_operation-sub_activity. "al-művelet
MOVE 'PM01' TO wa_operation-control_key. "vezérlő kulcs
* MOVE '19' TO wa_operation-WORK_CNTR. "munkahely
* MOVE '2000' TO wa_operation-PLANT. "gyár
MOVE '11' TO wa_operation-standard_text_key. "mintakulcs
MOVE 'Alművelet leírása 2/2.sor' TO wa_operation-description."leírás
MOVE '' TO wa_operation-vendor_no. "szállító
MOVE 5 TO wa_operation-quantity. "mennyiség
MOVE 'KG' TO wa_operation-base_uom. "menny.egys.
* MOVE 500 TO wa_operation-PRICE. "ár
* MOVE 1 TO wa_operation-PRICE_UNIT. "áregység
* MOVE 'HUF' TO wa_operation-CURRENCY. "pénznem
* MOVE '' TO wa_operation-PERS_NO. "törzsszám
MOVE 3 TO wa_operation-work_activity. "művelet munkája
* MOVE 'KG' TO wa_operation-UN_WORK. "művelet munkája
MOVE 1 TO wa_operation-number_of_capacities. "szüks. kapacitás
APPEND wa_operation TO it_operation.
ELSE. "MÓDOSÍTÁS
ENDIF.
ENDFORM. " it_operation_fill
*& Form it_component_fill
* text
* --> p1 text
* <-- p2 text
FORM it_component_fill.
IF p_create = 'X'. "LÉTREHOZÁS
MOVE '0010' TO wa_component-item_number.
MOVE '000000023336110300' TO wa_component-material. "cikkszám
MOVE '2000' TO wa_component-plant. "gyár
MOVE '0001' TO wa_component-stge_loc. "raktár
MOVE 1 TO wa_component-requirement_quantity. "felh.m.
MOVE '0020' TO wa_component-activity. "művelet
APPEND wa_component TO it_component.
MOVE '0020' TO wa_component-item_number.
MOVE '000000095000001900' TO wa_component-material. "cikkszám
MOVE '2000' TO wa_component-plant. "gyár
MOVE '' TO wa_component-stge_loc. "raktár
MOVE 2 TO wa_component-requirement_quantity. "felh.m.
MOVE '0020' TO wa_component-activity. "művelet
MOVE 'N' TO wa_component-item_cat. "tételtípus
MOVE '0000000014' TO wa_component-vendor_no. "szállító
APPEND wa_component TO it_component.
ELSE. "MÓDOSÍTÁS
SELECT * FROM resb
INTO TABLE it_resb
WHERE aufnr EQ p_aufnr.
IF sy-subrc = 0.
READ TABLE it_resb INTO wa_resb
WITH KEY aufnr = p_aufnr.
MOVE wa_resb-rsnum TO wa_component-reserv_no.
ELSE.
CLEAR wa_component-reserv_no.
ENDIF.
MOVE '0010' TO wa_component-item_number.
MOVE '0001' TO wa_component-res_item.
* MOVE '000000023336110400' TO wa_component-material. "cikkszám
* MOVE '2000' TO wa_component-plant. "gyár
* MOVE '0001' TO wa_component-stge_loc. "raktár
MOVE 6 TO wa_component-requirement_quantity. "felh.m.
MOVE '0020' TO wa_component-activity. "művelet
APPEND wa_component TO it_component.
MOVE 'X' TO wa_component_up-requirement_quantity.
MOVE 'X' TO wa_component_up-activity.
APPEND wa_component_up TO it_component_up.
MOVE '0020' TO wa_component-item_number.
MOVE '0002' TO wa_component-res_item.
* MOVE '000000095000001800' TO wa_component-material. "cikkszám
* MOVE '2000' TO wa_component-plant. "gyár
* MOVE '0001' TO wa_component-stge_loc. "raktár
MOVE 6 TO wa_component-requirement_quantity. "felh.m.
MOVE '0010' TO wa_component-activity. "művelet
APPEND wa_component TO it_component.
* MOVE 'X' TO wa_component_up-material.
MOVE 'X' TO wa_component_up-requirement_quantity.
MOVE 'X' TO wa_component_up-activity.
APPEND wa_component_up TO it_component_up.
MOVE '0030' TO wa_component-item_number.
MOVE '000000023336110400' TO wa_component-material. "cikkszám
MOVE '2000' TO wa_component-plant. "gyár
MOVE '0001' TO wa_component-stge_loc. "raktár
MOVE 7 TO wa_component-requirement_quantity. "felh.m.
MOVE '0020' TO wa_component-activity. "művelet
APPEND wa_component TO it_component.
ENDIF.
ENDFORM. " it_component_fill -
hi all,
Any one has step by step procedure BAPI with LSMW.
BAPI with BDC.
sriHi Sri,
Please Go through this Link ,
BAPI And LSMW
Regards,
Ramganesan K. -
Executing bapi with jspdynpage
sample application executing bapi with jspdynpage with step by step procedure
Hi
Refer this link
http://help.sap.com/saphelp_nw04/helpdata/en/95/cfa441cd47a209e10000000a155106/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/2e/d2a441cd47a209e10000000a155106/content.htm
http://devnetmedia.sap.com/html/submitted_docs/htmlbManuals/HTMLB-TableView-01.html
http://help.sap.com/saphelp_nw04/helpdata/en/df/a36a3badc1b315e10000000a114084/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/19/4554426dd13555e10000000a1550b0/frameset.htm
http://etower.towersemi.com/irj/portalapps/com.sap.portal.pdk.basic.portalcomponentimplementation/docs/jspdynpage.html
Regards,
Sundaresan -
Hi All
after bapi calling we need to call commit
my question is there any bapis with out transaction commit
Regards
SurendraHi
We have the sales order or purchase order with the older version so we need to commit use the bapi_transaction_commit.
u can chk out in bapi transaction.
Inside of the code there is commit work is not been used.
All the LUW's will be commited in the database. -
Material Movement using BAPI with serial number.
Hello,
I am currently doing material movement using BAPI with serial number management, however in some case it works fine and in some cases it given and error message E213(IO). Unable to find the reason, when simulated the same it works fine for 200 serial numbers and gives error when going above 200 serial number. The confusion is some times it works fine for 3000 serial number as well.
Tried finding the reasion on every possible site. No results.
Thanks in advance for some solution.Hello,
I am currently doing material movement using BAPI with serial number management, however in some case it works fine and in some cases it given and error message E213(IO). Unable to find the reason, when simulated the same it works fine for 200 serial numbers and gives error when going above 200 serial number. The confusion is some times it works fine for 3000 serial number as well.
Tried finding the reasion on every possible site. No results.
Thanks in advance for some solution. -
hi guys
i have a custom BAPI with a BDC within it..however im getting an error on process screen saying input value is longer than screen field. i added the code below to go around that error but now again another error occurs
DATA: BEGIN OF itab_amount OCCURS 0,
turnover_local(29) TYPE c,
turnover_export(29) TYPE c,
interest(29) TYPE c,
other_income(29) TYPE c,
tax(29) TYPE c,
trading_acc_exp(29) TYPE c,
opening_v_assets(29) TYPE c,
expenses(29) TYPE c,
closing_v_assets(29) TYPE c,
capital_employed(29) TYPE c,
non_ded_exp(29) TYPE c,
penalty(29) TYPE c,
cap_allowances(29) TYPE c,
withholding_tax(29) TYPE c,
non_taxable_inc(29) TYPE c,
directors_wh_tax(29) TYPE c,
other_all_ded(29) TYPE c,
other_tax_paid1(29) TYPE c,
assessed_loss_bf(29) TYPE c,
other_tax_paid2(29) TYPE c,
other_tax_paid3(29) TYPE c,
tax_on_taxable(29) TYPE c,
credits(29) TYPE c,
provisional_tax(29) TYPE c,
history(1),
END OF itab_amount.
MOVE-CORRESPONDING assessment_import TO itab_amount.
the fields have he same definition data element which is a currency field of 21.2
now i get the error that i shud enter values in the format __,___,___,___,___,___,___.__ since the output length is 29 for the domain of the data element.
please can i have some ideas on how to go around this error??
regards
princeHie gurus,
i have made some progress regarding my issue however i am experiencing another error. the requirement for the data is that i moved data to an internal table with data type with equivalent length however wen i pass that value which is coming from data type C i get the error that values shud be in currecy format...how can i solve this????
Maybe you are looking for
-
I'm confused. I am setting up a FCP system on a brand new G5 dual 2.7 gHz with a 375 GB hard drive. I am using an AJA IO LD for input. From what I read, I can't digitize to the internal hard drive if the AJA is also using this hard drive (which sort
-
Just uploaded my new software and my texts won't send. How do I fix this?
Why won't my texts send after uploading latest software? How do I fix this?
-
Hi I have two tables that store following information CREATE TABLE T_FEED (FEED_ID NUMBER, GRP_NUM NUMBER); CREATE TABLE T_FEED_RCV (FEED_ID NUMBER, RCV_DT DATE); INSERT INTO T_FEED VALUES (1, 1); INSERT INTO T_FEED VALUES (2, 1); INSERT INTO T_FEED
-
Hi all I have a problem with Particle Playground in AE 9.0.2.42. The particles shown on full screen resolution are different from the ones on other (half/quarter) resolutions. For example i use a boundary wall to constrain the (custom mapped) particl
-
I need to download dell drivers to a jumpdrive connected to my iMac. Will this cause problems with my Mac?