F4 help for BAPI
how can i implement it in a program?
Thanks
using call funcation.
se37 bapi* see bapi program.
call that report.
Similar Messages
-
1) can we use single used badi for multiple implementations?
2) How can we enhance sandard program?
3)define inbound idoc and outbound idoc?Yes, that is right. You can have more then one implementation for single use BAdIs. But if you have more than one implementation active than the GET BADI statement will raise cx_badi_multiply_implemented. And this means that you have to switch off one implementation if you want to use another implementation. Or am I wrong?
Reference: [Multiple Use|http://help.sap.com/saphelp_nw70/helpdata/EN/e4/5c3642eca5033be10000000a1550b0/frameset.htm]
Regards Rudi -
What are import parameters for bapi
please tell me what are the minimum fields i has to pass for bapi
" BAPI_SALESDOCUMENT_CHANGE ".
if possible give me with example
Moderator message: please (re)search yourself first.
Edited by: Thomas Zloch on Dec 8, 2010 9:07 AMHello,
It will all depend on what you need to change in the sales order.
For example, if you want to change something in the header only, then you need to pass ORDER_HEADER_IN and ORDER_HEADER_INX.
Similarly, if you want to change something only in the sales items then you need to pass the value in SALESDOCUMENT, ITEM_IN and ITEM_INX.
So, it will all depend on your need.
But, always pass a table in RETURN so that you get to know whether BAPI has executed successfully or there is some error in the processing.
Hope it helps.
Regards,
Himanshu -
Hi guru's i want to dovelope or modify bapi how we can give name for bapi
hi guru's i want to dovelope or modify bapi how we can give name for bapi plz help me...
Hi,
If u want to assign the form to Standard sales order, The, this form in the NACE.
and the, Run from va02/03.
Reward Points,
Vamsi. -
How to create purchase order using VA01 for BAPI?
how to create purchase order using VA01 for BAPI?
Hi Arun,
Please check this link
Example Program for BAPI_PO_CREATE1
Re: BAPI_PO_CREATE1
Questions in BAPI_PO_CREATE1
Problem with BAPI_PO_CREATE1
*& Report BAPI_PO_CREATE *
REPORT bapi_po_create.
Input File Declaration
TYPES: BEGIN OF ty_input_file,
column1 TYPE char50,
column2 TYPE char50,
column3 TYPE char50,
column4 TYPE char50,
column5 TYPE char50,
column6 TYPE char50,
column7 TYPE char50,
column8 TYPE char50,
column9 TYPE char50,
column10 TYPE char50,
column11 TYPE char50,
column12 TYPE char50,
column13 TYPE char50,
column14 TYPE char50,
column15 TYPE char50,
column16 TYPE char50,
column17 TYPE char50,
column18 TYPE char50,
END OF ty_input_file.
DATA: i_input_file TYPE STANDARD TABLE OF ty_input_file,
wa_input_file TYPE ty_input_file.
CONSTANTS: c_path TYPE char20 VALUE 'C:\',
c_mask TYPE char9 VALUE ',.,..',
c_mode TYPE char1 VALUE 'O',
c_filetype TYPE char10 VALUE 'ASC',
c_x TYPE char01 VALUE 'X'.
PARAMETERS : p_fname LIKE rlgrap-filename.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fname.
Browse Presentation Server
PERFORM f4_presentation_file.
START-OF-SELECTION..
Read presentation server file
PERFORM f1003_upload_file.
IF NOT i_input_file[] IS INITIAL.
PERFORM split_data.
ENDIF.
*& Form f4_presentation_file
*& F4 Help for presentation server
FORM f4_presentation_file .
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
def_path = c_path
mask = c_mask
mode = c_mode
title = text-001
IMPORTING
filename = p_fname
EXCEPTIONS
inv_winsys = 1
no_batch = 2
selection_cancel = 3
selection_error = 4
OTHERS = 5.
IF sy-subrc 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. " f4_presentation_file
*& Form f1003_upload_file
*& Upload File
FORM f1003_upload_file .
DATA: lcl_filename TYPE string.
lcl_filename = p_fname.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = lcl_filename
filetype = c_filetype
has_field_separator = c_x
TABLES
data_tab = i_input_file
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
IF sy-subrc 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
EXIT.
ENDIF.
ENDFORM. " f1003_upload_file
*& Form split_data
Collect data for creating Purchase Order
FORM split_data .
DATA: i_poitem TYPE STANDARD TABLE OF bapimepoitem,
i_poitemx TYPE STANDARD TABLE OF bapimepoitemx,
i_poitem_sch TYPE STANDARD TABLE OF bapimeposchedule,
i_poitem_schx TYPE STANDARD TABLE OF bapimeposchedulx,
i_acct_*** TYPE STANDARD TABLE OF bapimepoaccount,
i_acct_assx TYPE STANDARD TABLE OF bapimepoaccountx,
i_services TYPE STANDARD TABLE OF bapiesllc ,
i_srvacc TYPE STANDARD TABLE OF bapiesklc,
i_return TYPE STANDARD TABLE OF bapiret2,
wa_header TYPE bapimepoheader,
wa_headerx TYPE bapimepoheaderx,
wa_poitem TYPE bapimepoitem,
wa_poitemx TYPE bapimepoitemx,
wa_poitem_sch TYPE bapimeposchedule,
wa_poitem_schx TYPE bapimeposchedulx,
wa_acct_*** TYPE bapimepoaccount,
wa_acct_assx TYPE bapimepoaccountx,
wa_services TYPE bapiesllc,
wa_srvacc TYPE bapiesklc,
wa_return TYPE bapiret2,
ws_po TYPE bapimepoheader-po_number.
break gbpra8.
wa_services-pckg_no = 10.
wa_services-line_no = 1.
wa_services-outl_no = '0'.
wa_services-outl_ind = c_x.
wa_services-subpckg_no = 20.
APPEND wa_services TO i_services.
wa_srvacc-pckg_no = 10.
wa_srvacc-line_no = 1.
wa_srvacc-serno_line = 01.
wa_srvacc-serial_no = 01.
wa_srvacc-percentage = 100.
APPEND wa_srvacc TO i_srvacc.
LOOP AT i_input_file INTO wa_input_file.
IF wa_input_file-column2 EQ 'HD'.
wa_header-doc_type = wa_input_file-column3.
wa_header-creat_date = sy-datum.
wa_header-created_by = sy-uname.
wa_header-vendor = wa_input_file-column4.
PERFORM conversion_output USING wa_header-vendor
CHANGING wa_header-vendor.
wa_header-comp_code = 'DE03'.
wa_header-purch_org = 'DE03'.
wa_header-pur_group = 'DE1'.
wa_header-vper_start = wa_input_file-column9.
wa_header-vper_end = wa_input_file-column10.
wa_headerx-comp_code = c_x.
wa_headerx-doc_type = c_x.
wa_headerx-creat_date = c_x.
wa_headerx-created_by = c_x.
wa_headerx-vendor = c_x.
wa_headerx-purch_org = c_x.
wa_headerx-pur_group = c_x.
wa_headerx-vper_start = c_x.
wa_headerx-vper_end = c_x.
ENDIF.
IF wa_input_file-column2 EQ 'IT'.
wa_poitem-po_item = wa_input_file-column3.
wa_poitem-short_text = wa_input_file-column6.
wa_poitem-plant = wa_input_file-column8.
wa_poitem-quantity = '1'.
wa_poitem-tax_code = 'V0'.
wa_poitem-item_cat = 'D'.
wa_poitem-acctasscat = 'K'.
wa_poitem-matl_group = wa_input_file-column7.
wa_poitem-pckg_no = '10'.
APPEND wa_poitem TO i_poitem .
wa_poitemx-po_item = wa_input_file-column3.
wa_poitemx-po_itemx = c_x.
wa_poitemx-short_text = c_x.
wa_poitemx-plant = c_x.
wa_poitemx-quantity = c_x.
wa_poitemx-tax_code = c_x.
wa_poitemx-item_cat = c_x.
wa_poitemx-acctasscat = c_x.
wa_poitemx-matl_group = c_x.
wa_poitemx-pckg_no = c_x.
APPEND wa_poitemx TO i_poitemx.
wa_poitem_sch-po_item = wa_input_file-column3.
wa_poitem_sch-delivery_date = sy-datum.
APPEND wa_poitem_sch TO i_poitem_sch.
wa_poitem_schx-po_item = wa_input_file-column3.
wa_poitem_schx-po_itemx = c_x.
wa_poitem_schx-delivery_date = c_x.
APPEND wa_poitem_schx TO i_poitem_schx.
wa_acct_***-po_item = 10.
wa_acct_***-serial_no = 01.
wa_acct_***-gl_account = '0006360100'.
wa_acct_***-co_area = '1000'.
wa_acct_***-costcenter = 'KC010000'.
APPEND wa_acct_*** TO i_acct_***.
wa_acct_***-po_item = 10.
wa_acct_***-serial_no = 02.
wa_acct_***-gl_account = '0006360100'.
wa_acct_***-co_area = '1000'.
wa_acct_***-costcenter = 'KC010000'.
APPEND wa_acct_*** TO i_acct_***.
wa_acct_assx-po_item = 10.
wa_acct_assx-serial_no = 01.
wa_acct_assx-po_itemx = c_x.
wa_acct_assx-serial_nox = c_x.
wa_acct_assx-gl_account = c_x.
wa_acct_assx-co_area = c_x.
wa_acct_assx-costcenter = c_x.
APPEND wa_acct_assx TO i_acct_assx.
wa_acct_assx-po_item = 10.
wa_acct_assx-serial_no = 02.
wa_acct_assx-po_itemx = c_x.
wa_acct_assx-serial_nox = c_x.
wa_acct_assx-gl_account = c_x.
wa_acct_assx-co_area = c_x.
wa_acct_assx-costcenter = c_x.
APPEND wa_acct_assx TO i_acct_assx.
wa_services-pckg_no = 20.
wa_services-line_no = 2.
wa_services-service = wa_input_file-column9.
wa_services-quantity = '100'.
wa_services-gr_price = '100'.
wa_services-userf1_txt = wa_input_file-column13.
APPEND wa_services TO i_services.
wa_srvacc-pckg_no = 20.
wa_srvacc-line_no = 1.
wa_srvacc-serno_line = 02.
wa_srvacc-serial_no = 02.
wa_srvacc-percentage = 100.
APPEND wa_srvacc TO i_srvacc.
ENDIF.
ENDLOOP.
CALL FUNCTION 'BAPI_PO_CREATE1'
EXPORTING
poheader = wa_header
poheaderx = wa_headerx
POADDRVENDOR =
TESTRUN =
MEMORY_UNCOMPLETE =
MEMORY_COMPLETE =
POEXPIMPHEADER =
POEXPIMPHEADERX =
VERSIONS =
NO_MESSAGING =
NO_MESSAGE_REQ =
NO_AUTHORITY =
NO_PRICE_FROM_PO =
IMPORTING
exppurchaseorder = ws_po
EXPHEADER =
EXPPOEXPIMPHEADER =
TABLES
return = i_return
poitem = i_poitem
poitemx = i_poitemx
POADDRDELIVERY =
poschedule = i_poitem_sch
poschedulex = i_poitem_schx
poaccount = i_acct_***
POACCOUNTPROFITSEGMENT =
poaccountx = i_acct_assx
POCONDHEADER =
POCONDHEADERX =
POCOND =
POCONDX =
POLIMITS =
POCONTRACTLIMITS =
poservices = i_services
posrvaccessvalues = i_srvacc
POSERVICESTEXT =
EXTENSIONIN =
EXTENSIONOUT =
POEXPIMPITEM =
POEXPIMPITEMX =
POTEXTHEADER =
POTEXTITEM =
ALLVERSIONS =
POPARTNER =
break gbpra8.
LOOP AT i_return INTO wa_return.
ENDLOOP.
ENDFORM. " split_data
*& Form conversion_output
Conversion exit input
FORM conversion_output USING p_ip
CHANGING p_op.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = p_ip
IMPORTING
output = p_op.
ENDFORM. " conversion_output
Best regards,
raam -
HI,
I need a Search help for time field in case of input field ie the one similar to the date field.In webdynpro we have mapped the Tims data type to our input field.here Tims data type is the data type for time in the backend(R/3 system).Pls help me out its urgent.Pts will be awarded to any of the helpful solutions.Hi Nikhil,
Create an attribute of type 'time' in context. And inputfield to this attribute.
Later, while calling BAPI, you can pass this value to Tms type field.
Regards,
Deepti -
ABAP program for BAPI and convert DB into XML
ABAP program for BAPI and convert DB into XML
Thank you,
Regards,
Jagrut BharatKumar ShuklaRefer the link -
give an example of bapi coding?
how can we transfer huge amount of data from database server to xml format
Regards,
Amit
Reward all helpful replies. -
Hi,
I am facing an issue with Agentry (SMP3.0) startup. I am aware that something wrong happens on Agentry SAP Framework but I dont know how to fix it. Please help me. Thank you.
18:56:11 - Data Object Assignment for BAPI /SYCLO/CORE_MDW_SESSION1_CRT Not Found! |
2014 06 11 12:56:03#+0700#INFO#System.out##anonymous#Agentry Runtime Worker Thread###User::rethrowException::begin |
2014 06 11 12:56:03#+0700#INFO#System.out##anonymous#Agentry Runtime Worker Thread###User::rethrowException::Exception caught: 11.06.2014 18:56:11 - Data Object Assignment for BAPI /SYCLO/CORE_MDW_SESSION1_CRT Not Found! |
2014 06 11 12:56:03#+0700#INFO#System.out##anonymous#Agentry Runtime Worker Thread### |
2014 06 11 12:56:03#+0700#INFO#System.out##anonymous#Agentry Runtime Worker Thread###User::rethrowException::COM.SYCLO.AGENTRY.AGENTRYEXCEPTION: 11.06.2014 18:56:11 - DATA OBJECT ASSIGNMENT FOR BAPI /SYCLO/CORE_MDW_SESSION1_CRT NOT FOUND! |
2014 06 11 12:56:03#+0700#INFO#System.out##anonymous#Agentry Runtime Worker Thread### |
2014 06 11 12:56:03#+0700#INFO#System.out##anonymous#Agentry Runtime Worker Thread### AT COM.SYCLO.SAP.BAPI.BAPIERRORHANDLER.INIT(BAPIERRORHANDLER.JAVA:68) |
2014 06 11 12:56:03#+0700#INFO#System.out##anonymous#Agentry Runtime Worker Thread### AT COM.SYCLO.SAP.BAPI.BAPIERRORHANDLER.<INIT>(BAPIERRORHANDLER.JAVA:42) |
2014 06 11 12:56:03#+0700#INFO#System.out##anonymous#Agentry Runtime Worker Thread### AT COM.SYCLO.SAP.BAPI.BAPI.CHECKFORERRORS(BAPI.JAVA:304) |
2014 06 11 12:56:03#+0700#INFO#System.out##anonymous#Agentry Runtime Worker Thread### AT COM.SYCLO.SAP.BAPI.BAPI.RUN(BAPI.JAVA:184) |
2014 06 11 12:56:03#+0700#INFO#System.out##anonymous#Agentry Runtime Worker Thread### AT COM.SYCLO.SAP.SESSIONMANAGER.CREATEREMOTEUSER(SESSIONMANAGER.JAVA:95) |
2014 06 11 12:56:03#+0700#INFO#System.out##anonymous#Agentry Runtime Worker Thread### AT COM.SYCLO.SAP.SESSIONMANAGER.OPENSESSION(SESSIONMANAGER.JAVA:67) |
2014 06 11 12:56:03#+0700#INFO#System.out##anonymous#Agentry Runtime Worker Thread### AT COM.SYCLO.SAP.USER.INITSESSION(USER.JAVA:693) |
2014 06 11 12:56:03#+0700#INFO#System.out##anonymous#Agentry Runtime Worker Thread### AT COM.SYCLO.SAP.SERVER.LOGIN(SERVER.JAVA:310) |
The same thing happen to /SYCLO/CORE_MDW_SESSION1_DEL
I access my Agentry SAP Framework and found out that there are 3 MDOs assigned to the BAPI. Then why do they popup such exception.Hi Kunal,
Below is my JavaBE.ini. Please help. Thank you very much.
[HOST]
server=be1.vdc.csc.com
APPNAME=ZCH_MATERIALLIST
[CLIENT_NUM]
CLIENT=800
[SYSTEM_NUM]
SYSNUM=01
[LOGON_METHOD]
; USER_AUTH if standard UID/Password authentication is used
; USER_AUTH_GLOBAL if pooled connections using single UID/Password is used
; USER_AUTH_GROUP if UID/Password authentication with SAP Message Server
; (load balancing) is used
LOGON_METHOD=USER_AUTH
[GLOBAL_LOGON]
; referenced when LOGON_METHOD=USER_AUTH_GLOBAL
; uses a pool of connections to the SAP backend all utilizing a single
; UID/password
UID=
UPASSWORD=
SHAREDCONNECTION=0
GET_PERSONNEL_INFO=
[SERVICE_LOGON]
ENABLED=true
UID=hngu3
UPASSWORD=xxxxxx
UPASSWORDENCODED=false
[GROUP_LOGON]
; referenced when LOGON_METHOD=USER_AUTH_GROUP
; individual user authentication using an SAP Message Server which distributes
; client connections among a "group" of SAP application servers based on load
; balancing criteria
; host name or IP address of SAP Message Server
MESSAGE_SERVER=
GROUP_NAME=
SYSTEM_ID=
CLIENT=
[LANGUAGE]
LANG=EN
[LOGGING]
Level=4
[REQUIRED_BAPI_WRAPPER]
com.syclo.sap.bapi.LoginCheckBAPI=/SYCLO/CORE_SUSR_LOGIN_CHECK
com.syclo.sap.bapi.RemoteUserCreateBAPI=/SYCLO/CORE_MDW_SESSION1_CRT
com.syclo.sap.bapi.RemoteParameterGetBAPI=/SYCLO/CORE_MDW_PARAMETER_GET
com.syclo.sap.bapi.SystemInfoBAPI=/SYCLO/CORE_SYSTINFO_GET
com.syclo.sap.bapi.ChangePasswordBAPI=/SYCLO/CORE_SUSR_CHANGE_PASSWD
com.syclo.sap.bapi.CTConfirmationBAPI=/SYCLO/CORE_OUTB_MSG_STAT_UPD
com.syclo.sap.bapi.DTBAPI=/SYCLO/CORE_DT_GET
com.syclo.sap.bapi.GetEmployeeDataBAPI=/SYCLO/HR_EMPLOYEE_DATA_GET
com.syclo.sap.bapi.GetUserDetailBAPI=/SYCLO/CORE_USER_GET_DETAIL
com.syclo.sap.bapi.GetUserProfileDataBAPI=/SYCLO/CORE_USER_PROFILE_GET
com.syclo.sap.bapi.PushStatusUpdateBAPI=/SYCLO/CORE_PUSH_STAT_UPD
com.syclo.sap.bapi.RemoteObjectCreateBAPI=/SYCLO/CORE_MDW_USR_OBJ_CRT
com.syclo.sap.bapi.RemoteObjectDeleteBAPI=/SYCLO/CORE_MDW_USR_OBJ_DEL
com.syclo.sap.bapi.RemoteObjectGetBAPI=/SYCLO/CORE_MDW_SESSION_GET
com.syclo.sap.bapi.RemoteObjectUpdateBAPI=/SYCLO/CORE_MDW_SESSION_UPD
com.syclo.sap.bapi.RemoteReferenceCreateBAPI=/SYCLO/CORE_MDW_USR_KEYMAP_CRT
com.syclo.sap.bapi.RemoteReferenceDeleteBAPI=/SYCLO/CORE_MDW_USR_KEYMAP_DEL
com.syclo.sap.bapi.RemoteReferenceGetBAPI=/SYCLO/CORE_MDW_SESSION_GET
com.syclo.sap.bapi.RemoteReferenceUpdateBAPI=/SYCLO/CORE_MDW_SESSION_UPD
com.syclo.sap.bapi.RemoteSessionDeleteBAPI=/SYCLO/CORE_MDW_SESSION1_DEL
com.syclo.sap.bapi.RemoteUserDeleteBAPI=/SYCLO/CORE_MDW_SESSION1_DEL
com.syclo.sap.bapi.RemoteUserUpdateBAPI=/SYCLO/CORE_MDW_SESSION_UPD
com.syclo.sap.bapi.TransactionCommitBAPI=WFD_TRANSACTION_COMMIT
com.syclo.sap.bapi.SignatureCaptureBAPI=/SYCLO/CS_DOBDSDOCUMENT_CRT -
Looking for bapi's to create records from custom software
I'm looking for bapi to create
1. InfoType 15 SubType 3001 (Additional Payments/Days Number)
2. InfoType 15 SubType 3208 (Additional Payments/Overtime)
I'm tried alot to find in standard bapi's but couldn't find related bapi to create these records.
Kindly help me to use find out a standard bapi.hi
if you want to create it using some extrernal software , you will have to define your own bapi or RFC which will call the HR infotype operation function module.
Regards
Sameer -
Dear experts!
Now, I'm getting some issues about fill parameters for BAPI: BAPI_ACC_STAT_KEY_FIG_POST with t.code 9KE5.
Really, I want to perform the bapi with t.code 9KE5.
Help me, please!
Best regards, Huy!Hi Huy
If you go to SE37 you have to set the following parameters to make it work:
1-For Parameter section, Doc Header you have to set:
CO_AREA 1000
DOCDATE 08.11.2011
POSTGDATE 08.11.2011
VERSION 0
DOC_NO
VARIANT
DOC_HDR_TX
USERNAME X1FREDRA
OBJ_KEY
OBJ_TYPE
OBJ_SYS
VAL_PERIOD 000
VAL_FISYEAR
For table DOC_ITEMS you have to set:
STATKEYFIG BRSAPU
STAT_QTY 10,000
PERSON_NO 00000000
SEG_TEXT
REC_CCTR MS1010
ACTTYPE
REC_ORDER
REC_WBS_EL
RECSALEORD
RECITEM 000000
Then you run and it will post. But there is no profit center line, maybe you have to use the parameter RECCOSTOBJ.
Regards
Fred -
Hi Can body send links & Material For Bapi, Badi,User-exits
Hi Abapers,
Can body send links & Material For Bapi, Badi,User-exits, This is my mail id [email protected]
With Regards
Bhaskar rao.MHi Bhaskar,
User Exit
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sapgenie.com/abap/code/abap26.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
http://www.easymarketplace.de/userexit.php
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sappoint.com/abap/userexit.pdfUser-Exit
http://www.planetsap.com/userexit_main_page.htm
http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
USER EXITS
https://forums.sdn.sap.com/click.jspa?searchID=672084&messageID=312792
https://forums.sdn.sap.com/click.jspa?searchID=672084&messageID=1320078
https://forums.sdn.sap.com/click.jspa?searchID=672084&messageID=2669896
BADI(Business Add-In) is the object oriented method of user exits...
Each BAdI has a definition and more than one implementation. The definition means the methods(in class concept) that are used for performing various functions. The BAdI definition can be viewed in SE18 transaction(for standard ones) and user-defined BAdIs can be created in the same transaction as well.
When you create a BAdI definition, an class interface will be automatically created and you can define your methods in the interface. The implementation of the methods can be done in SE19 transaction
Check these links for info about badi..
BADI's
BADI's
http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm
http://support.sas.com/rnd/papers/sugi30/SAP.ppt
BADI's
BADI's
BADI's
http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm
http://support.sas.com/rnd/papers/sugi30/SAP.ppt
http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
http://members.aol.com/_ht_a/skarkada/sap/
http://www.ct-software.com/reportpool_frame.htm
http://www.saphelp.com/SAP_Technical.htm
http://www.kabai.com/abaps/q.htm
http://www.guidancetech.com/people/holland/sap/abap/
http://www.planetsap.com/download_abap_programs.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm
/people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series
/people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework
http://www.esnips.com/web/BAdI
http://www.allsaplinks.com/badi.html
New to Badi
Intro.....
http://help.sap.com/saphelp_nw04/helpdata/en/e6/d54d3c596f0b26e10000000a11402f/content.htm
diff betweem badi n customer exits........
http://www.sap-img.com/abap/difference-between-badi-and-user-exits.htm
BAPI
BAPI
http://help.sap.com/saphelp_46c/helpdata/en/9b/417f07ee2211d1ad14080009b0fb56/frameset.htm
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
Checkout !!
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
http://techrepublic.com.com/5100-6329-1051160.html#
http://www.sap-img.com/bapi.htm
http://www.sap-img.com/abap/bapi-conventions.htm
http://www.sappoint.com/abap/bapiintro.pdf
http://www.sapgenie.com/abap/bapi/example.htm
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
List of all BAPIs
http://www.planetsap.com/LIST_ALL_BAPIs.htm
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://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
Regards,
Priyanka. -
hello everybody,
I have a BAPI called "CreateFromData" for business object called 'SalesOrder'.
i want to use this BAPI in Java(developer studio).
we can use this method to create sales orders.
A sales order contains information about prices, quantities and dates.
A sales order consists of several items that contain the quantity of the material or service specified for the order.
we have to enter item data required for using the above BAPI using ORDER_ITEMS_IN table(this is a parameter for the above mentioned method).
how to enter data into this parameter(table) from java...i know that we have to use Jco but how to use it i donot know....i mean how to give parameter values to these methods in java?
pls help me reagarding this problem...
thx in advance,
bye,
aj.Hi Ajay,
Yake this code to call your BAPI from your JAVA class.
This is the sample program for BAPI "BAPI_SALESORDER_GETLIST"
import com.sap.mw.jco.*;
public class Example2 {
// The MySAP.com system we gonna be using
static final String SID = "R3";
// The repository we will be using
IRepository repository;
public Example2()
try {
// Add a connection pool to the specified system
// The pool will be saved in the pool list to be used
// from other threads by JCO.getClient(SID).
// The pool must be explicitely removed by JCO.removeClientPool(SID)
JCO.addClientPool( SID, // Alias for this pool
10, // Max. number of connections
"000", // SAP client
"johndoe", // userid
"*****", // password
"EN", // language
"appserver", // host name
"00" );
// Create a new repository
// The repository caches the function and structure definitions
// to be used for all calls to the system SID. The creation of
// redundant instances cause performance and memory waste.
repository = JCO.createRepository("MYRepository", SID);
catch (JCO.Exception ex) {
System.out.println("Caught an exception: \n" + ex);
// Retrieves and prints information about the remote system
public void systemInfo()
try {
// Get a function template from the repository
IFunctionTemplate ftemplate = repository.getFunctionTemplate("RFC_SYSTEM_INFO");
// if the function definition was found in backend system
if(ftemplate != null) {
// Create a function from the template
JCO.Function function = ftemplate.getFunction();
// Get a client from the pool
JCO.Client client = JCO.getClient(SID);
// We can call 'RFC_SYSTEM_INFO' directly since it does not need any input parameters
client.execute(function);
// The export parameter 'RFCSI_EXPORT' contains a structure of type 'RFCSI'
JCO.Structure s = function.getExportParameterList().getStructure("RFCSI_EXPORT");
// Use enumeration to loop over all fields of the structure
System.out.println("System info for " + SID + ":\n" +
for (JCO.FieldIterator e = s.fields(); e.hasMoreElements(); ) {
JCO.Field field = e.nextField();
System.out.println(field.getName() + ":\t" + field.getString());
}//for
System.out.println("\n\n");
// Release the client into the pool
JCO.releaseClient(client);
else {
System.out.println("Function RFC_SYSTEM_INFO not found in backend system.");
catch (Exception ex) {
System.out.println("Caught an exception: \n" + ex);
// Retrieves and displays a sales order list
public void salesOrders()
JCO.Client client = null;
try {
// Get a function template from the repository
IFunctionTemplate ftemplate = repository.getFunctionTemplate("BAPI_SALESORDER_GETLIST");
// if the function definition was found in backend system
if(ftemplate != null) {
// Create a function from the template
JCO.Function function = ftemplate.getFunction();
// Get a client from the pool
client = JCO.getClient(SID);
// Fill in input parameters
JCO.ParameterList input = function.getImportParameterList();
input.setValue("0000001200", "CUSTOMER_NUMBER" );
input.setValue( "1000", "SALES_ORGANIZATION");
input.setValue( "0", "TRANSACTION_GROUP" );
// Call the remote system
client.execute(function);
// Print return message
JCO.Structure ret = function.getExportParameterList().getStructure("RETURN");
System.out.println("BAPI_SALES_ORDER_GETLIST RETURN: " + ret.getString("MESSAGE"));
// Get table containing the orders
JCO.Table sales_orders = function.getTableParameterList().getTable("SALES_ORDERS");
// Print results
if (sales_orders.getNumRows() > 0) {
// Loop over all rows
do {
System.out.println("----
// Loop over all columns in the current row
for (JCO.FieldIterator e = sales_orders.fields(); e.hasMoreElements(); ) {
JCO.Field field = e.nextField();
System.out.println(field.getName() + ":\t" + field.getString());
}//for
} while(sales_orders.nextRow());
else {
System.out.println("No results found");
}//if
else {
System.out.println("Function BAPI_SALESORDER_GETLIST not found in backend system.");
}//if
catch (Exception ex) {
System.out.println("Caught an exception: \n" + ex);
finally {
// Release the client to the pool
JCO.releaseClient(client);
protected void cleanUp() {
JCO.removeClientPool(SID);
public static void main(String[] argv)
Example2 e = new Example2();
e.systemInfo();
e.salesOrders();
e.cleanUp();
regards,
Bhavik -
Hi All
i am doing LSMW with help of BAPI for transaction mm01. Initially i used the bapi name "bapi_standardmaterial_create" but it do not allow me for any method like create, edit etc. then i used the bapi name "bapi_material_savedata" but i do not get the "Business object name " and method name for this bapi.can anyone guide me how to do that.
And if anyone has the documet regarding steps follow in the lsmw with bapi with configuratin then please tell me.Hi
Please check these threads
Re: LSMW with BAPI and IDOC
https://forums.sdn.sap.com/click.jspa?searchID=292418&messageID=2532904
https://forums.sdn.sap.com/click.jspa?searchID=292418&messageID=2796820
https://forums.sdn.sap.com/click.jspa?searchID=292418&messageID=2549249
https://forums.sdn.sap.com/click.jspa?searchID=292418&messageID=2545661 -
Interface for BAPI for creation of Sales Order.
hai,
what does meant by creating interface for BAPI to create sales order. and how to create the interface for BAPI to create sales order.Check Transaction BDFG and BDBG.
BDBG is to create an interface for the BAPI
http://help.sap.com/saphelp_nw04/helpdata/en/43/b46c4b53c111d395fa00a0c94260a5/frameset.htm
BDFG is to create an interface for the FM (non BAPI).
http://help.sap.com/saphelp_nw04/helpdata/en/00/a814b5d05b11d6b2ca00508b6b8b11/frameset.htm
Regards,
Naimesh Patel -
How to use Extensionin, Extensionout FOR BAPI ENHANCEMENT
Hi,
I need to do the enhancemen for BAPI. I don't know how to do it.
if there is any good procedure plz give me.
Thanks in Advance,
NVHi ,
In the EXTENSIONIN param Structure should be BAPI_TE_XXXXX(Which has the custom fields) .
If you don't know one in se11 search with BAPI_TE_* , I am sure you will one which has ur fields.
And then in Value part1 should have your data.
For Ex. you want to send company code , asset no.
first4 will be your comp code , Next 12 will ur Asset no .
Please revert back if more help required.
Also Check for similar work
[Thread|Re: How to use BAPI]
Rhea.
Maybe you are looking for
-
ok well this is a long story so bare with me. I had 3 MBP replacements. All faulty (I`m not even going to go into that) After the 3rd MBP I wanted my money back but because the first MBP was purchased by best buy my only option was to get a full refu
-
I bought a Mac Mini in a Mac Store in Palo Alto three days ago but it didn't include the Snow Leopard, only 10.5.6 even though the website explicitly says it would. How do I get it updated for free online as I don't live close to a Mac Store. Chris
-
Remove .DS_Store files
On my iMac ios 10.10.1 I now have a Desk-Top Icon and a Finder Application file for .DS_Store. Both show in a faded text. Tried to put in the trash, but they just pop right up. They are not hurting anything that I can tell, but I want them gone. Any
-
Dear Experts, I have a problem about accounting period (1-12 and 1-16) The old balance sheet period is 1-12. I need to add 13-16 period to B/S. But, the system have a message as follow: Could someone please tell me how to fix it? Regards, Stanley
-
Need more battery life...
I'm going on a veeeeery loooong plane ride and would like my son to be kept busy watching some of the videos I've purchased... how can I get more than 2 video hours from my ipod vido (30) without a power source to plug into...?????