Skip to Content
author's profile photo Former Member
Former Member

selection table multiple entries

I am trying to submit SD70AV3A to print billing document.

I am taking Doc no as select-options. Program should take in doc no, get all output type & transmission med for the doc no. Submitting works well if doc no is a parameter, if it is a range, it is only doig it for th elow field. I have a seltab like rsparams.

data: begin of seltab occurs 0.

include structure rsparams.

data: end of seltab.

start-of-selection.

select kschl nacha anzal dimme delet from nast into corresponding

fields

of itab where

objky in s_vbeln and KAPPL = 'V3'.

append itab.

endselect.

sort itab by kschl.

read table itab index 1.

i_kschl = itab-kschl.

describe table itab lines n.

read table itab index n.

l_kschl = itab-kschl.

seltab-selname = 'rg_vbeln'.

seltab-kind = 'S'.

seltab-sign = 'I'.

seltab-option = 'BT'.

seltab-low = s_vbeln-low.

seltab-high = s_vbeln-high.

append seltab.

seltab-selname = 'rg_kschl'.

seltab-kind = 'S'.

seltab-sign = 'I'.

seltab-option = 'BT'.

seltab-low = i_kschl.

seltab-high = l_kschl.

append seltab.

seltab-selname = 'rg_nacha'.

seltab-kind = 'S'.

seltab-sign = 'I'.

seltab-option = 'BT'.

seltab-low = '1'.

seltab-high = '8'.

append seltab.

IF reissue = 'X'.

SUBMIT SD70AV3A via selection-screen

with selection-table seltab.

.

..

Any suggestion is appreciated.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2006 at 08:37 PM

    Instead of:

    seltab-low = s_vbeln-low.
    seltab-high = s_vbeln-high.
    

    Try:

    seltab-low = s_vbeln[1]-low.
    seltab-high = s_vbeln[1]-high.
    

    You should probably put this inside a loop to ensure you get all values.

    Rob

    Message was edited by: Rob Burbank

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2006 at 08:43 PM

    Hi Priyanka,

    There can be multiple intervals for the select option s_vbeln. So you will have to put the following code.

    seltab-selname = 'rg_vbeln'.

    seltab-kind = 'S'.

    seltab-sign = 'I'.

    seltab-option = 'BT'.

    loop at s_vbeln.

    seltab-low = s_vbeln-low.

    seltab-high = s_vbeln-high.

    append seltab.

    endloop.

    Regards,

    Soorya

    Pls reward points if helpul

    Message was edited by: Soorya Pillai

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2006 at 08:44 PM

    Hi,

    When I've submitted another programs and passed a select-option i've done it like this way:

    IF reissue = 'X'.

    SUBMIT SD70AV3A via selection-screen

    with selection-table <b>IN</b> seltab.

    Hope it helps.

    Regards,

    Gilberto Li

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 20, 2006 at 03:41 AM

    Hi

    Just want to suggest that you might find inconsistency

    if user selects multiple single billing documents.

    Try if the below code works for you.

    select-options: s_vbeln for vbrk-vbeln.
    data: l_kschl1 like nast-kschl,
          l_kschl2 like nast-kschl,
          l_vbeln1 like nast-objky,
          l_vbeln2 like nast-objky.
    
    select min( objky ) max( objky ) 
           min( kschl ) max( kschl )
      into (l_vbeln1, l_vbeln2, l_kschl1, l_kschl2)
      from nast  
      where objky in s_vbeln 
       and  KAPPL = 'V3'.
    
    write:/ l_vbeln1, l_vbeln2.
    write:/ l_kschl1, l_kschl2.

    Kind Regards

    Eswar

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2006 at 05:26 PM

    After creating the PO with BAPI_PO_CREATE1 the order has to be automatically confirmed by updating the PO with confirmation line 'AB'.For this i have to call the FM ME_CONFIRMATION_UPDATE_AVIS.I donno what values i have to pass for this FM.The input for this is the table with structure same as UEKES. There are two fields in that quantity as per vendor confirmation and quantity reduced ,i dont understand from where to take these values. Are there any fields in the BAPI output tables which gives these values.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.