Which bapi for create activity type
i use ecc 4.6
i just find
BAPI_ACTIVITYTYPEGRP_CREATE
for create activity group
but i do not find the bapi for create the activiy type
which bapi is for create activiy type
if the sap does not supply this bapi
wich method to create the activity type (i know shdb can do it)
BAPI_ACTTYPE_CREATEMULTIPLE
Similar Messages
-
Bapi for creating message type in a sales order
Hi, I am involved in a IS-MAM project for an italian company.
I need to create or add a message output type in a sales order in a complex batch program. I thought to use a bapi technicality; in particular BAPI_ADMGMTSO_CHANGE in order to change the document.
How can I create message type in the order? Can I use the same bapi or I need of an other one?
thanks in advance for your help
LuciaCan you please provide more information...
-
BAPI for Creating Activity Journal
Dear Experts,
i am able to create the Activity through standard function module BAPI_ACTIVITYCRM_CREATEMULTI, now i want to create the Activity Journal, how can i create Activity Journal, BAPI_ACTIVITYCRM_CREATEMULTI is the right bapi for that or is there any other bapi to create Journal. Actually i have seen in the Create bapi, but i dont know how to create the journal, plz help me how to create the journal for an Activity, what r the necessary fields for creating the journal.
Regards
eswarhi prasad,
i have gone through this interface program, but i m unable to create the activity journal, plz tell me the process while using this interface, and wht are the necessary fields to give for the bapi because i need standard interface, plz help me how to create the journal for an activity.
Regards
eswar -
FM or BAPI for creating/deleting condition records for an output type
Hi all,
what is the FM or BAPI for creating and deleting the condition records for a Z(custom) output type.You can use trasaction SXDA_TOOLS.....
object type BUS3003
program type BINP
program/method RM06IBI0
but the fields must be sequentially written in the txt, with every space inclusive.... -
Which BAPI can Create handling Unit for VL02N.
Dear All,
Which BAPI can Create handling Unit for VL02N.
The Business is: VL02N, click head toolbar PACK, then call up handling Unit.
ThanksHi sun!
I'm facing the same requirement since three days and i'm not able to get it workin.
Did you resolve the problem and if yes which function modules did you use?
Thanks in advance!
Florian
Edited by: Florian Visintin on Sep 17, 2009 10:21 AM
Edited by: Florian Visintin on Sep 17, 2009 10:22 AM -
BAPI for create meterial component
Hi experts
Which bapi can create meterial componet for an Activity, the same as use TCODE cj20n create a network->create activity->create meterial componet
BR
ChrisHi,
*& Report ZKAR_MATMAS_BAPI
*& This program demonstrates how easy it is to create Material master
*& data using BAPI_MATERIAL_SAVEDATA
*& The program also generates a report post-execution displaying errors
*& as well as successful uploads
REPORT ZKAR_MATMAS_BAPI.
* TABLES
* FLAGS *
DATA: F_STOP. " Flag used to stop processing
* DATA DECLARATIONS *
DATA : V_EMPTY TYPE I, " No. of empty records
V_TOTAL TYPE I. " Total no. of records.
* STRUCTURES & INTERNAL TABLES
*BAPI structures
DATA: BAPI_HEAD LIKE BAPIMATHEAD, " Header Segment with Control Information
BAPI_MAKT LIKE BAPI_MAKT, " Material Description
BAPI_MARA1 LIKE BAPI_MARA, " Client Data
BAPI_MARAX LIKE BAPI_MARAX, " Checkbox Structure for BAPI_MARA
BAPI_MARC1 LIKE BAPI_MARC, " Plant View
BAPI_MARCX LIKE BAPI_MARCX, " Checkbox Structure for BAPI_MARC
BAPI_MBEW1 LIKE BAPI_MBEW, " Accounting View
BAPI_MBEWX LIKE BAPI_MBEWX, " Checkbox Structure for BAPI_MBEW
BAPI_RETURN LIKE BAPIRET2. " Return Parameter
*--- Internal table to hold excel file data
DATA: IT_INTERN TYPE ALSMEX_TABLINE OCCURS 0 WITH HEADER LINE.
*--- Internal table to hold Matetrial descriptions
DATA: BEGIN OF IT_MAKT OCCURS 100.
INCLUDE STRUCTURE BAPI_MAKT.
DATA: END OF IT_MAKT.
*--- Internal to hold the records in the text file
DATA : BEGIN OF IT_DATA OCCURS 100,
WERKS(4), " Plant
MTART(4), " Material type
MATNR(18), " Material number
MATKL(9) , " Material group
MBRSH(1), " Industry sector
MEINS(3), " Base unit of measure
GEWEI(3), " Weight Unit
SPART(2), " Division
EKGRP(3), " Purchasing group
VPRSV(1), " Price control indicator
STPRS(12), " Standard price
PEINH(3), " Price unit
SPRAS(2), " Language key
MAKTX(40), " Material description
END OF IT_DATA.
* SELECTION SCREEN. *
SELECTION-SCREEN BEGIN OF BLOCK SCR1 WITH FRAME TITLE TEXT-111.
PARAMETER : P_FILE TYPE RLGRAP-FILENAME OBLIGATORY DEFAULT " Input File
'C:\Material_master.XLS'.
PARAMETER : P_MAX(4) OBLIGATORY DEFAULT '100'. " no.of recs in a session
PARAMETERS: P_HEADER TYPE I DEFAULT 0. " Header Lines
PARAMETERS: P_BEGCOL TYPE I DEFAULT 1 NO-DISPLAY,
P_BEGROW TYPE I DEFAULT 1 NO-DISPLAY,
P_ENDCOL TYPE I DEFAULT 100 NO-DISPLAY,
P_ENDROW TYPE I DEFAULT 32000 NO-DISPLAY.
SELECTION-SCREEN END OF BLOCK SCR1.
* AT SELECTION-SCREEN *
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
*--- Validating file
PERFORM VALIDATE_FILE USING P_FILE.
* START-OF-SELECTION
START-OF-SELECTION.
*--- Perform to convert the Excel data into an internal table
PERFORM CONVERT_XLS_ITAB.
IF NOT IT_DATA[] IS INITIAL.
*--- Perform to delete Header lines
PERFORM DELETE_HEADER_EMPTY_RECS.
ENDIF.
* END OF SELECTION. *
END-OF-SELECTION.
*--- Perform to upload Material Master data
PERFORM UPLOAD_MATMAS.
* Form : validate_input_file
* Description : To provide F4 help for file if read from PC
FORM VALIDATE_FILE USING F_FILE TYPE RLGRAP-FILENAME.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
CHANGING
FILE_NAME = F_FILE
EXCEPTIONS
MASK_TOO_LONG = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE S010(ZLKPL_MSGCLASS). " 'Error in getting filename'.
ENDIF.
ENDFORM. " validate_input_file
*& Form CONVER_XLS_ITAB
* text
FORM CONVERT_XLS_ITAB.
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
FILENAME = P_FILE
I_BEGIN_COL = P_BEGCOL
I_BEGIN_ROW = P_BEGROW
I_END_COL = P_ENDCOL
I_END_ROW = P_ENDROW
TABLES
INTERN = IT_INTERN.
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*--- Perform to move the data into an internal data
PERFORM MOVE_DATA.
ENDFORM. " CONVERT_XLS_ITAB
*& Form MOVE_DATA
* text
FORM MOVE_DATA.
DATA : LV_INDEX TYPE I.
FIELD-SYMBOLS <FS>.
*--- Sorting the internal table
SORT IT_INTERN BY ROW COL.
CLEAR IT_INTERN.
LOOP AT IT_INTERN.
MOVE IT_INTERN-COL TO LV_INDEX.
*--- Assigning the each record to an internal table row
ASSIGN COMPONENT LV_INDEX OF STRUCTURE IT_DATA TO <FS>.
*--- Asigning the field value to a field symbol
MOVE IT_INTERN-VALUE TO <FS>.
AT END OF ROW.
APPEND IT_DATA.
CLEAR IT_DATA.
ENDAT.
ENDLOOP.
ENDFORM. " MOVE_DATA
*& Form DELETE_HEADER_EMPTY_RECS
* To delete the Header and empty records
FORM DELETE_HEADER_EMPTY_RECS.
DATA: LV_TABIX LIKE SY-TABIX.
IF NOT P_HEADER IS INITIAL.
LOOP AT IT_DATA.
IF P_HEADER > 0 AND NOT IT_DATA IS INITIAL.
DELETE IT_DATA FROM 1 TO P_HEADER.
* P_HEADER = 0.
EXIT.
ENDIF.
ENDLOOP.
ENDIF.
CLEAR IT_DATA.
*--- To delete the empty lines from internal table
LOOP AT IT_DATA.
LV_TABIX = SY-TABIX.
IF IT_DATA IS INITIAL.
V_EMPTY = V_EMPTY + 1.
DELETE IT_DATA INDEX LV_TABIX..
ENDIF.
ENDLOOP.
CLEAR IT_DATA.
*--- Total no of recs in file
DESCRIBE TABLE IT_DATA LINES V_TOTAL.
IF V_TOTAL = 0.
MESSAGE I013(ZLKPL_MSGCLASS). " No records in the file
F_STOP = 'X'.
STOP.
ENDIF.
ENDFORM. " DELETE_HEADER_EMPTY_RECS
*& Form UPLOAD_MATMAS
* to upload Material Master data
FORM UPLOAD_MATMAS .
LOOP AT IT_DATA.
* Header
UNPACK IT_DATA-MATNR TO IT_DATA-MATNR.
BAPI_HEAD-MATERIAL = IT_DATA-MATNR.
BAPI_HEAD-IND_SECTOR = IT_DATA-MBRSH.
BAPI_HEAD-MATL_TYPE = IT_DATA-MTART.
BAPI_HEAD-BASIC_VIEW = 'X'.
BAPI_HEAD-PURCHASE_VIEW = 'X'.
BAPI_HEAD-ACCOUNT_VIEW = 'X'.
* Material Description
REFRESH IT_MAKT.
IT_MAKT-LANGU = IT_DATA-SPRAS.
IT_MAKT-MATL_DESC = IT_DATA-MAKTX.
APPEND IT_MAKT.
* Client Data - Basic
BAPI_MARA1-MATL_GROUP = IT_DATA-MATKL.
BAPI_MARA1-BASE_UOM = IT_DATA-MEINS.
BAPI_MARA1-UNIT_OF_WT = IT_DATA-GEWEI.
BAPI_MARA1-DIVISION = IT_DATA-SPART.
BAPI_MARAX-MATL_GROUP = 'X'.
BAPI_MARAX-BASE_UOM = 'X'.
BAPI_MARAX-UNIT_OF_WT = 'X'.
BAPI_MARAX-DIVISION = 'X'.
* Plant - Purchasing
BAPI_MARC1-PLANT = IT_DATA-WERKS.
BAPI_MARC1-PUR_GROUP = IT_DATA-EKGRP.
BAPI_MARCX-PLANT = IT_DATA-WERKS.
BAPI_MARCX-PUR_GROUP = 'X'.
* Accounting
BAPI_MBEW1-VAL_AREA = IT_DATA-WERKS.
BAPI_MBEW1-PRICE_CTRL = IT_DATA-VPRSV.
BAPI_MBEW1-STD_PRICE = IT_DATA-STPRS.
BAPI_MBEW1-PRICE_UNIT = IT_DATA-PEINH.
BAPI_MBEWX-VAL_AREA = IT_DATA-WERKS.
BAPI_MBEWX-PRICE_CTRL = 'X'.
BAPI_MBEWX-STD_PRICE = 'X'.
BAPI_MBEWX-PRICE_UNIT = 'X'.
*--- BAPI to create material
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
HEADDATA = BAPI_HEAD
CLIENTDATA = BAPI_MARA1
CLIENTDATAX = BAPI_MARAX
PLANTDATA = BAPI_MARC1
PLANTDATAX = BAPI_MARCX
* FORECASTPARAMETERS =
* FORECASTPARAMETERSX =
* PLANNINGDATA =
* PLANNINGDATAX =
* STORAGELOCATIONDATA =
* STORAGELOCATIONDATAX =
* VALUATIONDATA = BAPI_MBEW1
* VALUATIONDATAX = BAPI_MBEWX
* WAREHOUSENUMBERDATA =
* WAREHOUSENUMBERDATAX =
* SALESDATA = BAPI_MVKE1
* SALESDATAX = BAPI_MVKEX
* STORAGETYPEDATA =
* STORAGETYPEDATAX =
IMPORTING
RETURN = BAPI_RETURN
TABLES
MATERIALDESCRIPTION = IT_MAKT
* UNITSOFMEASURE =
* UNITSOFMEASUREX =
* INTERNATIONALARTNOS =
* MATERIALLONGTEXT =
* TAXCLASSIFICATIONS =
* RETURNMESSAGES =
* PRTDATA =
* PRTDATAX =
* EXTENSIONIN =
* EXTENSIONINX =
IF BAPI_RETURN-TYPE = 'E'.
WRITE:/ 'Error:' ,BAPI_RETURN-MESSAGE ,'for material:' ,IT_DATA-MATNR.
ELSEIF BAPI_RETURN-TYPE = 'S'.
WRITE: 'Successfully created material' ,IT_DATA-MATNR.
ENDIF.
ENDLOOP.
ENDFORM. " UPLOAD_MATMAS
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Apr 11, 2008 5:49 PM -
Hi,
Can any pne tell me the BAPI for Network Activity.
I have to pass the below listed fields.
PROFID
AUART
DISPO
WERKS
AUFNR
KTEXT
GLTRP
GLTRP
PRONR
PROJN
PRCTR
VORNR
LTXA1
STEUS
PROJN
ARBID
ARBEI
ARBEH
LARNT
DAUNO
SAKTO
PRKST
WAERS
EKORG
EKGRP
MATKL
LOSME
KTEXT1
SRVPOS
MENGE
MEINS
KSTAR
LTXT
APLZL_VOR
APLZL_NCH
AOBAR
I also need to pass few Z fields.
Asset Class
Investment Type
Payment profile
Asset Category
Part Number
Part Description
Contract Number
1st Investment Check
First off tool part qty
Final investment check
Mass production
Tool Register
Shared
Shared Part number
Trouble Code
Can anyone please tell me the BAPI which suits my requirement.
Thanks,
Vignesh
Moderator message: please stop posting duplicates, whether same user ID or not, do some research of your own.
Is there any BAPI for T-Code : CN21 with custom fields ?
Edited by: Thomas Zloch on Mar 5, 2012Dear deepthi dandibh,
Do you know how to solve it? I got the problem similar as you.
When I debug via BAPI_PO_CREATE1 function, I found the KNT has the G/L Account inside, But when I call BAPI_PO_CREATE1 by Zxxx program and debuging it. It doesn't has the G/L Account inside KNT table.
Could you please help to advise me how to do ?
Best Regard,
NNP -
What is the BAPI for creating BP account / contact ?
Hello experts,
what is the BAPI for creating BP account / contact ?
Please replay me as erarly as possible. Urgent requirment.
Thanks,
HPHi,
I think it is for bua1.
Below are other bapi's which migt be useful:-
BAPI_BPCONTACT_ADD_TO_ASGN BAPI Partner Sales Activity AddToAssigned
BAPI_BPCONTACT_CHANGE BAPI Change Partner Sales Activity
BAPI_BPCONTACT_CREATEFROMDATA BAPI Partner Sales Activity Create from Data
BAPI_BPCONTACT_CREATEWITHDIA BAPI Partner Sales Activity - Create from Data Dialog
regards
Sandipan -
Hi,
There is any BAPI for create a new employee (transaction pa40)?
Basically a bapi that create employee number and assign personnel area, EE group,...
I suppose that BAPI_PARTNEREMPLOYEE_CREATE is for external customer users... not the bapi that we are looking for...
Regards.Thanks.Hi Garcia,
The FM calls the transaction PA30/PA20 based on your activity whether to create/display.
If you do not have the FM HR_MAINTAIN_MASTERDATA
You can use even BDC to create the employee data.
Fill all the required data for an employee and call the transaction PA30 for each infotype.
Also HR_INFOTYPE_OPERATION implicitely calls the HR_MAINTAIN_MASTERDATA .
search for the same ..and also look for the include LHRMMU03.
Check for Function group HRMM which has these FM's -
Suggest BAPI for create notification IW34
Hi,
Kindly suggest BAPI for create notification IW34.
Regards,
TanayaHow to find function module or Bapi for particular transaction in sap?
If you mean that you need to know what BAPI's a particular tranx uses, which I can only assume that's what you mean, then you should access the code behind the transaction and search for 'CALL'. That normally is the standard method that think that most people use.
Suppose you want to find the bapi for creating a sales order, you usually use transaction VA01 for this.
1. Find out the package of the transaction.
Start Va01 go to system --> status.
Double click on transaction
Package is VA
Open this package in SE80
Open business engineering-->Business object types
Find the BO which sounds the most appropriate
I would suggest BUS2032 Sales Order
Double click.
Open methods.
Find the released method with from data or something similar in the name
, Createfromdat2
Position the cursor in it and click the program button
Scroll down to find the bapi used in this method
With this way you can also find out programs and FM's
2. Start va01 go to system-->status
Double click transaction VA01
Double click on package
Read the application component. (this is SD-SLS Sales)
Then open the transaction BAPI
Sales and distribution>Sales>sales order
createfromdat2
Answer: This is the BAPI for your mentioned transaction code BAPI_GOODSMVT_CREATE.
thanks,
Sankar M -
BAPI for Creating a PM order(iw34) with reference to a Notification
Hi All,
Could anyone help to find the BAPI for creating a PM order with reference to a notification Number.
I will explain my requirement :
I want to create a notification from an external Application where i got the BAPI BAPI_ALM_NOTIF_CREATE and keeping this created notification number as Referece or for this notification number i need a create a PM order.Usually this process in done transaction IW34 in R/3.
But with the BAPI BAPI_ALM_ORDER_MAINTAIN i can create a PM order but this BAPI doesn't have a input parameter "Notification number ".So i can't use this BAPI.
Could any suggest for a BAPI where i can create a PM order with reference to a Notification Number.
Regards,
SidHi,
I have tried with the FM CO_IH_ORDER_GENER_2 but when i executes it gives a error message
"<i>Service/maintenance order type PM02 not completely maintained in plant
Message no. IW216
Diagnosis
For the selected order type and plant, no check control is maintained in Plant Maintenance/Service in 'Availability Check for Materials, PRTs and Capacities'.
Procedure
A check control must be maintained for this combination of order type and plant</i>"".
And even have a doubt what to enter in this input parameter "GEWRK_OBJTYP" .
Kindly help me to solve this issue.
Regards,
Sid -
BAPI for create material master (SAP version 40b)
Hi,
Anyone know BAPI for create material master for SAP version 40b?
There's no BAPI_MATERIAL_SAVEDATA.
I try to use BAPI_MATERIAL_MAINTAINDATA_RT,
but seems that BAPI only for retail.
Kindly advice!
Thanks,
Victor.Hi,
this one works pretty good.
call function 'MATERIAL_MAINTAIN_DARK'
exporting
sperrmodus = ' '
kz_prf = 'W'
max_errors = ' '
p_kz_no_warn = 'X'
kz_verw = 'X'
kz_aend = 'X'
kz_dispo = 'X'
kz_test = ' '
flag_muss_pruefen = ' '
call_mode = 'ACT'
importing
number_errors_transaction = numerror
matnr_last = last_matnr
tables
amara_ueb = i_mara "Basic Data
amakt_ueb = i_makt "Descriptions
amarc_ueb = i_marc "Plant
amard_ueb = i_mard "Storage Location
AMFHM_UEB = I_MFHM "Production Tools
amarm_ueb = i_marm "Units of Measure
AMEA1_UEB = I_MEA1 "Internal Mangagement - EANs
ambew_ueb = i_mbew "Accounting/Costing
asteu_ueb = i_steu "Tax Data
astmm_ueb = i_steumm "Tax Data
AMLGN_UEB = I_MLGN "Warehouse Data
AMLGT_UEB = I_MLGT "Storage Type Data
AMPGD_UEB = I_MPGD "Change Documents
AMPOP_UEB = I_MPOP "Forcast Parameters
AMVEG_UEB = I_MVEG "Total Consumption Data
AMVEU_UEB = I_MVEU "Unplanned Consumption Data
amvke_ueb = i_mvke "Sales Data
altx1_ueb = i_ltx1 "Sales Text
AMPRW_UEB = I_MPRW "Forcast Values
amfieldres = i_delfields
amerrdat = i_errors
exceptions
kstatus_empty = 01
tkstatus_empty = 02
t130m_error = 03
internal_error = 04
update_error = 05
too_many_errors = 06.
Otherwise try BAPI_RETAILMATERIAL_CREATE
BAPI_STANDARDMATERIAL_CREATE
<b>Reward points</b>
Regards -
How to create Activity type
below are the details
x sales MnF Expenses
y FMS MnF Expensesdear sudhir
KA01 - Create Primary Cost Element for the new activities type.
KL01 - Create Activity Type tied to the primary cost element.
regards
rohit -
Is there any BAPI for creating Debit memo request
Hi all,
I used BAPI_ACC_BILLING_POST ,but it does not seems to help me.Is there any other BAPI for creating Debit memo request which takes.
Thanks and regards,
Meena.hi,
I could find the following
Exit Name Description
J_3RSINV
SDVFX001 User exit header line in delivery to accounting
SDVFX002 User exit for A/R line in transfer to accounting
SDVFX003 User exit cash clearing in transfer to accounting
SDVFX004 User exit G/L line in transfer to accounting
SDVFX005 User exit reserves in transfer to accounting
SDVFX006 User exit tax line in transfer to accounting
SDVFX007 User exit: Billing plan during transfer to Accounting
SDVFX008 User exit: Processing of transfer structures SD-FI
SDVFX009 Billing doc. processing KIDONO (payment reference number)
SDVFX010 User exit item table for the customer lines
SDVFX011 Userexit for the komkcv- and kompcv-structures
V05I0001 User exits for billing index
V05N0001 User Exits for Printing Billing Docs. using POR Procedure
V60A0001 Customer functions in the billing document
V60P0001 Data provision for additional fields for display in lists
V61A0001 Customer enhancement: Pricing
Regards,
Manish -
Bapi for creating Sales Area data on Relationship
Hi,
I am looking for BAPI for creating relationship between business partners with sales area data in CRM 5.0.
Example - I would like to create relationship type CRMH03.
Bapi BUPR_RELATIONSHIP_CREATE does not allow for maintaining sales area data (Sales org, distribution channel, division).
Does anybody know such a bapi?
Regards
Radekhi
try using these
BAPI_BUPA_CREATE_FROM_DATA
BAPI_BUPA_RELATIONSHIP_CREATE
best regards
ashish
Maybe you are looking for
-
I have recently been having a clear up on my pc. I have tried to access Itunes which was on my pc but it will not load!! Help
-
If I choose never save password for a website and want to reverse that how can I?
Password issues
-
How can you see your photos on a pc so you know they were saved in the cloud?
-
My Ipad has shut down i have tried to force start but i just get itunes lead picture on screen and when i connect it to pc it says restore, i dont want to is there another way to do this?
-
Can plot legend grow upward?
Hi, I'm dynamically adding plots to an XY graph. The plot legend is placed on the top, right corner of the graph by default. When I add new plots, the legend grows downward, blocking the graph. Is there a setting that I can change so that the legend