Maintain infotype 0015 using bdc background processing
Hi Experts,
While uploading canteen allowance in infotype 0015 using bdc by using call transaction method - background processing, i couldn't able to process the program using background job. The following error was appearing in job overview as shown in below.
Error Msg: 'Cannot perform frontend function in batch input mode'
I have given my program name and variant name in JOB Wizard. Please give me your inputs on this to resolve this.
Hi ,
try to make use of FM HR_INFOTYPE_OPERATION & see its documentation or search SDN for sample program.
regards
Prabhu
Similar Messages
-
Maintain Infotype Text using BDC
Hello All,
How to maintain infotype text using BDC (Edit->maintain text).
Thanks,
RushiHi,
First Manually try to do the same activity using SHDB transaction and give the coding part to ABAPER to follow the same to upload the text to infotypes.
Regards
Team Member. -
Hi all,
I've written a batch input data transfer program, into the internal table of which i upload some data from the presentation server using the GUI_UPLOAD function module . I am trying both session method and call transaction. I am being successful in uploading the data into the SAP system i,e into the database tables when i follow foreground processing for session method and 'MODE A' in call transaction. The problem arises when i try to use the background processing option , the data is not getting uploaded into the SAP system. When i use the foreground option the same data gets uploaded without problem.
For the case of call transaction i tried looking into the message internal table during successful uploads, it'll have success message type and for the PROBLEM case of mine the internal table will be empty.hi,
Yes. You can't run it in background if you are using GUI_UPLOAD.
If the data is in application server, you can read it using OPEN DATASET.. and upload it to internal table in background.
regards,
Beena -
Error in bdc (Background processing not possible for material)
Background processing not possible for material with serial number reqmt
Message no. M7419
Diagnosis
You tried to enter the count for a material managed with serial numbers using background processing. This function is not supported.
Procedure
Use the transaction 'Enter inventory count' (MI04) to enter the count for materials managed with serial numbers.Can You Run this BDC in Foreground Mode
I am doubtfull for that.
please check
Gaurav Sood -
BDC (Background processing in call transaction )
Frnds how to go for background processing in " call transaction method"
We know that " NO display" mode is there but any other method is there in real time.
> in session method while data is getting uploaded suddenly server stops then how to upload the data from the last record where the server stopped.
plz help.
regards,
satyaHi
u have to use No Display mode in call transaction...there is no other go for this...
Otherwise opt for session method and using SUBMIT rstbdcsub. process in background.
When server stops mean while the processing of the session, u can get the processed records info by the log and you can process the failed / un processed records now by foreground in sm35 or u can process the entire file again or u can create the file with only failed records and process .
Regards,
kumar -
Hi,
If you are running a BDC Program in Background ,after some time hwen you saw the result you found some records are not updated( error records ).
What will you do then ?Hi
the error handling will be done like this
<b>Error Handling</b>
Write an error report.
Send the record(s) in error to an error file.
Create a batch input session with the record(s) in error.
To store error messages ( CALL TRANSACTION )
data: begin of Tab_Mess occurs 0.
include structure bdcmsgcoll.
data : end of Tab_Mess,
CALL TRANSACTION FK02 USING BDC_TAB MODE N UPDATE S
MESSAGES INTO TAB_MESS.
IF SY-SUBRC NE 0.
WRITE: / Tab_MESS-TCODE, Tab_MESS-DYNUMB, Tab_MESS-MSGTYP ,
Tab_MESS-MSGID.
ENDIF.
reward if usefull -
Using 'export to database' in background processing
If i call a Function Module in Background will i be able to Export values to Database ?
like:
CALL FUNCTION 'func_name' IN BACKGROUND TASK TABLES table = table1.
and in FM:
EXPORT <one> FROM <two> TO DATABASE indx(some) ID 'some1'.
I am only able to export if i dont use the background processing.
thanks
Edited by: shalaxy s on Feb 10, 2009 3:18 PMHi Shalaxy,
Calling Function Module in Background/Update Task is normally used for bundling techniques where your requirement is to execute all the database updates in single database LUW (Logical Unit of Work) in order to maintain data integrity. All your database updates gets successfull or none of them.
If you call FM in Background Task, it is not executed immediatly, it is registered with all its values and executed only when COMMIT WORK statement is executed.
I think there is no explicit COMMIT WORK statement in your code and that is why you are not able to see effect of EXPORT TO DATABASE statement as LUW is not at all initiated.
I feel, as your requirement is only to suppress the ALV output, you should handle it through some other alternative e.g. using parameter or something like that and If function module you are talking about is Z and you are willing to change it.
Regards,
Vishal -
How to park an FI document using BDC in Workflow
Hi,
I want to park FI document using some background process.
Can i use BDC in my WF for this purpose.
If yes, kindly guide me through this.
RegrdsHi,
Thanks for your reply.
I need to park an FI accounting journal document rather than an AP (invoice) document.
if we can use BDC in workflow,Can you pleas let me know the process ?
Regards -
How to use Workflow Background Engine in Oracle Apps?
I have created the development of a custom workflow,tested it in Developer studio in Workflow administrator and has been working correctly. I was hoping to implement this workflow using Workflow background process Concurrent request and move to production.Unfortunately when submititng the concurrent request I am not receiving any notification eventhough all the time Concurrent request always completes normal.(Also when submitting as concurrent request workflow is not prompting for the itemkey). Is it not possible to implement a workflow in the application using background concurrent process? Any help is appreciated.
Please note that Workflow Background engine is used to process workflows that are in deferred status. It is not used to launch the workflow. You will have to write your own code to launch the Workflow using one of the following methods.
1. Use WF_ENGINE.CreateProcess and WF_ENGINE.LaunchProcess APIs.
2. Register a Business Event, create a subscription to the event to launch the workflow and raise the Business Event from your code.
Workflow Background Engine has parameters such as Itemtype, Min and Max Thresholds, Process Deferred, Process Timeout and Process Stuck... which basically determine the type of background work it has to do.
Please refer to Workflow Developer Guide on how to launch Workflows and the uses of Workflow Background Engine.
Thanks
Vijay -
Any BAPI for Infotype 0015(Additional Data)
Hi,
Can anyone provide information on BAPI for Infotypes 0015(Additional Data).
Your help will be appreciated !!!
Vijayanand.To upload data into infotype 0015
Use HR_INFOTYPE_OPERATION to create your a wrapper BAPI. You would also have to use BAPI_EMPLOYEE_ENQUEUE and BAPI_EMPLOYEE_DEQUEUE for locking and unlocking of the record in your BAPI or program.
Enqueue personnel number
call function 'BAPI_EMPLOYEE_ENQUEUE'
create 0015
call function 'HR_INFOTYPE_OPERATION'
Use FM : HR_MAINTAIN_MASTERDATA to update IT 0015
check bapi : BAPI_HRMASTER_SAVE_REPL_MULT
Dequeue personnel number
call function 'BAPI_EMPLOYEE_DEQUEUE'
You could also use LSMW Tool to upload the data.
Regards
Vasu -
HI ALL,
CAN ANYONE TELL ME HOW TO UPDATE INFOTYPE 0416 USING BDC.
THANKS IN ADVANCE.I HAVE UPDATED MY CONTACT PLZ SEND ME THE DETAILS.
I AM NEW IN THIS FIELD SO I AM NOT ABLE TO WORKOUT. -
I want to covert the BDC to background process
Hi,
I want to change the BDC program to Background processing . I am posting the code below, can you change it.
FUNCTION YFIIN_CRC_SET_FLG1.
""Local Interface:
*" IMPORTING
*" VALUE(CTU) LIKE APQI-PUTACTIVE DEFAULT 'X'
*" VALUE(MODE) LIKE APQI-PUTACTIVE DEFAULT 'N'
*" VALUE(UPDATE) LIKE APQI-PUTACTIVE DEFAULT 'L'
*" VALUE(GROUP) LIKE APQI-GROUPID OPTIONAL
*" VALUE(USER) LIKE APQI-USERID OPTIONAL
*" VALUE(KEEP) LIKE APQI-QERASE OPTIONAL
*" VALUE(HOLDDATE) LIKE APQI-STARTDATE OPTIONAL
*" VALUE(NODATA) LIKE APQI-PUTACTIVE DEFAULT '/'
*" VALUE(QMNUM_001) LIKE VIQMEL-QMNUM
*" EXPORTING
*" VALUE(SUBRC) LIKE SYST-SUBRC
*" TABLES
*" MESSTAB STRUCTURE BDCMSGCOLL OPTIONAL
subrc = 0.
perform bdc_nodata using NODATA.
perform open_group using GROUP USER KEEP HOLDDATE CTU.
perform bdc_dynpro using 'SAPLIQS0' '0200'.
perform bdc_field using 'BDC_CURSOR'
'RIWO00-QMNUM'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RIWO00-QMNUM'
QMNUM_001.
perform bdc_dynpro using 'SAPLIQS0' '7200'.
perform bdc_field using 'BDC_OKCODE'
'=GNOK'.
perform bdc_field using 'BDC_CURSOR'
'VIQMEL-QMNUM'.
perform bdc_dynpro using 'SAPLIQS0' '7200'.
perform bdc_field using 'BDC_OKCODE'
'=BUCH'.
perform bdc_field using 'BDC_CURSOR'
'VIQMEL-QMNUM'.
perform bdc_transaction tables messtab
using 'IQS2'
CTU
MODE
UPDATE.
if sy-subrc <> 0.
subrc = sy-subrc.
exit.
endif.
perform close_group using CTU.
ENDFUNCTION.
==================================
***INCLUDE BDCRECXY
Batchinputdata of single transaction
DATA: BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE.
Nodata-Character
DATA: NODATA_CHARACTER VALUE '/'.
create batchinput session *
FORM OPEN_GROUP
USING P_GROUP LIKE APQI-GROUPID
P_USER LIKE APQI-USERID
P_KEEP LIKE APQI-QERASE
P_HOLDDATE LIKE APQI-STARTDATE
P_CTU LIKE APQI-PUTACTIVE.
IF P_CTU <> 'X'.
CALL FUNCTION 'BDC_OPEN_GROUP'
EXPORTING CLIENT = SY-MANDT
GROUP = P_GROUP
USER = P_USER
KEEP = P_KEEP
HOLDDATE = P_HOLDDATE.
ENDIF.
ENDFORM.
end batchinput session *
FORM CLOSE_GROUP USING P_CTU LIKE APQI-PUTACTIVE.
IF P_CTU <> 'X'.
close batchinput group
CALL FUNCTION 'BDC_CLOSE_GROUP'.
ENDIF.
ENDFORM.
Start new transaction according to parameters *
FORM BDC_TRANSACTION TABLES P_MESSTAB
USING P_TCODE
P_CTU
P_MODE
P_UPDATE.
DATA: L_SUBRC LIKE SY-SUBRC.
IF P_CTU <> 'X'.
CALL FUNCTION 'BDC_INSERT'
EXPORTING TCODE = P_TCODE
TABLES DYNPROTAB = BDCDATA
EXCEPTIONS OTHERS = 1.
ELSE.
CALL TRANSACTION P_TCODE USING BDCDATA
MODE P_MODE
UPDATE P_UPDATE
MESSAGES INTO P_MESSTAB.
ENDIF.
L_SUBRC = SY-SUBRC.
REFRESH BDCDATA.
SY-SUBRC = L_SUBRC.
ENDFORM.
Start new screen *
FORM BDC_DYNPRO USING PROGRAM DYNPRO.
CLEAR BDCDATA.
BDCDATA-PROGRAM = PROGRAM.
BDCDATA-DYNPRO = DYNPRO.
BDCDATA-DYNBEGIN = 'X'.
APPEND BDCDATA.
ENDFORM.
Insert field *
FORM BDC_FIELD USING FNAM FVAL.
IF fval <> NODATA_CHARACTER.
CLEAR BDCDATA.
BDCDATA-FNAM = FNAM.
BDCDATA-FVAL = FVAL.
APPEND BDCDATA.
ENDIF.
ENDFORM.
Insert field *
FORM BDC_NODATA USING P_NODATA.
NODATA_CHARACTER = P_NODATA.
ENDFORM.Hi..
Incase of Session method you have to Schedule the Program RSBDCSUB in backgroud using the Tcode SM36.
This program Takes the Session Name as input and Process the Session in background.
Note: Create a variant with the Session name for this program
<b>Reward if Helpful</b> -
Maintain text for Infotype 0015
Hi,
I want to upload the text to infotype 0015 via Maintain Text.
Can any one help me how to upload the text using export or macros.
Thanks & Regards,
MohanHi Murali,
I haven't tried it.. but may be you can look at the logic in HR_READ_INFTY_NOTE & try to do the opposite.. ie something like
export ptext = text
to database pcl1(tx)
id key ignoring conversion errors.
You may have to read the infotype record first to get the key.. also remember to update the field ITXEX for eahc record.. otherwise, the text cannot be displayed via pa20/30..
~Suresh -
Check BDC Background running process.....Urgent
Hi Friends,
I am running a repprt which containts 3BDCs in background and i have set the mode as 'N' for all three of them but it is not working, it is giving me the error in the output screen as Ext FB05 error or FB02 error
if the same report i am running using foreground 'A' it is working fine.
i am using bdc for fb02,fb05,fd02.
Can anybody tel me where is the error is, or there is any tcode where i can check the error details.
thanks in Advance
MrutyunMrutyunjaya Tripathy,
if it all does not help, you can have your background process wait for debug mode:
perform wait.
form wait.
data wait type flag value 'X'.
while wait = 'X'.
endwhile.
endform.
put and start this form somewhere in your BDC report. Than start in background. Then enter debugger from process overview SM50 or catch active job from JOB overview SM37.
When degugger comes up, clear the WAIT field and step on.
Possibly you can find the error.
Note that a couple of transactions have different behaviour/screen sequence in foreground and in background.
Regards,
Clemens -
Data of alv report in excel file in background processing using open datas
Hi Experts,
I have developed report for purchase register . if i execute this report in background process i am not able to get the downloaded file in excel and output is also not coming properly, columns are going to overlap.
i used open dataset read dataset and close dataset but still problem is not solved. so if anyone have code with this and also which will have concatenate statement in the code send it.
Regards,
RahulHi Rahul,
Ur code shud be like below:
DATA : l_filename2 TYPE string,
v_extn.
SPLIT p_filename AT '.xls' INTO l_filename2 v_extn.
CONCATENATE l_filename2 'downloaded' INTO l_filename2 SEPARATED BY '_'.
CONCATENATE l_filename2 'txt' INTO l_filename2 SEPARATED BY '.'.
OPEN DATASET l_filename2 IN TEXT MODE FOR OUTPUT ENCODING DEFAULT.
IF sy-subrc <> 0.
MESSAGE e499(sy) WITH text-e02.
ENDIF.
LOOP AT it_order_number INTO wa_order_number.
TRANSFER wa_order_number TO l_filename2.
ENDLOOP.
CLOSE DATASET l_filename2.
Now, go to tcode AL11 and check it in the Application server itself.
Hope this helps,
Regards,
Arnab.
Maybe you are looking for
-
Add Microsoft Publisher to Office Professional Plus 2013
Hi, I'm trying to do a command-line installation to add Microsoft Publisher 2013 to an existing Office Professional Plus 2013. It was assumed that our staff would not need it, but as we have already received one request to get it installed, and the s
-
Hello ppl. Having problem getting my laptop's wireless module to work after the latest update. I'm using iphitus beyond kernel 2.6.17-beyond. Everything worked flawlessly before the update. Now loading the ipw3945 module gives in kernel messages: ipw
-
I have an oracle date like this 1112260180 How can I change this to a date time so i can use a Min or Max function ?
-
Lot Number Related to Service Request Tables - Ramya
HIi All, Where is the lot number available in the tables ...which appear in the service request window??????????????????
-
Hi, I am building a cryptex( the dial device from Da Vinci Code)(See attached image) I built a 3D version and I want the user to be able to turn the dials and when they release, it triggers an action. There are two ways I am considering, but not sure