2012 Jun 28 3:40 PM
Hi,
i am trying to create a maintenance plan using IP42 transaction using BDC recording.
On manually executing the tcode, a dialog box appears where i can enter the start date (STADT) on pressing the save button.
But this dialog does not appear if i record the same using SHDB. The recording makes use of the system date itself.
Does anyone know how i can get the dialog as well while recording?
the dialog is getting created using the 'SCREEN_SEQUENCE_CONTROL'.
Or is there any other way i can update the start date separately after creating the plant maintenance?
2012 Jun 28 5:10 PM
Thank you call for your answers.
I just used the FM 'mplan_change' to update the STADT field.
Hi,
i am trying to create a maintenance plan using IP42 transaction using BDC recording.
On manually executing the tcode, a dialog box appears where i can enter the start date (STADT) on pressing the save button.
But this dialog does not appear if i record the same using SHDB. The recording makes use of the system date itself.
Does anyone know how i can get the dialog as well while recording?
the dialog is getting created using the 'SCREEN_SEQUENCE_CONTROL'.
Or is there any other way i can update the start date separately after creating the plant maintenance?
2012 Jun 28 3:53 PM
Yes, it happens in lot of BDC recordings.
What you can do is - whenever a pop-up occurs, press F1, go to technical details.
There, you will find "Parameter ID" (if present).
In case it is present, set he value using the syntax SET PARAMETER ID 'XYZ' FIELD lv_abc.
Then the pop-up wont occur during BDC run.
If parameter ID is not present, then sorry, it wont work.
2012 Jun 28 4:08 PM
Thing is i need the pop up in the recording. As i said i need to update the start date which comes only in that pop up..
I just checked recording once again.
If i run the recording in foreground mode (i.e. if i check on ' Not a batch input session' in the create recording pop up) then this pop i need appears..
However i need to call the transaction in background mode so i don't think it is feasible.
2012 Jun 28 4:16 PM
Hi,
Try with this function module 'MPLAN_CREATE'. Which uses API Function 'MPLAN_API'.
Check out the function modules starting with 'MPLAN* in SE37.
Thanks & Regards
Bala Krishna
2012 Jun 28 4:16 PM
Oh yes, you can do that. Check F1 help of CALL TRANSACTION.
there, you will have "options" syntax. within that, you have NOBINPT. Mark it as 'X' and your BDC will run equivalent to "Not a batch input session"
2012 Jun 28 3:57 PM
Hi,
check this link:
http://wiki.sdn.sap.com/wiki/display/ABAP/ECC+standard+Batch+Input+programs
| Object Description | Batch Input program name | Dialog Transaction | IDOC message type | BAPI or similar | Tables |
|---|
| Maintenance plan | RIIBIP00 (general PM direct input & batch input) - LSMW 460/1 to 4 | IP01 to IP03 (and IP10 or IP30 for scheduling parameters, IP42 as a special IP01, etc.) | None | No BAPI but we can officially (see RIIBIP00 program documentation) use functions IBIP_BATCH_INPUT_RFC and IBIP_BATCH_INPUT. Note that the last is called by RIIBIP00 | MPLA |
Also there some exits, probably u can use it.
Regards
2012 Jun 28 4:31 PM
Looking into RIIBIP00 now.. is there any sample code available on how to use it for my purpose.
i tried searching but could not find anything relevant.
it would really be useful
2012 Jun 28 4:04 PM
If stuck with BDC, you could try with report RIIBIP00 or FM IBIP_BATCH_INPUT
(Information can be found under LSMW)
Regards,
Raymond
2012 Jun 28 5:10 PM
Thank you call for your answers.
I just used the FM 'mplan_change' to update the STADT field.
2012 Jun 28 5:10 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |