Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem while recording IP42 Transaction

Former Member
0 Likes
1,767

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?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,628

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?

9 REPLIES 9
Read only

Former Member
0 Likes
1,628

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.

Read only

0 Likes
1,628

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.

Read only

0 Likes
1,628

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

Read only

0 Likes
1,628

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"

Read only

Former Member
0 Likes
1,628

Hi,

check this link:

http://wiki.sdn.sap.com/wiki/display/ABAP/ECC+standard+Batch+Input+programs

Object DescriptionBatch Input program nameDialog TransactionIDOC message typeBAPI or similarTables

Maintenance planRIIBIP00 (general PM direct input & batch input) - LSMW 460/1 to 4IP01 to IP03 (and IP10 or IP30 for scheduling parameters, IP42 as a special IP01, etc.)NoneNo 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 RIIBIP00MPLA

Also there some exits, probably u can use it.

Regards

Read only

0 Likes
1,628

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

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,628

If stuck with BDC, you could try with report RIIBIP00 or FM IBIP_BATCH_INPUT

(Information can be found under LSMW)

Regards,

Raymond

Read only

Former Member
0 Likes
1,629

Thank you call for your answers.

I just used the FM 'mplan_change' to update the STADT field.

Read only

Former Member
0 Likes
1,628

Solved