09-19-2006 9:32 PM
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.
09-19-2006 9: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
09-19-2006 9: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
09-19-2006 9: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
09-20-2006 4: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
10-13-2006 6: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.