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

BDC Program

Former Member
0 Likes
1,757

Moderator message: please use more descriptive subject lines and code tags for your posts.

Hi Experts,

Please help me, i am alone here.

I develping one bdc program for the Tcode(iw51).

The data updataion is Good,But Some popiup is coming like we need click YES or NO.

but when i runn in A mode,Manually we need to move No Botton.

whene i run In N mode,it is takaing Yes.

I want set as No by defult?

for that i cheke in recording,but i am not getting the statment(code) for that.

Please guide me any one, i past my mapping code as shon beloow.

perform bdc_dynpro      using 'SAPLIQS0' '0100'.
perform bdc_field       using 'BDC_CURSOR'
                              'RIWO00-QMART'.
perform bdc_field       using 'BDC_OKCODE'
                              '/00'.
perform bdc_field       using 'RIWO00-QMART'
                               record-qmart_01.
perform bdc_dynpro      using 'SAPLIQS0' '7200'.
perform bdc_field       using 'BDC_OKCODE'
                              '/00'.
perform bdc_field       using 'VIQMEL-QMTXT'
                               record-qmtxt_02.  "'tool magazine motor faulty'.
perform bdc_field       using 'RIWO1-EQUNR'
                               record-equnr_03.  "'100000006'.
perform bdc_field       using 'VIQMEL-PRIOK'
                               record-priok_04.  "'1'.
perform bdc_field       using 'VIQMEL-AUSWK'
                               record-auswk_05.  "'1'.
perform bdc_field       using 'VIQMEL-STRMN'
                               record-strmn_06.  "'07.02.2011'.
perform bdc_field       using 'VIQMEL-STRUR'
                               record-strur_07.  "'09:30:59'.
perform bdc_field       using 'VIQMEL-LTRMN'
                               record-ltrmn_08.  "'10.02.2011'.
perform bdc_field       using 'VIQMEL-LTRUR'
                               record-ltrur_09.  "'10:00:00'.
*perform bdc_dynpro      using 'SAPLSPO1' '0500'.
*perform bdc_field       using 'BDC_OKCODE'
*                              '=OPT2'.
*perform bdc_dynpro      using 'SAPLIQS0' '7200'.
perform bdc_field       using 'RQM02-PARNR_VERA'
                              record-pernr_vera_10. "'00004500'.
perform bdc_field       using 'VIQMFE-FEGRP'
                              record-Fegrp_11.  "CSDMECH'.
perform bdc_field       using 'VIQMFE-FECOD'
                              record-FECOD_12. "M11'.
perform bdc_field       using 'VIQMFE-FETXT'
                              record-fetxt_13. "tool magazine motor faulty'.
perform bdc_field       using 'VIQMUR-URGRP'
                              record-urgrp_14. "CSCMECH'.
perform bdc_field       using 'VIQMUR-URCOD'
                              record-urcod_15. "M41'.
perform bdc_field       using 'VIQMUR-URTXT'
                              record-urtxt_16. "tool magazine motor faulty'.

*PERFORM BDC_DYNPRO      USING 'SAPLIQS0' '7200'.
PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                              '=10\TAB05'.
PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                              'VIQMEL-QMTXT'.
PERFORM BDC_DYNPRO      USING 'SAPLIQS0' '7200'.
*PERFORM BDC_FIELD       USING 'BDC_OKCODE'
*                               '=10\TAB06'.
*PERFORM BDC_FIELD       USING 'BDC_CURSOR'
*                              'VIQMEL-AUSBS'.
perform bdc_field       using 'VIQMEL-AUSVN'
                               record-ausvn_19. "11.02.2011'.
perform bdc_field       using 'VIQMEL-AUZTV'
                               record-auztv_20. "06:27:47'.
perform bdc_field       using 'VIQMEL-AUSBS'
                               record-ausbs_21. "09.02.2011'.
perform bdc_field       using 'VIQMEL-AUZTB'
                               record-auztb_22. "09:28:08'.
perform bdc_field       using 'VIQMEL-MSAUS'
                              'X'.
perform bdc_field       using 'RIWO00-EAUSZT'
                               record-eauszt_23. "'21.00'.
perform bdc_field       using 'VIQMEL-MAUEH'
                               record-maueh_24.  "'HR'.

*AT END OF Count_00.
PERFORM BDC_DYNPRO      USING 'SAPLIQS0' '7200'.
PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                              '=BUCH'.

