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

Enter multiple documents

Former Member
0 Likes
1,017

Hi Experts,

In MIR7, i already have the screen exit . I have created a button for billing document no.(VBRK-VBELN)

against which i have the icon for multiple selction (the same icon that we see in SE11 for entering

multiple inputs). Now my requirement is that, when i click on this button, i should get a pop-up

in which i can enter multiple billing doc. nos. one below the other and then say continue.

Then in the exit ( i also have found out a badi for the same) , i should be able to access these

multiple billing nos. entered along with all the data on the current screen of MIR7 and then

do the further coding.

My problem is that i am not able to enter multiple billing nos. and capture those in the BADI.

Please suggest me if there is any Function Module to enter multiple entries.

Thanks in advance.

Any soln?

Edited by: priti suryawanshi on Apr 22, 2009 8:09 AM

8 REPLIES 8
Read only

Former Member
0 Likes
924

Hi Priti,

Check with the Entry Help/Check tab in SE11 for your field... if there is a Input help or Search help...

You will get that option directly when you declare your field.

If not then you need to write a search help seperately...

can you please mention the BADI & screen exit.

Thanks & regards,

Dileep .C

Read only

0 Likes
924

Thanks Dileep.

The BADI name is BADI_FDCB_SUBBAS04. The search help is elementary search help for field VBRK-VBELN. And i need to enter multiple billing doc nos. But then how can i enter multiple billing nos.

Please provide some soln.

Thanks once again

Read only

0 Likes
924

Hi Priti,

In the BADI Import parameters

>BADI_FDCB_SUBBAS04PUT_DATA_TO_SCREEN_OBJECT-->IM_INVFO is type INVFO which is a BSEG structure..

Means you can pass the values for VBRK-VBELN through this parameters.

If VBRK-VBELN has elementary search help and not allowing to have multiple values,

you just declare, the field by using Match code objects.

Also check that for a single selection there will be o range I think so,.. vbrk-vbeln is automatically has multiple selection by Select-options but not by parameters.

Thanks & regards,

Dileep .C

Read only

0 Likes
924

thanks a lot Dileep.

But when i create the screen and the input field for VBELN, then how to declare select-option as the input field and not parameter so that i can enter multiple inputs??

Read only

0 Likes
924

Hi Priti,

Can you please tell me the place (Exit) where you are adding this Parameter VBRK-VBELN.

and you can also post a new thread asking for how to add select-options in the field-exit.

I hope many experts can react for that. after that you can close both the threads.

But tell m ethe location where you are adding field-exit.

Thanks & regards,

Read only

0 Likes
924

I am using the BADI : BADI_FDCB_SUBBAS04. I have created YBADI_FDCB_SUBBAS04. Then from the 3 tabs: attributes, Interface and Subscreens, i select Subscreen in which i give Program called as SAPLMR1M and screen no 9001. In this i have created the Billin doc. field. And i code in Interface method : GET_DATA_FROM_SCREEN_OBJECT.

And how do i use this Function Module "COMPLEX_SELECTIONS_DIALOG" on the F4 help button???

Read only

Former Member
0 Likes
924

hi ,

use this function module

CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'

EXPORTING

title = 'Pop-up for sales office'

text = 'MODEL'

  • signed = 'X'

  • search_help = v_shelp

tab_and_field = struc_tab_and_field1

TABLES

range = VBRK-VBELN

EXCEPTIONS

no_range_tab = 1

cancelled = 2

internal_error = 3

invalid_fieldname = 4

OTHERS = 5.

IF sy-subrc EQ 0.

  • "your code

  • ELSEIF sy-subrc EQ 2.

  • MESSAGE s899 WITH text-003. "user cancelled

  • ELSEIF sy-subrc 0 AND sy-subrc 2.

  • MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

  • WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

hope it will help u .

Read only

Former Member
0 Likes
924

Dear all,

thanks a lot.

i have rewarded accordingly