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 in J1IJ BDC

former_member182379
Contributor
0 Likes
1,559

Hi,

I have created a BDC program for J1IJ. While excise invoice selection, I record with pressing the page down of keyboad the conde comes as below.

perform bdc_dynpro using 'SAPMJ1IJ' '0500'.

perform bdc_field using 'BDC_CURSOR'

'LRG23D-EXNUM(01)'.

perform bdc_field using 'BDC_OKCODE'

'=EXIN'.

perform bdc_dynpro using 'SAPMJ1IK' '0300'.

perform bdc_field using 'BDC_CURSOR'

'EXC_TAB-LIFNR(01)'.

perform bdc_field using 'BDC_OKCODE'

'/00'.

perform bdc_dynpro using 'SAPMJ1IK' '0300'.

perform bdc_field using 'BDC_CURSOR'

'EXC_TAB-LIFNR(01)'.

perform bdc_field using 'BDC_OKCODE'

'/00'.

perform bdc_dynpro using 'SAPMJ1IK' '0300'.

perform bdc_field using 'BDC_CURSOR'

'EXC_TAB-DOCYR(09)'.

perform bdc_field using 'BDC_OKCODE'

'=ENTE'.

perform bdc_field using 'EXC_TAB-SEL_OPT(09)'

'X'.

while recording it works the page down it records as '/00' but when iam again executing it it is not doing the page dowan even as per reply in many thread i try by changing the '/00' with '=P' and =P+'', that also not working can give any hint how the keyboard page down to be trigger with J1IJ.

regards,

zafar

16 REPLIES 16
Read only

madhu_vadlamani
Active Contributor
0 Likes
1,528

Hi,

Check with SCPF,PGBA.

Regards,

Madhu.

Read only

0 Likes
1,528

Hi,

I check with this SCPF,PGBA., it is giving error meessage this function not possible.

regards,

zafar

Read only

0 Likes
1,528

Hi,

Can you try with increment in the code.

Regards,

Madhu.

Read only

0 Likes
1,528

Hi,

Can you explain with some more detail what to increment, also by debugging the std. program SAPMJ1IK, i got some hints when we press page down it consider OK_CODE as blank then it set that to 'FILT' i am trying with thta now will update later.

regards,

zafar

Read only

0 Likes
1,528

Hi,

That is simple.I create one variable and i did increment that

l = l + 1.

PERFORM bdc_field USING 'BDC_OKCODE'

'=P+'.

Regards,

Madhu.

Read only

0 Likes
1,528

Hi,

I have already try with '=P+', but with this it is not working, also that filter concept is also not working systems is not record the check box which i have selected for line selection.

when I record the transaction for page down it is shwoing OK-Code as '/00'. which is generally for enter.

perform bdc_dynpro using 'SAPMJ1IK' '0300'.

perform bdc_field using 'BDC_CURSOR'

'EXC_TAB-LIFNR(01)'.

perform bdc_field using 'BDC_OKCODE'

'/00'. "page down

perform bdc_dynpro using 'SAPMJ1IK' '0300'.

perform bdc_field using 'BDC_CURSOR'

'EXC_TAB-LIFNR(01)'.

perform bdc_field using 'BDC_OKCODE'

'/00'. "page down

Even I try by changing the cursor postion to last record of current page.

regards,

zafar

Edited by: zafar karnalkar on Jan 20, 2012 11:46 AM

Read only

0 Likes
1,528

Hi,

Can you help on this.

regards,

zafar

Read only

0 Likes
1,528

I think you're going about this the wrong way. Trying to use 'page up' or 'page down' in batch input is difficult and error prone. If the screen has a 'position' button or field (and this one seems to - the 'entry' field), use it instead to bring a particular line to the top.

Rob

Read only

0 Likes
1,528

Hellow sir,

Thanks for your reply.

The transaction screen on which I am clicking the page down is display transaction where user is selecting the open invoices, and on that screen the standard tool bar is excluded so thee is no page down button on the screen, also when I press the page down button then that command is coming in the include program

MJ1IKI01 of main program SAPMJ1IK, I checked the OK-CODE after pressing the page down button the OK-CODE is coming as ' ' (blank ) but when i debug even the OK-CODE is blank the program comes in the step

IF ok-code = 'FILT'.

CALL SCREEN 310. "

ENDIF.

the program is coming in the call screen 310 even the condiiton is OK-CODE not = FILT.

regards,

zafar

Edited by: zafar karnalkar on Jan 23, 2012 5:29 AM

Read only

0 Likes
1,528

Is the problem on screen 300 or 500 (which)?

Rob

Read only

0 Likes
1,528

Hi,

The problem is on screen 300

perform bdc_dynpro using 'SAPMJ1IK' '0300'.

perform bdc_field using 'BDC_CURSOR'

'EXC_TAB-LIFNR(01)'.

perform bdc_field using 'BDC_OKCODE'

'/00 '.

regards,

zafar

Read only

0 Likes
1,528

Hi,

Can you help on this issue.

regards,

zafar

Read only

0 Likes
1,528

I don't see a table control at all on this screen.

Rob

Read only

0 Likes
1,528

Hi,

The program name is SAPMJ1IK containing screens 0100, 0200, 0300, 0310 on screen 0300 table control is EXCISE and standard tool bar is hide, SAP ECC6 our patch level is SAP_APPL : SAPKH60020 release 600.

regards,

zafar

Read only

0 Likes
1,528

What haapens if you press the continue button in the online transaction?

Rob

Read only

0 Likes
1,528

Hi,

The continue button on that screen act as a enter key.

regards,

zafar