Calling Batch Input within RFC
Hello experts.
I need to call a Batch Input within a RFC Function. I heard that approach might bring some problems, taking into account that the RFC function must act as a Web Service for a .Net application calling.
Has anybody came up with a similar situation?
Thank you in advance.
Regards,
Andrés Sarcevic.
Hello Andres
Two things come into my mind with this scenario:
1) Does the batch input require that the executing user is a dialog user? If so then the RFC user must be a dialog user as well.
2) Does the RFC user have sufficient authorizations to execute the batch input?
Regards
Uwe
Similar Messages
-
Batch Input in RFC function module
Hi,
I am creating a function that change the location of an equipment in transaction IE02. When i execute this function from SAP it works fine, but when its call from .Net connector does not work, no changes to equipment are realized. i am using call transaction to generate a batch input mode.
i have used submit to programs with the necessary code to execute call transaction IE02 but the results are the same.
How can i execute a batch input from rfc funtion module?
thanks,
Alejandro
Message was edited by: Alejandro LópezAlejandro,
Tengo problemas similares con una rfc y batch input.
Serías tan amable de enviarme el código de la rfc para revisar, chequee los permisos pero igual no actualiza datos.
Gracias. -
Calling Batch input from Web Dynpro - any alternatives for table updates?
Hi!
I am asked to create a screen in Web Dynpro for the GJ30 transaction (JV Cutback mapping of WBS' elements). I created a remote enabled function module which call batch input for GJ30 . Testing the Function modules direclty goes fine, but not calling the function module from WD. then I get the same error message as when I once tried to call SAP GUI from Web Dynpro ( Call transaction /submit program).
My next step is to try to create a batch input session (instead of call transaction) and run it using rsbdcsub, and then check the result of the run. But maybe this will fail of the same reason as well, and I suppose this will make the user waiting longer for the response .
I read somewhere that Web Dynpro does not support batch Input. But what can you do when there are no standard BAPI's for the update you want to do in SAP ? We are not supposed to do direct table updates.
Anyone who have struggled with the same issues and found a solution??
regards, TineHi,
as BDC is calling screens and in Webdynpro ABAP you cannot use SAP GUI sceeen, you are getting short dump.
Refer CNTL_SYSTEM_ERROR in webservices from r/3 system
Thanks,
Chandra -
Should we call a transaction within RFC
Hi,
I have a scenario like this.
There is a portal application where in customers can create inbound delivery.
What I am thinking is portal application will invoke a RFC passing the required data. Within the RFC I can write the BDC code for transaction VL31N to create inbound delivery.
I just wanted to know if this is the correct way to do this.
Should we call a transaction within a RFC ? What are the pros n cons associated with this ?
Is there ne BAPI to create Inbound Delivery (VL31N) ?
Regards,
NitinHi Nitin,
There's unfortunately no BAPI available to create an inbound delivery. So considering that, what you're doing is fine.
I did not get what you meant by calling a transaction within an RFC in this context. If you're talking about a Portal application, what's the point in calling the transaction in the RFC ? Or did you mean that you want to use CALL TRANSACTION USING... ?
Regards,
Anand Mandalika. -
To clarify batch input / call trans
hi all,
1) if submit rsbdcsub and return in report xyz it means batch input session is created and is processed from the report xyz instead of manually process in sm35. rite?
2) may i know if i use call transaction to update instead of via sm35. for example, instead of perform insert_group using 'MB1B' i use
call transaction 'MB1B' using bdcdata
mode
update ......
if use call transaction, bdc_insert should be performed within a loop, rite?
3)no batch input session created if use call transaction, rite? as every bdcdata line will update using MB1B, correct?
thanksHi again,
1. what i need to clarify is that i only can use either 1 of the asterisk line, right? if session i use bdc_insert else use call transaction. correct?
Yes, u are partly correct.
2. To put it transparently
*---- call transaction concept. (session syntax not at all required)
LOOP.
append bdcdata
call transaction 'tcode' using bdcdata
ENDLOOP.
*---- session
bdc_open_group
LOOP.
bdc_insert using t-code
ENDLOOP.
bdc_close_group
regards,
amit m. -
Hi,
i´ve developed an RFC FM and within this FM i use
CALL FUNCTION '
NUMBER_GET_NEXT'
in order to get a sequential number each time the FM is called.
When this RFC FM is called from XI
i get exception 1 (INTERVAL_NOT_FOUND)
Why is this happening?
How can i solve this problem?
Best regards.Hi,
i just do this:
DATA: l_number(15) TYPE C.
IF l_number IS INITIAL.
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
NR_RANGE_NR = '00'
OBJECT = 'ZVLBSOLICI'
IMPORTING
NUMBER = l_number
EXCEPTIONS
INTERVAL_NOT_FOUND = 1
NUMBER_RANGE_NOT_INTERN = 2
OBJECT_NOT_FOUND = 3
QUANTITY_IS_0 = 4
QUANTITY_IS_NOT_1 = 5
INTERVAL_OVERFLOW = 6
BUFFER_OVERFLOW = 7
OTHERS = 8.
ENDIF.
Best regards. -
General BADi question:Call BADi in background job/batch input. Possible?
Hi out there,
i'm using thoe following BADi: /SAPSLL/CTRL_SD0C_R3 (Global Trade Service).
But also, this question is a general question.
If we are calling on screen the transaction VF01, the BADi is called correctly.
But unfortunately it seemes that the BADi is NOT called (im not really sure, cause i can't debug the background task) when we are calling a batch input sequence wth f.e. form bdc_transaction VF01 nothing happens.
Maybe BADi cannot be called in a background task? If it's possible, how could it be monitored. Thare isw no spool entry or anything like that!
Any answer can help.
Thank you in advance!
Regards,
Timo
Edited by: Timo Ehl on Apr 14, 2009 7:27 PMHi,
generally BADIs are called in background mode. You can use the following trick to debug your BADI. You just need to create an infinite loop in your BADI implementation. Something like this.
DATA: l_a TYPE c.
WHILE l_a IS INITIAL.
ENDWHILE.
Obviously when your BADI is called in background mode then program will get into infinite loop. You can easily connect and debug running programs from transaction SM50. You need to select your background process and go to Program/Session -> Program -> Debugging. You will jump directly into your BADI methos with infinite loop. Then you will just set value to l_a and you will start debugging your BADI. If you can not find any process then your BADI is not called in background mode.
Cheers -
FB05 Batch Input / Call Transaction - Does not select amount for payment
Hi,
When I launch the FBWD transaction (returned bills of exchange), the call transaction for G/L account postings is in error. So the FBWD automatically creates a batch input, but when I tried to launch the batch input, it remains unsuccessful.
So I launched the BI in foreground, I can see that the first steps of the account postings are OK, but the BI stops when assigning the payment amounts : the BI found the different postings to clear, but it waits to enter the payment amount.
Manually, I just have to click on 'Accept' or enter the payment amount and click on 'Continue'.
=> Is there anything to do so that there is no payment amount to fill? (there should be something because the FBWD is a standard transaction, so it should work!!)
Can you help me on this?
ThxHi.
Yes the issue has been resolved.
You just have to configure your master record (FS00) by ticking the box 'relevant to cash flow' (XGKON).
Hope it will help you.
Bernard. -
No batch input data for screen occured in Call Transaction method for PA40
Hi,
I creatred an interface to update an employee action data ( Change of position ) PA40 by using Call transaction method.
while executing the interface, I got the below error.
No batch input data for screen MP049100 200
this interface updated the first employee from file, then after it is giving the below error frequently.
No batch input data for screen MP049100 200
regards,
Ashok Reddy RevooriThe infogroup of action Change Position may be having infotype 0491. The infotypes screen sequence is decided based on employee's country grouping and user group. For the employee where you are receiving error, infotype 0491 screen is appearing for which you do not have BDC data.
-
Batch input call transcation performance
Hi ,
We built a tool to generate production versions and recipes via batch input call transcation method .
We did test to generate PVs and recipes for 3500 items (each item have 6 pvs and recipes) and it took 65 hours
the performance is not so good , could give some suggestion to improve the performance ?
Thanks !hi
Create PVs separately & recipies separately
Regards
S -
Why we use more of Batch Input Session instead of Call Transaction?
Hi,
Please tell me why we use more of Batch Input Session instead of Call Transaction??
GaganHi Gagan,
See the Topic: Factors in choosing suitable method of bdc
in ABAP Programming Forum Section.
Or Follow the link below
Re: Factors in choosing suitable method of bdc
Regards,
Vijay -
Writing a Batch Input or Call Transaction program for transaction code MMAM
Hi All,
I'm writing a Batch Input or Call Transaction program for transaction code MMAM (Changing Material Type). The program was able to run but somehow I was not able to capture the log of the output after running MMAM. The log was not part of the SY-MESSAGE so adding in MESSTAB into call transaction doesn't help while BDC session logs shows only the transaction was processed.
Anyone has encounter such problems before?
Regards,
Ramu.Hi
Overview of Batch Input Session
The first batch input method is to create a batch input session. It is the processing of this batch input session that updates the database, not the execution of the batch input program. i am giving you example for Change Vendor you practice for ur tcode
For our example, we will use the Change Vendor transaction (FK02) to add a street address to an already existing vendor.
Step #1
Use SystemStatus menu path to determine online program name (SAPMF02K), screen number (0110)
Step #2
Use F1 key and Technical Info pushbutton in each screen field to be filled to determine the field name.
Step #3
Determine how to proceed in the transaction
(save the record by clicking on the Save pushbutton or pressing the F11 key).
The process flow of CALL TRANSACTION
A program that uses CALL TRANSACTION USING to process legacy data should execute thefollowing steps:
Prepare a BDCDATA structure for the transaction that you wish to run.
Prepare a internal table to store error messages Tab_Mess like structure of BDCMSGCOLL.
With a CALL TRANSACTION USING statement, call the transaction and prepare the BDCDATA structure. For example:
CALL TRANSACTION MM01' USING BDCDATA MODE 'A' UPDATE 'S'. MESSAGES INTO TAB_MESS.
IF SY-SUBRC <> 0.
<Error_handling>.
ENDIF.
Overview of Batch Input Session
The first batch input method is to create a batch input session. It is the processing of this batch input session that updates the database, not the execution of the batch input program -
Problems while creating a batch input
Hi Experts,
I tried to create a batch input program for the transaction CRMD_ORDER for some changes on to the configuration tab to enable the BOM to work. This cannot be done by the BAPIs. I have included the batch input program in a RFC enabled function module to do this job. I am getting the error control framework: fatal error - GUI cannot be reached and Runtime error RAISE_EXCEPTION has occured. This happens only in the mode N, if i re run the session with the other modes there are no problems.
I am call the function module through a method in the controller class.
Replies are highly appreciated.
Thanks in Advance.
Regards,
SuthagarHi Durai,
I tried that option too. Ufortunately the same error has happened. The problem is solved using 3 other function modules, by not using the BDC.
Appreciate your reply. Thanks!
Regards.
Suthagar -
Problem Running a Batch Input!
Good Morning My Friends!
Let me explain how I work today.
I am running an RFC.
This RFC executes a JOB.
JOB executes a Batch Input BACK GROUND.
My problem is this.
If I only run the batch input it works, but when I call the RFC and it creates the job, the Batch Input does not work.
Following is the code that creates the JOB.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>
CALL FUNCTION 'JOB_OPEN'
EXPORTING
delanfrep = ' '
jobgroup = ' '
jobname = jobname
sdlstrtdt = sy-datum
sdlstrttm = sy-uzeit
IMPORTING
jobcount = number
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
IF sy-subrc EQ 0.
SUBMIT zgpm_bat_inpl
WITH nome_per = nome
WITH descri = 'Descricao'
USER sy-uname
VIA JOB jobname NUMBER number
AND RETURN.
exdate = sy-datum.
extime = sy-uzeit.
ADD 30 TO extime.
DATA start_imediato LIKE btch0000-char1 VALUE 'X'.
Define o start do job.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobname = jobname
jobcount = jobcount
sdlstrtdt = exdate
sdlstrttm = extime
strtimmed = start_imediato
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
invalid_target = 8
OTHERS = 9.
IF sy-subrc <> 0.
ENDIF.
ENDIF.
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< <<<<<<<<<<<<<<<<<<<
Following is the code that runs the Batch Input.
program : zgpm_bat_inpl
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>
opt_ctu_params-dismode = 'N'.
opt_ctu_params-updmode = 'S'.
opt_ctu_params-cattmode = ''.
opt_ctu_params-defsize = ''.
opt_ctu_params-racommit = 'X'.
opt_ctu_params-nobinpt = ''.
opt_ctu_params-nobiend = ''.
CALL TRANSACTION (name_tran) USING it_bdcdata
OPTIONS FROM opt_ctu_params
MESSAGES INTO it_msg.
IF sy-subrc <> 0.
LOOP AT it_msg .
WRITE: /, it_msg-dyname,
it_msg-dynumb,
it_msg-msgv1,
it_msg-msgv2,
it_msg-msgv3,
it_msg-msgv4.
ENDLOOP.
endif.
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< <<<<<<<<<<<<<<<<<<<
Att:
Deivison BRSee note 311440. I think you can only run this in the foreground.
Rob -
No batch input data for screen SAPMSSY0 0120 when running BDC in background
Hi Experts,
I am facing an issue "No batch input data for screen SAPMSSY0 0120" when running a BDC for VA01 in background.
The scenario is like we have EDI orders coming into SAP in the form Idocs. These EDI orders are processed by Function module
IDOC_INPUT_ORDERS. This FM module internally calls VA01 (Call Transaction) to create Sales Orders in SAP.
Now we have a scenario in which we want a popup screen to come up & ask for selection of record from list of records displayed on popup screen. In background since we can not show up a screen, we are programatically selecting the record we want & going ahead.
Now what is happening is during foerground the functionality is working abosultely fine, that is incoming idoc is getting posted successfully in SAP with status of 53. Incase of back ground processing of the same we are getting an error
No batch input data for screen SAPMSSY0 0120
I have checked this screen through screen painer(SE51) & i did not find any element on this screen but Element list
shows one field Syst-Xcode.
Kindly guide me how to fix the issue so that the same can work as expected in background.
Regards,
Chetan.Hi Chetan,
List screens utilize SAPMSSY0/0120. Please check within your ABAP coding if you have any customer exit that tries to issue WRITE statements. If so, either remove them or add logic to not issue them in background (e.g. SY-BATCH = 'X'). Another culprit might be a SUBMIT statement in a user exit, which triggers a report with list output. I'm not completely sure, but I think the screen is also used for some value helps (do you have any coding forcing a value help popup?).
Hope this helps, harald
Maybe you are looking for
-
Need to post my songs (song/list) on website for customers. I'm a DJ
Hi! I was browsing the net the other day and I came across this site: http://www.occasionsdjs.com/schoolsongs.html I have a mobile DJ company and would like to add my playlist to my website similar to something like this... anyone have an idea of how
-
Table for Material-Cost center-Settlement Rule_REM product cost collecter
I want to generate a report to see for particular material which cost center and which settlement rule is available. If we go in Product cost collecter (PCC) there we have an option to see settlement rule under header tab, I want to fetch that data f
-
Photoshop Suddenly Stopped Opening Files
Suddenly Photoshop CC will not open any files. I was in the middle of processing photos, finished one up, saved it and tried to open a new file... and nothing. No error message. When I try to open a file, Photoshop lets me browse to the file and clic
-
Weird Lines when Exporting PNGs - help!
I'm getting some funky lines in images I export from Illustrator as PNGs. Anyone else have this issue, or have a solution?
-
Newbie: ActionListener visibility problem
Hello, i'm new to java, and i'm working on a simple small project. I've got a problem with the visability of an object. Maybe you have a look at my code: Used Class public class System1T1P extends xyz { public void switchOn() { // Important READ HERE