Upload time data with BAPI
Hi guys,
anyone now how to use some of the following bapis?
BAPI_PTMGREXTREMSPEC_INSERT
BAPI_PTMGREXTREMSPEC_INSWACT
BAPI_PTMGREXTREMSPEC_INSWCOST
i need to know how to USE this bapis, i dont know how to insert data using this BAPI, wich parameters are needed.
tks in advance
Hi,
following is from the documentation:
<b> Import parameters
AttendanceAbsence</b>
Attendance/absence
<b> Description</b>
For more information on the individual parameter fields, see the data element documentation in the ABAP Dictionary.
The following data is required:
Logical system of the original document (Field EXTSYSTEM)
External application (Field EXTAPPLICATION)
Document number (Field EXTDOCUMENTNO)
Personnel number (Field EMPLOYEENUMBER)
From date (Field FROM_DATE)
To date (Field TO_DATE)
Attendance or absence type (Field ABS_ATT_TYPE)
Start time (Field START_TIME) and End time (Field END_TIME) or
Attendance/absence hours (Field ABS_ATT_HOURS)
What is your problem?
Regards
Bernd
Similar Messages
-
hi hr gurus,
plz help
we have 3 shifts like 6-2,2-10,10-6.
while uploading time data to sap from third party system.
do we need to take care of the shifts times in BDC?
or do we need to manage it in configurations
if you have any code please send me
regardsHi,
As above said was the also procedure to do the BDC recording.Hope you understand the precedure in detail else have a look @ this.
1.Goto transaction shdb for recording.
2.There give the recording name starting with Z or Y letter.
3.Click "New Recording" button in the left extreme Application tool bar.
4.You will get a new pop up window Create Recording there give Recording Name"Z r Y" and give the transaction code that you going to record for e.g (PA30,XK01).
5.Leave the Mode as it is and click "Start Recording".
6.Here you will get the transaction code window for e.g if you are giving PA30 it will call the corresponding transaction.
7.Start recording by entering the values which you want to record.
8.After recording save the recording and give back.
9.There you find the list of process which is done.
10.Enter your recording name and press enter you will get the program name.
11.Select the program name and press "program" button in the application tool bar.It will ask abt the prgm name and give read from file.
12.You will get the coding in se38 for recording.
13.Edit your program for uploading the flat file from you legacy system to application server by using CALL FUNCTION "GUI_UPLOAD".
14.Get the flat file and fill it in internal table and pass the internal table values by giving "loop at internal table" after READ DATASET statement.
15.Select the call transaction for small no. of data for large no. of data we have to use session method.(Refer some links for difference between session and call transaction).
16.There by executing the program we will get the output which record are created.
Thanks,
Sakthi.C
*Rewards if usefull--* -
hi,
i am new for bapi , can anyone tell me how to upload data using bapi with example?
plz tell how to find bapi & how to use in coding to upload the data?Hi ,
To find Bapi There a tcode Bapi which will take you to bapi Explorer From there you can find required
the Bapi Function Module and its Documentation .
[ www.sap-img.com/abap/bapi-step-by-step-guidance.htm ]
[http://www.sappro.com/tag.cfm?session=&tag=bapi%20programming]
[https://wiki.sdn.sap.com/wiki/display/Snippets/SalesordercreationusingBAPI]
Regards
Nilesh -
Upload the data using BAPI in LSMW
Hi
I want to upload the data using the BAPI in LSMW,but i dont know what value should be passed in
1- Business Object
2- Method
fields.
Ex- Suppose i want to upload the Material Master Data then what should be the value of these two fields.
Thanks
Mrutyunjaya TripathyHi
Sorry to say that i am little bit confuse with your answer
1-The business object already contains some object name wheather i have to give object names or different,As you have mentioned to give the tcode than what tcode that would be
2-If i am giving any internal table name in the method field it is giving me error because this field is related to the business object field
Thanks
Tripathy m -
Uploading Time data to HR Clusters B1 and B2
Hi All,
My agenda is download Time data ( Hr cluster B1 and B2 ) from One SAP System ( 4.7 ) using Macr RP-IMP-C1-B1, RP-IMP-C2-B2 and upload to a ECC 6.0 SAP System using Macro RP-EXP-C1-B1, RP-EXp-C2-B2. Though uploading can be achieved using report RPTIME00( Provided all the infotypes filled ) , i dont want to do this because time schema may change which will cause data inconsistencies between two system.
I succesfully imported B1 Cluster from one system but when i try to upload the same data using macro RP-EXP-C1-B1, i am not getting any error( SY-SUBRC = 0 ) but data is not saved in the database even though i give a commit work.
I filled all the required values. i.e. i filled b1-key with personnel number and i filled PCL1-RELID, PCL1-SRTFD, PCL1-SRTF2
these fields with values and included includes
RPC1B100
RPC2B200
RPPPXD00
RPPPXD10
RPPPXM00
Macro RP-EXP-C1-B1 Code is
DEFINE RP-EXP-C1-B1.
PCL1-VERSN = B1-VERSION-NUMBER.
B1-VERSION-SAPRL = "L6BK003229
CL_PT_CLUSTER_UTIL=>GET_RELEASE( 'SAP_HR' ). "L6BK003229
B1-VERSION-UNAME = SY-UNAME.
B1-VERSION-DATUM = SY-DATUM.
B1-VERSION-UZEIT = SY-UZEIT.
B1-VERSION-PGMID = SY-REPID.
EXPORT B1-VERSION
NT1
NT2
IFT1
IFT2
ERT
NCT
QT
ST
ITP1
ITP7
ITP50
PDPPM
TO DATABASE PCL1(B1)
ID B1-KEY USING PCL1_EXP_IMP.
RP-IMP-B1-SUBRC = SY-SUBRC.
END-OF-DEFINITION.
In this macro there is a using parameter PCL1_EXP_IMP which is routine used to handle buffers, i belive my data is not storing in the database table because of this why because if i put this code in a routine and call this routine in my program instead of calling the Macro. In this routine if i comment out "USING PCL1_EXP_IMP then everything i working fine but i dont know whether this routine is handling anyother thing.
Have anybody faced the same issue , how to handle buffers. Have anybody used macro RP-EXP-C1-B1 to upload Cluster B1 data , if so please let me know the steps to do that.
Thanks in advance .
Points will be rewarded for useful answers.Hi Rajanidhi,
We are facing same issue, can u please post the solution? Any clue would help us a lot in this regard.
Thanks,
Somu -
Is it possible to create a shortcut for current time / date with iPhone native apps?
is it possible to create a shortcut to insert the current time / date in a text such as a Note with iPhone (IOS 6) native apps (not a 3rd. party app)?
By "shortcut" I mean a combination of characters, the same as under settings/general/keyboards/shortcuts.
thanks.Code that does it is here:
http://forum.java.sun.com/thread.jsp?forum=48&thread=453846&tstart=0&trange=15
MOD -
How can I change Time data with List Entry Screen ?
Hi expert.
I transfer Time Data (Infotype 2003) via CAT6.
When I go to transaction PA61 and click List Entry icon.
Record is display and cannot change data.
If I wanna change data.I must to click Choose Icon one by one record.
How can I change data with List Entry Screen?
ps. If record create via PA61. I can change data with List Entry Screen.
I can't change with record that create via CAT6.
Best Regards.have u tried to change your time entry through CAT2 tcode, ithink if u have created profile for time entry then it should allow you to change and you can use esc otherwise, its generally the standard profile given by SAP. but is 4 one user
hope this helps
guds -
How can we get current time date with resultset?
Dear All,
I have to insert current time date in the table.So,i need to get the current time and date with result set.So,I will first get the time date and then insert it into the table.
I know how can we get current time and date without resultset.i have created this function its working.But now i want to use this.mean using resultset i want to put in the table.
How can i do this?
public static String DATE_FORMAT_NOW = "yyyy-MM-dd HH:mm:ss";
public static String now() {
Calendar cal = Calendar.getInstance();
SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT_NOW);
return sdf.format(cal.getTime());
}yuck. Why not simply set a "new java.sql.Date()" to the SQL parameter in question?
-
Uploading master data with business objets and LSMW
All,
I am trying to uploas legacy data with LSMW and with Business object BUS52** for security classes. This works with idoc format, I have no prior knowledge how this works, but I figured it out a bit. I am to the point now that my idocs are created and posted (according to the system). Except when I would like to see the security class created with FWZZ, there is no data in it.
Any help what am I doing wrong?
kr,
StefHi,
I have successfully used lsmw with bapi before for securities class master data. Business ibject type is BUS1076. If unfamiliar with lsmw (with bapi); I think internet search may bring up couple docs on that.
Manish -
Uploading Time data to HR Clusters B2
Please let me know how I can load Time data to HR Clusters B2 .
ThanksYou need to use macros for this
like
RP-EXP-C2-??
or if you want to use your own then
B2-key-pabrj = vyear). u201C Year
B2-key-pabrp = vmonth. u201C Month
B2-key-cltyp = '1'. u201C Cluster Type
B2-key-pernr = pernr-pernr. u201C Personnel No
EXPORT tab = itab
TO DATABASE PCL2(B2)
CLIENT '000' " This is optional
ID B2-KEY.
and also check
http://help.sap.com/saphelp_erp60_sp/helpdata/en/2d/f44e6ecbf611d2960200a0c9306433/content.htm
a® -
How to upload mm02 data using bapi
Hi guru,
i want to upload data in mm02.my text file is like
material no, language and description.
711 AR A12345
711 BG A12345
711 CA A12345
321 AR F12345
321 BG F12345
321 CA F12345
i wrote a code like
loop at itab into wa_ITAB.
WA_HEADDATA-MATERIAL = wa_itab-matnr."Pass Material No here
IT_MATERIALDESCRIPTION-MATL_DESC = wa_itab-MAKTX."Pass Material Description here
IT_MATERIALDESCRIPTION-LANGU = WA_ITAB-SPRAS."Language here
CLEAR: WA_ITAB.
APPEND IT_MATERIALDESCRIPTION.
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
HEADDATA = WA_HEADDATA
IMPORTING
RETURN = RETURN
TABLES
MATERIALDESCRIPTION = IT_MATERIALDESCRIPTION.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
* EXPORTING
* WAIT =
* IMPORTING
* RETURN =
write:/ return-TYPE.
endloop.
but data can not upload is it right or wrong?You should also only call the update once for each material instead of trying to update the material 1 language at a time.
loop at itab into wa_ITAB.
at new matnr.
WA_HEADDATA-MATERIAL = wa_itab-matnr."Pass Material No here
WA_HEADDATA-BASIC_VIEW = 'X'.
clear it_materialdescription[].
endat.
IT_MATERIALDESCRIPTION-MATL_DESC = wa_itab-MAKTX."Pass Material Description here
IT_MATERIALDESCRIPTION-LANGU = WA_ITAB-SPRAS."Language here
APPEND IT_MATERIALDESCRIPTION.
at end of matnr.
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
HEADDATA = WA_HEADDATA
IMPORTING
RETURN = RETURN
TABLES
MATERIALDESCRIPTION = IT_MATERIALDESCRIPTION.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
* EXPORTING
* WAIT =
* IMPORTING
* RETURN =
endat.
endloop.
Edited by: Larry Browning on Nov 15, 2010 1:45 PM
Edited by: Larry Browning on Nov 15, 2010 1:47 PM -
Save variant configuration data with BAPI or FM
Hi experts,
I created a PP production order by using a configured material.
I can see internal object number in table AFPO-CUOBJ.
I'd like to change and save a value of characteristics by using ABAP.
Could you tell me it if there is a BAPI or FM to save values of characteristics in variant configuraion?
BR,you can chnage the variant configuration data using below bapi with strcture order_cfgs_value =
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument
order_header_in =
order_header_inx =
TABLES
return = return_lt
order_item_in =
order_item_inx =
partners =
partnerchanges =
partneraddresses =
order_cfgs_ref =
order_cfgs_inst =
order_cfgs_part_of =
order_cfgs_value = -
Create Material Master Data with BAPI
Hi,
I don't know using of BAPI. I want using BAPI_MATERIAL_SAVEDATA bapi for creating material master data for Basic Data1, Basic Data2, Purchasing and MRP views. Does anybody can help me ?
Thank you
Good nightHi,
Please refer to the documentation below:
BAPI_MATERIAL_SAVEDATA
Short Text
Create and Change Article Master Data
Functionality
You use this method to create new material master data or to change existing material master data. The data on a material can be transferred for each call.
When creating material master data, you must transfer the material number, the material type, and the industry sector to the method. You must also enter a material description and its language.
When changing material master data, you need enter only the material number.
In the header data, you must select at least one view for which data is to be created. Depending on the view selected, you must maintain other required parameters. If you do not enter values for all of the required parameters, the method is ended with an error message.
The corresponding fields in the tables (such as CLIENTDATA) must first be supplied with data by the calling program. An indicator must also be set for each of these fields so that the data is written to the database by the method. This requires the calling program to supply the corresponding field with the indicator in a checkbox table (for example, CLIENTDATAX). Checkbox tables exist for tables that do not contain any language-dependent texts (MAKT, MLTX), International Article Numbers (MEAN), or tax classifications (MLAN). Several data records for a material can be created in these tables.
If a structure contains fields for units of measurement (such as structure CLIENTDATA, field BASE_UOM), language indicators (such as structure MATERIALDESCRIPTION, field LANGU), or country indicators (such as structure TAXCLASSIFICATIONS, field DEPCOUNTRY), there is always a field of the same name with the ending _ISO. This makes it possible to transfer either the internally used SAP code or a standardized ISO code for the units of measurement, language indicators, or country indicators. ISO codes are converted to an SAP code internally for further processing. The ISO code is used only if the SAP code is not transferred. If you use ISO codes, there must be a unique assignment of the ISO code to the SAP code in the following activities in Customizing for Global Parameters:
Check Units of Measurement
Define Countries
If you want to maintain long texts (basic data texts, internal comments, purchase order texts, material memos, or sales texts) or customer-defined fields for a material, some special conditions have to be observed. They are described in the documentation for parameters MATERIALLONGTEXT and EXTENSIONIN.
Parameters
HEADDATA
CLIENTDATA
CLIENTDATAX
PLANTDATA
PLANTDATAX
FORECASTPARAMETERS
FORECASTPARAMETERSX
PLANNINGDATA
PLANNINGDATAX
STORAGELOCATIONDATA
STORAGELOCATIONDATAX
VALUATIONDATA
VALUATIONDATAX
WAREHOUSENUMBERDATA
WAREHOUSENUMBERDATAX
SALESDATA
SALESDATAX
STORAGETYPEDATA
STORAGETYPEDATAX
FLAG_ONLINE
FLAG_CAD_CALL
NO_DEQUEUE
NO_ROLLBACK_WORK
RETURN
MATERIALDESCRIPTION
UNITSOFMEASURE
UNITSOFMEASUREX
INTERNATIONALARTNOS
MATERIALLONGTEXT
TAXCLASSIFICATIONS
RETURNMESSAGES
PRTDATA
PRTDATAX
EXTENSIONIN
EXTENSIONINX
Exceptions
Function Group
1001UEB
Thanks,
Sandeep. -
Design-Time Data with external url linking
I have a data list here:
http://facetmedia.com/new/
In the portfolio section I would like to make links which are clickable for the portfolio items. I now know how to use Flex Builder to make external URL links for regular buttons. What I don't know is how to edit this data list to create external links. Any help would be appreciated.Hi trancepriest,
First, if you haven't already, you probably want to read some of the other posts here about creating a URL link button. Once you've tried doing that and feel comfortable setting up a simple URL link in a test project, then you can move on to integrating this functionality into your list.
Now -- the rest depends on how the data is represented in your list. From some of your other posts here, it actually sounds like you're no longer using a list at all, but rather just a tall layout of hardcoded items set inside a scrolling viewport. If this is the case, you can just repeat the simple button creation you did above, placing all the buttons in the appropriate places in your tall layout (on top of / next to each distinct "item" in the layout).
If you're still using a Data List with a Repeated Item, then the initial setup will be a little bit more tricky, but it will save you time in the long run since you only have to set up one button (which will then be repeated for each item). Here's how:
Find the "dataProvider" tag in the code.
Inside that will be a series of "Object" tags listing your current list data. Add a new "url" attribute to each tag, e.g. url="http://www.adobe.com".
Edit the Repeated Item's definition (in the source code, find the itemRenderer attribute on the List tag and ctrl+click it).
Create your URL link button inside there. But -- instead of typing in the URL as a string in quotes (as seen in other examples in this forum), use data.url to refer to the url attribute you added in step 2.
Hope that helps!
- Peter -
Upload time data text file in ztable for HR module
dear all SAP guru's
text file is like that
260807300001
270815480001
270812210002.
1st 4 char is date&month .
2nd 4 char is time.
3rd 4 char is employee no.
i want to upload this file in z table.
when i m uploading the time is not uploading correctly.my condition is like that
already 1 condition is in Z table after that when i upload 2nd entry that time what 1st time is time in and 2nd is time out.
coding as fallows . give any solution for that.
LOOP AT it_out.
CONCATENATE sy-datum0(4) it_out-text2(2) it_out-text+0(2) INTO itab1-val1.
CONCATENATE it_out-text+4(4) '00' INTO itab1-val2.
MOVE it_out-text+8(4) TO itab1-val3.
APPEND itab1.
CLEAR itab1.
ENDLOOP.
SELECT *
FROM ztimedata
INTO TABLE it_ztimedata.
DESCRIBE TABLE it_ztimedata LINES cnt.
LOOP AT it_out.
CLEAR cnt.
LOOP AT itab1.
itab1-date1 = itab1-val1.
itab1-timein = itab1-val2.
itab1-pernr = itab1-val3.
cnt = cnt + 1.
itab1-counter = cnt.
MODIFY itab1.
ENDLOOP.
ENDLOOP.
SORT itab1 BY pernr date1 timein.
DATA cnt1 TYPE i.
DATA p_date LIKE sy-datum.
SELECT SINGLE * FROM ztimedata
INTO CORRESPONDING FIELDS OF it_ztimedata.
LOOP AT itab1.
ztimedata-counter = itab1-counter.
ztimedata-date1 = itab1-val1.
ztimedata-pernr = itab1-val3.
ztimedata-shift = itab1-shift.
ztimedata-attendance = itab1-attendance.
CLEAR IT_ZTIMEDATA-TIMEIN.
IF ztimedata-timein IS INITIAL.
it_ztimedata-timein = itab1-val2.
ztimedata-timein = itab1-val2.
CLEAR it_ztimedata-timeout .
ELSEIF ztimedata-timein IS NOT INITIAL.
it_ztimedata-timeout = itab1-val2.
ztimedata-timeout = itab1-val2.
ENDIF.
append it_ztimedata.
MODIFY ztimedata from it_ztimedata.
COMMIT WORK.
ENDLOOP.
in that coding if any correction pls correct me.
Nikhil NarkhedeHi,
You just try like this..Move date field into one Variable Year field into one variable and
Time field into one variable..Then Pass this field to your screen fields.
Rgs,
Priya.
Maybe you are looking for
-
I can't get my Itunes to connect with the itune store . my itune will not go on line
I down loaded the latest Itune and it will not connect to the internet. when i do a diagnostic it tells me there is live connection but it will not connect to the itune store
-
Unable to scroll down when image is full size in the preview frame.
Since the recent update to Premier Elements I am unable to use the 'down button' on the slider bar to scroll down to the next image when the image is at full size. I am still able to scroll up.
-
Unable to Execute ETL scripts in DAC
I am trying to execute ETL in DAC for Oracle 11.5.10. I keep getting the error below in the DAC log. Am I missing some setup? com.siebel.etl.engine.core.SessionHandler.createNewRunSteps(SessionHandler.java:2888) com.siebel.etl.engine.core.SessionHand
-
Applying keywords to a selection?
Hi, In 1.01 I could select a number of photos, open the keyword HUD, then drag a keyword from the HUD to one of the selected images. All the images would then receive the keyword. Now, in 1.1 when I try this, only the image that I drag the keyword to
-
How to insert comma delimited values into a table
I have a variable holding values like, 'A,Ba,Ccc' OR '1,2,3,4' I want to know how to convert and insert these values in oracle table as seperate rows like, A Ba Ccc[ OR ] 1 2 3 4 Thanks, Previn