PERFORM BDC_TRANSACTION USING 'IW51'.

please tell me what statment i have to write for that.

thaks advance

Edited by: Thomas Zloch on Feb 10, 2011 10:08 AM

1 ACCEPTED SOLUTION
Read only

madhu_vadlamani
Active Contributor
0 Likes
1,643

Dear Krishna,

Check that pop up command code ( screen-code) . And insert that in your code.It will solve the issue. Tell if further any issue .

Regards,

Madhu.

14 REPLIES 14
Read only

Former Member
0 Likes
1,643

Hi,

Why have you commented this code

perform bdc_dynpro using 'SAPLSPO1' '0500'.
*perform bdc_field using 'BDC_OKCODE'
* '=OPT2'.
*perform bdc_dynpro using 'SAPLIQS0' '7200'.

Uncomment this part and check.

Regards,

Madhukar Shetty

Read only

madhu_vadlamani
Active Contributor
0 Likes
1,644

Dear Krishna,

Check that pop up command code ( screen-code) . And insert that in your code.It will solve the issue. Tell if further any issue .

Regards,

Madhu.

Read only

0 Likes
1,643

Hi Madu,

Thanks for giving replay.

I am trying that way,

but when i got the recoding , i was not getting the 'No' botton Code,

Please tell me what may the the code will at that scenario.

Please help me

Read only

0 Likes
1,643

Hi Krishan,

While you are getting the screen with yes or no buttons take the screen number and field name . Check while you press what is triggering .

Like this

perform bdc_dynpro using 'SAPMF02D' '0111'.

perform bdc_field using 'BDC_OKCODE'

'/00'.

PERFORM bdc_field USING 'BDC_OKCODE'

'=ENTR'.

Please tell us if you need more help on this.

Regards,

Madhu

Read only

0 Likes
1,643

Hi Krishna,

I will tell you from my experience.... BDC recording is not a good approach and not reliable when then there is a BAPI available for update.

Please use BAPI BAPI_SERVICENOTIFICAT_CREATE. First try to run it in simulation mode by directly executing with required input in SE37 followed by a BAPI_COMMIT.

Once simulation is success you can go for coding with BAPI.....

Regards

Ram

Read only

0 Likes
1,643

Hi MAdhu,

Thanks for giving replay.

i was not getting like this statment

PERFORM bdc_field USING 'BDC_OKCODE'

'=ENTR'.

when i was recording.

than i pasted this code manually than i tryied, Stilll its not woking.

Please any alternative.

THanks advanc

Read only

0 Likes
1,643

Dear Krishan,

Sorry i am not getting any idea. Please show me the screen if you need more help.. The only way you can do is click f1 on that

pop up screen and take the screen no and field and write the code .

Regards,

Madhu.

Read only

0 Likes
1,643

Manhukar shetty is correct.....uncomment that code and try...

OKCODE for "NO" button is '=OPT2'...so just uncomment that....and run the code....it should work....

Regards

Munish Garg

Read only

0 Likes
1,643

Hi Krishna,

Is it done.

Regards,

Madhu.

Read only

0 Likes
1,643

Hi,

Thanks for giving replay.

I tryied with that code also.but it is not work.

.

perform bdc_dynpro using 'SAPLSPO1' '0500'.

perform bdc_field using 'BDC_OKCODE'

'=OPT2'.

The program is not moving to other fields after three fields..

If i comment the dynpro statment than the updation is good, but at the time it is taking Yes only.

Please help me,i am alone and new here.

Thanks advance.

Edited by: krishnab121 on Feb 11, 2011 5:12 AM

Read only

0 Likes
1,643

Hi Experts,

Thanks for all of them for giving replay.

The problem solved

Read only

Former Member
0 Likes
1,643

Hi,

When you do the recording, where that pop up screen is coming you click on the no button.

The same thing will come in the recording. There you need to Pass the value 'X'.

If you do like this it will be processed as No.

Please select with this.

With Regards,

Sumodh.P

Read only

0 Likes
1,643

Hi Sumdoth,

Thanks for giving replay.

I am trying that way,

but when i got the recoding , i was not getting the 'No' botton Code,

Please tell me what the code will at that scenario.

Please help me

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,643

Krishna ,

Why dont you use BAPI_ALM_NOTIF_CREATE instead of BDC.