No of Purchase Orders... BW Report
Hello
I have a report in BW which shows number of purchase orders for a particular Purchase Organisation,Purchasing doc. type and Purch. doc. category.
Is there any report / transaction in R3 side where I can see the number of purchase orders for the above filter conditions.
I tried using the EKKO table but the data is not matching.
Pl help ... Will say thanks with good points....
regards
ViVa
If number of records doesn't match with EKKO table you had to be doing something wrong. Every purchase order header is in EKKO table. Be sure to do correct selection when you are seeing EKKO table or review the way in which you are counting PO in BW.
Similar Messages
-
Purchase Order Committments report
Hi All
Can anyone advise as to what reports i can run that will show me what Purchase orders have no goods delivered against it and goods partly delivered or over delivery
against it.
A sort of outstanding Purchase Order/Deliveries report
VishnuUSe transaction ME2L or ME2M with scope of list ALLES and selection parameter open good receipt will give you the pending GR report along with partial
-
Hi Experts,
I am customizing the Purchase Order detail Report .Here I need to add total tax details .
I found tax details are in po_distribution_all table.Here tax amount is caluculated for each and every line.
in po_distribution table we have recoverabl and nonrecovera0ble tax
i am following this
tax amount per line =recoveralbe tax + non recoverable tax
tax amount per header= sum(tax amount per line)
total amount = sum(linetotal per header) + sum(tax amount per header)
Please tell me breifly how many forumla colums or summary colums we have to take to get the output.
and
Another requirement is
while creating purchase order template
if there are so many lines per one header
then in second page i need to display the lines data with line headings also(eg:ref num, item,item description,need by date).
so for eg if there are 100 lines per one header
then
header details are displayed on first page (ship to , bill to , supplier)
line details are also displayed on first page(ref num,item, item description,need by date,amount,qty,uom)
suppose in first page first 10 lines are displayed
from second page remaing 90 lines are displayed with line hedadings(ref num,item, item description,need by date,amount,qty,uom)
and in the last page we will get footer(terms and conditions,buyer,email)
Could you please tell me how we will solve them..
Thanks
Ashok
Edited by: 886640 on Oct 27, 2011 12:16 AMHi Experts,
I am customizing the Purchase Order detail Report .Here I need to add total tax details .
I found tax details are in po_distribution_all table.Here tax amount is caluculated for each and every line.
in po_distribution table we have recoverabl and nonrecovera0ble tax
i am following this
tax amount per line =recoveralbe tax + non recoverable tax
tax amount per header= sum(tax amount per line)
total amount = sum(linetotal per header) + sum(tax amount per header)
Please tell me breifly how many forumla colums or summary colums we have to take to get the output.
and
Another requirement is
while creating purchase order template
if there are so many lines per one header
then in second page i need to display the lines data with line headings also(eg:ref num, item,item description,need by date).
so for eg if there are 100 lines per one header
then
header details are displayed on first page (ship to , bill to , supplier)
line details are also displayed on first page(ref num,item, item description,need by date,amount,qty,uom)
suppose in first page first 10 lines are displayed
from second page remaing 90 lines are displayed with line hedadings(ref num,item, item description,need by date,amount,qty,uom)
and in the last page we will get footer(terms and conditions,buyer,email)
Could you please tell me how we will solve them..
Thanks
Ashok
Edited by: 886640 on Oct 27, 2011 12:16 AM -
With reference to contract Purchase Order Analysis report.
Hi,
I need SAP Standard " With reference to contract Purchase Order Analysis report"
Regards,
Priya.Hi,
there is no standard report to get the PO list wrf to contracts,
but you can get through SE16 from the table EKPO, where you have to pass the contract numbers ( get through ME3L,ME3M or ME3C ) in the field KONNR,
lakshmi reddy -
R12 - How to customize the seeded Purchase Order PDF report
Hi,
We need to customize the layout AND the data of the seeded Purchase Order pdf report that is generated in PO Summary form when user picks drop-down menu Inquire->View Document. I know how to set up the Document Type with a customized layout but I do not know how to update the XML data that feeds the layout.
Thanks, MikeMike,
Please review the following documents.
Note: 374165.1 - How To Customize The PDF Output For Printed Purchase Order Report (Portrait) ?
Note: 406094.1 - How To Diagnose Issues Within Oracle Purchasing PDF File Creation for Printing
Regards,
Hussein -
Can we create purchase order through report programming?
hi experts.....
can we create purchase order through report programming?If yes plz give me the thread details?Hi,
Use this code in a program by using a BAPI function module
Anothe rway is using classical/ALV report using call transaction from a report for changing the PO
loop at i_header.
header-ref_1 = i_header-legacy.
headerx-ref_1 = c_x.
header-doc_type = i_header-bsart.
headerx-doc_type = c_x.
header-comp_code = i_header-bukrs.
headerx-comp_code = c_x.
header-purch_org = i_header-ekorg.
headerx-purch_org = c_x.
header-pur_group = i_header-ekgrp.
headerx-pur_group = c_x.
header-vendor = i_header-lifnr.
headerx-vendor = c_x.
concatenate i_header-bedat+4(4)
i_header-bedat+0(2)
i_header-bedat+2(2)
into header-doc_date.
headerx-doc_date = c_x.
header-created_by = i_header-ernam.
headerx-created_by = c_x.
header-currency = i_header-waers.
headerx-currency = c_x.
concatenate i_header-kdatb+4(4)
i_header-kdatb+0(2)
i_header-kdatb+2(2)
into header-vper_start.
headerx-vper_start = c_x.
loop at i_items where legacy = i_header-legacy.
item-po_item = i_items-ebelp.
itemx-po_item = i_items-ebelp.
itemx-po_itemx = c_x.
if i_header-bsart = 'NB'.
item-material = i_items-ematn.
itemx-material = c_x.
schedule-quantity = i_items-menge * 1000.
schedulex-quantity = c_x.
else.
item-short_text = i_items-ematn.
itemx-short_text = c_x.
item-matl_group = '1000'.
itemx-matl_group = c_x.
schedule-quantity = '1'.
schedulex-quantity = c_x.
endif.
item-plant = i_items-werks.
itemx-plant = c_x.
schedule-po_item = i_items-ebelp.
schedule-sched_line = '1'.
schedulex-po_item = i_items-ebelp.
schedulex-sched_line = '1'.
schedulex-po_itemx = c_x.
schedulex-sched_linex = c_x.
concatenate i_items-eildt+0(2)
i_items-eildt+2(2)
i_items-eildt+4(4)
into schedule-delivery_date.
schedulex-delivery_date = c_x.
item-price_unit = i_items-peinh * 100.
itemx-price_unit = c_x.
item-tax_code = i_items-mwskz.
itemx-tax_code = c_x.
item-shipping = i_items-evers.
itemx-shipping = c_x.
account-po_item = i_items-ebelp.
accountx-po_item = i_items-ebelp.
accountx-po_itemx = c_x.
if i_header-bsart = 'FO'.
item-pckg_no = sy-tabix.
itemx-pckg_no = 'X'.
limits-pckg_no = sy-tabix.
limits-limit = i_items-overalllimit.
limits-exp_value = i_items-expectedoverall.
posrvaccessvalues-pckg_no = sy-tabix.
posrvaccessvalues-line_no = '0'.
posrvaccessvalues-serno_line = '00'.
posrvaccessvalues-percentage = '100.0'.
posrvaccessvalues-serial_no = '01'.
account-serial_no = '1'.
accountx-serial_no = '1'.
accountx-serial_nox = c_x.
account-quantity = '1'.
accountx-quantity = c_x.
call function 'CONVERSION_EXIT_ALPHA_INPUT'
exporting
input = i_items-kostl
importing
output = account-costcenter.
accountx-costcenter = c_x.
call function 'CONVERSION_EXIT_ALPHA_INPUT'
exporting
input = i_items-sakto
importing
output = account-gl_account.
accountx-gl_account = c_x.
item-acctasscat = i_items-knttp.
itemx-acctasscat = c_x.
item-item_cat = i_items-epstp.
itemx-item_cat = c_x.
endif.
append:item,itemx,schedule,schedulex,account,accountx,limits,posrvaccessvalues.
clear :item,itemx,schedule,schedulex,account,accountx,limits,posrvaccessvalues.
endloop.
call function 'BAPI_PO_CREATE1'
exporting
poheader = header
poheaderx = headerx
* POADDRVENDOR =
* TESTRUN =
* MEMORY_UNCOMPLETE =
* MEMORY_COMPLETE =
* POEXPIMPHEADER =
* POEXPIMPHEADERX =
* VERSIONS =
* NO_MESSAGING =
* NO_MESSAGE_REQ =
* NO_AUTHORITY =
* NO_PRICE_FROM_PO =
importing
exppurchaseorder = ponumber
* EXPHEADER =
* EXPPOEXPIMPHEADER =
tables
return = return
poitem = item
poitemx = itemx
* POADDRDELIVERY =
poschedule = schedule
poschedulex = schedulex
poaccount = account
* POACCOUNTPROFITSEGMENT =
poaccountx = accountx
* POCONDHEADER =
* POCONDHEADERX =
* POCOND =
* POCONDX =
polimits = limits
* POCONTRACTLIMITS =
* POSERVICES =
posrvaccessvalues = posrvaccessvalues.
* POSERVICESTEXT =
* EXTENSIONIN =
* EXTENSIONOUT =
* POEXPIMPITEM =
* POEXPIMPITEMX =
* POTEXTHEADER =
* POTEXTITEM =
* ALLVERSIONS =
* POPARTNER =
if ponumber eq space.
loop at return where type = 'E'.
clear buffer.
move-corresponding return to e_return.
concatenate i_header-legacy e_return into buffer.
transfer buffer to p2_file.
endloop.
move-corresponding i_header to i_eheader.
transfer i_eheader to p3_file.
loop at i_items where legacy = i_header-legacy.
move-corresponding i_items to i_eitems.
transfer i_eitems to p4_file.
endloop.
else.
commit work and wait.
endif.
clear:ponumber,header,headerx,item,itemx,account,accountx,limits,return,schedule,schedulex,posrvaccessvalues.
refresh:item,itemx,account,accountx,limits,return,schedule,schedulex,posrvaccessvalues.
endloop.
close dataset p2_file.
close dataset p3_file.
close dataset p4_file.
Regards
Krishna -
Purchase Order Print Report Compilation Error
Hi,
While compiling the report in Reports Builder Purchase Order Print Report , we get the following error:
identifier GET_PRECISION must be declared.
Where as this is a seeded function inbuild in the Program Units.
Also while compiling on server we get the error.
Cannot convert rdf to rep.
Thanks,
Angelica.Couldn't find how to copy the PO layout over using copy express.
I did compare the RDOC fields for POR20002 in both databases and they are Identical.
In Crystal Reports, I did a formula search for N_Decimal_Places and it found nothing. Then I did a search for 'length' in all formulas and it finds length in N_Decimal_Places. When I double click on N_Decimal_Places it clears the screen and never shows the formula. This happens in both layouts for my test database and SBODemoUS.
Again, SBODemoUS works correctly and AAA_TEST give the error. -
hi,
can any one give an idea regarding to generate a report for purchase order status
this report gives a list of purchase orders that are against given sales order item this report also gives the delayed status of purchase orders.
1. user will give the sales order no: , customer , plant as input
2. based on that input if stock is available it directly goes to production order other wise it has go to purchasing orderDear Anil ,
Check for a Standard Report in SD ...
or else , you can directly extract VBBE table for Open Orders.
Thanks,
Krish -
Hi,
Is there a report that I can run that will give me the following information with regards to Purchase Orders released: PO number, Date Entered, Username, Release Code, Release Date and Released By?
Thank-you in advance.
Regards,
TracyHi,
I think there is no such report as you have to develop the report through abap . With the useage of the tables i.e. EKKO,EKPO and few more you can have all this information.. -
Purchase Order Condition Report
Dear all
Can we get report for changes in Purchase Order Tax change (i.e. after saving PO initially, users modify the tax code) I want this report to check the user awareness.
Pl help
If I could get the report on basis of user id basis.
ManojHi Manoj,
As Steve said, use CDHDR / CDPOS.
Details are as follows:
OBJECTCLS = EINKBELEG
OBJECTID = PO NO
TABLE NAME = EKPO
TABLE KEY = MANDTPONOITEM
FNAME = MWSKZ --- Tax code Change
CHNGID = 'U'
Based on this you can get the new value v/s old value
prasanna -
Purchase Order Standard Report
Dear Experts,
I am new to MM module.
I want a standard report which can display purchase order report.
Please help me. Its important.Hi Charan,
This is a forum about certificaiton. So please start a new question in the application forum, I assuem in your case you could post in SCM forum.
B.R. Jenny -
Hi Experts,
I am creating a report regarding Purchase Order Pending Details.
I want to display only the pending order detail where as report display all the order detail.
Please help me out how to get this report.
Regards
RakeshHAi
Please take reports from ME2N or ME2M .
Under selection parameters please select WE101. WHich will give open purchase orders where GR is not yet completed.
Pushkala -
Hi All,
I want to take report of "Purchase order text" which is stored in material master.
Any Idea pls let me know....
Thanks
HariDear Hari,
You can use BAPI_PO_GETDETAIL1 or BAPI_PO_GETDETAIL to retrieve the data in your program.Enter the PO number and tick the item text and header text indicator.
Regards,
w1n -
Purchase Order Crystal Report Layout Error
The stock Crystal Report Layout for Purchase Orders is giving me the following error:
A subscript must be between 1 and the size of the array.
Details: errorKind
Error in File POR20002 {b89f97ad-bf1f-447b-8bb4-b3d2e5219269}
{3C375C81-7D37-475D-9BCB-1703CE533B65}.rpt
Error in formula N_Decimal_Places:
'// To get the length of decimals
A subscript must be between 1 and the size of the array.
Details: errorKind
I looked in the Crystal Reports Formula fields and could not find N_Decimal_Places.
Has any one else had the problem with the PO layout that comes with Business One? If so, how did you fix it?Couldn't find how to copy the PO layout over using copy express.
I did compare the RDOC fields for POR20002 in both databases and they are Identical.
In Crystal Reports, I did a formula search for N_Decimal_Places and it found nothing. Then I did a search for 'length' in all formulas and it finds length in N_Decimal_Places. When I double click on N_Decimal_Places it clears the screen and never shows the formula. This happens in both layouts for my test database and SBODemoUS.
Again, SBODemoUS works correctly and AAA_TEST give the error. -
How to find import and local purchase order for report
Dear Friends,
Please help me in coding this report, =below is the functional requirement.
1. To find the list of Import or Local Purchase Orders(purchase orders to be procured from another country).
2.Once the import purchase order is selected .The report sould display the PO number ,Currency , Value , po Date , Planned recipt date ,
BUy from vendor , ship from vendor , Origin Country, Destination country, and Status of the PO.
I am clear about the PO number Currency ,value and po date but could not get how do i fetch the details like:--Planned recipt date ,
BUy from vendor , ship from vendor , Origin Country, Destination country, and Status .
Your help is greatly appreciated.Hi,
Buy from vendor is the real vendor who is supplying the items while Ship from vendor is the vendor who just arrange for the transport. This should be maintained in the pruchase order, just consult with your MM consultant to get where they are storing those details
Regards
Karthik D -
Displaying Purchase order in report
Hi Expert
I am modifing a report for Mangement , They want to display purchase order in the report .....So I did the following modification but when I run the report all the fields are displaying and purchase order is showing empty, though I have added the po in the table and if you see my coding for adding po
data: vbkd-bstkd.
clear po_number.
select single bstkd into po_number
from vbkd
where vbeln = s903-vgbel.
call function 'RSAQRT_TEXTFIELD_CONTEXT'
exporting name = 'S903'
struc = S903.
call function 'RSAQRT_TEXTFIELD_CALL'
exporting struc = S903
name = 'S903'
fname = 'MATNR'
importing text = TEXT_S903_MATNR.
Can anyone help me please ....................it is very urgent
include /1BCDWB/IQ000000000226DAT
*{ INSERT 2
constants:
begin of %iqid,"type aqliqid
workspace type aql_wsid value ' ',
usergroup type aql_ugroup value 'SALES',
query type aql_query value 'BILL_DEL',
lid type aql_lid value 'G00',
struct type aql_tname value '/1BCDWB/IQ000000000226',
infoset type aql_iset value 'S903',
end of %iqid.
data %runmode type aqlimode.
data %seloptions type table of rsparams with header line.
field-symbols <%selopt> type rsparams_tt.
data TEXT_S903_FKART like TVFKT-VTEXT.
data TEXT_S903_FKSTO like DD07D-DDTEXT.
data TEXT_S903_GEWEI like T006A-MSEHL.
data TEXT_S903_KDKG1 like TVKGGT-VTEXT.
data TEXT_S903_KDKG2 like TVKGGT-VTEXT.
data TEXT_S903_KDKG3 like TVKGGT-VTEXT.
data TEXT_S903_MATNR like MAKT-MAKTX.
data TEXT_S903_MATNR_01 like MAKT-MAKTX.
data TEXT_S903_PERIV like T009T-LTEXT.
data TEXT_S903_PKUNAG like KNA1-NAME1.
data TEXT_S903_PKUNAG_07 like KNA1-NAME1.
data TEXT_S903_PKUNWE_01 like KNA1-NAME1.
data TEXT_S903_PMATN like MAKT-MAKTX.
data TEXT_S903_SPART like TSPAT-VTEXT.
data TEXT_S903_VKBUR like TVKBT-BEZEI.
data TEXT_S903_VKBUR_05 like TVKBT-BEZEI.
data TEXT_S903_VKORG like TVKOT-VTEXT.
data TEXT_S903_VKORG_03 like TVKOT-VTEXT.
data TEXT_S903_VOLEH like T006A-MSEHL.
data TEXT_S903_VRKME like T006A-MSEHL.
data TEXT_S903_VSTEL like TVSTT-VTEXT.
data TEXT_S903_VTWEG like TVTWT-VTEXT.
data TEXT_S903_VTWEG_04 like TVTWT-VTEXT.
data TEXT_S903_WAERK like TCURT-LTEXT.
data TEXT_S903_WERKS like T001W-NAME1.
data TEXT_S903_WERKS_01 like T001W-NAME1.
data TEXT_S903_ZZ_MGN like DD07D-DDTEXT.
data SP_ADD like VBPA-ADRNR.
data CUST_NAME like KNA1-NAME1.
data SHADD like VBPA-ADRNR.
data SHNAME like KNA1-NAME1.
data ADDRS like ADRC-STREET.
data MANDCK like LIKP-BOLNR.
data CMDDOC like LIKP-XABLN.
data EXT_DEL like LIKP-LIFEX.
*****ADD BY PIROZ
data PO_NUMBER like VBKD-BSTKD.
*data TEXT_S903_MATNR like MAKT-MAKTX.
TOTAL
data %Z_0001 like S903-NETWR.
CON_MARG
data %Z_0004 like %Z_0001.
CON_MRG_PC
data %Z_0005 like %Z_0001.
tables S903.
Function----
FUNCTION /1BCDWB/IQ000000000226EXTR.
""Local interface:
*" TABLES
*" %SELOPT STRUCTURE RSPARAMS
*" %DTAB STRUCTURE /1BCDWB/IQ000000000226
*" CHANGING
*" VALUE(%RTMODE) TYPE AQLIMODE
*" EXCEPTIONS
*" NO_DATA
*" NO_AUTHORIZATION
*" ILLEGAL_PACKAGE
*" CURSOR_NOT_OPEN
call function 'RSAQRT_SET_IDENTIFICATION'
exporting iqid = %iqid
sscr_report = sy-repid
changing rtmode = %rtmode.
if %rtmode-pack_on = space or %rtmode-first_call = 'X'.
call function 'RSAQRT_FILL_SELECTIONS'
tables selopt = %selopt
changing rtmode = %rtmode.
endif.
call function 'RSAQRT_INIT_TEXTHANDLING'
exporting class = 'CL_TEXT_IDENTIFIER'
wsid = ' '
infoset = 'S903'.
if %rtmode-no_authchk = space
and ( %rtmode-pack_on = space or %rtmode-first_call = 'X' ).
refresh %auth_tabs.
append 'S903' to %auth_tabs.
call function 'RSAQRT_AUTHORITY_CHECK'
exporting
auth_tabs = %auth_tabs
changing
rtmode = %rtmode
exceptions
NO_AUTHORIZATION = 1.
if sy-subrc = 1.
raise no_authorization.
endif.
endif.
data: %l_no_further_fetch type flag, " stop fetching
%l_hits_cnt type i. " cnt for %dbtab entries
if %rtmode-pack_abort = 'X'.
if not %dbcursor is initial.
close cursor %dbcursor.
endif.
exit.
endif.
if %rtmode-pack_on = space or %rtmode-first_call = 'X'.
if not %dbcursor is initial.
close cursor %dbcursor.
endif.
open cursor with hold %dbcursor for
select FKDAT VBELN FKART VKORG PKUNAG PKUNWE_01 MATNR VKBUR FKIMG VRKME FKSTO WERKS NETWR WAERK MWSBP VGBEL VGPOS ERNAM POSNR
VSTEL AUBEL KZWI1 KZWI2 ZZ_CART ZZ_MINCAR ZZ_WKND ZZ_FUEL UMSMNG KZWI4 KZWI3 ZZ_MGN WAVWR SPTAG
from S903
where SPTAG in SP$00001
and ERNAM in SP$00012
and WERKS in SP$00008
and MATNR in SP$00006
and PKUNAG in SP$00004
and VKORG in SP$00005
and FKART in SP$00007
and VBELN in SP$00002
and FKDAT in SP$00003.
endif.
if %dbcursor is initial.
raise cursor_not_open.
endif.
while %l_no_further_fetch = space.
fetch next cursor %dbcursor
into corresponding fields of S903.
if ( ( %rtmode-acc_check = 'X' and
sy-dbcnt > %rtmode-acc_number )
or sy-subrc <> 0 ).
%l_no_further_fetch = 'X'.
else.
call function 'RSAQRT_TEXTFIELD_REFRESH'.
additional coding:
data: vbpa-kunnr,
vbpa-parvw,
vbpa-adrnr.
clear sP_add.
select single adrnr into SP_ADD
from vbpa
where vbeln = s903-vbeln and
kunnr = s903-pkunag and
parvw = 'AG'.
additional coding:
select single name1 into cust_name
from adrc
where addrnumber = sp_add.
additional coding:
data: adrc-name1,
adrc-addrnumber.
clear shadd.
select single adrnr into SHADD
from vbpa
where vbeln = s903-vbeln and
kunnr = s903-pkunwe_01 and
parvw = 'WE'.
additional coding:
clear shname.
select single name1 into shname
from adrc
where addrnumber = shadd.
additional coding:
*{ REPLACE 1
\ data: adrc-street.
\ select single street into addrs
\ from adrc
\ where addrnumber = shadd.
data: adrc-street.
select single street into addrs
from adrc
where addrnumber = shadd.
*} REPLACE
additional coding:
data: likp-bolnr.
clear mandck.
if s903-vgbel ne space.
select single bolnr into mandck
from likp
where vbeln = s903-vgbel.
endif.
check SP$00009.
additional coding:
data: likp-xabln.
clear cmddoc.
select single xabln into cmddoc
from likp
where vbeln = s903-vgbel.
check SP$00010.
additional coding:
data: likp-lifex.
clear ext_del.
select single lifex into ext_del
from likp
where vbeln = s903-vgbel.
check SP$00011.
additional coding:
data: vbkd-bstkd.
clear po_number.
select single bstkd into po_number
from vbkd
where vbeln = s903-vgbel.
call function 'RSAQRT_TEXTFIELD_CONTEXT'
exporting name = 'S903'
struc = S903.
call function 'RSAQRT_TEXTFIELD_CALL'
exporting struc = S903
name = 'S903'
fname = 'MATNR'
importing text = TEXT_S903_MATNR.
additional coding:
%Z_0001 = S903-NETWR + S903-MWSBP .
%dtab-FKDAT = S903-FKDAT .
%dtab-VBELN = S903-VBELN .
%dtab-FKART = S903-FKART .
%dtab-VKORG = S903-VKORG .
%dtab-PKUNAG = S903-PKUNAG .
%dtab-CUST_NAME = CUST_NAME .
%dtab-PKUNWE_01 = S903-PKUNWE_01 .
%dtab-SHNAME = SHNAME .
%dtab-ADDRS = ADDRS .
%dtab-MATNR = S903-MATNR .
%dtab-TEXT_S903_MATNR = TEXT_S903_MATNR .
%dtab-VKBUR = S903-VKBUR .
%dtab-FKIMG = S903-FKIMG .
%dtab-VRKME = S903-VRKME .
%dtab-FKSTO = S903-FKSTO .
%dtab-WERKS = S903-WERKS .
%dtab-NETWR = S903-NETWR .
%dtab-WAERK = S903-WAERK .
%dtab-MWSBP = S903-MWSBP .
%dtab-WAERK001 = S903-WAERK .
%dtab-VGBEL = S903-VGBEL .
%dtab-VGPOS = S903-VGPOS .
%dtab-MANDCK = MANDCK .
%dtab-CMDDOC = CMDDOC .
%dtab-EXT_DEL = EXT_DEL .
%dtab-ERNAM = S903-ERNAM .
%dtab-%Z_0001 = %Z_0001 .
%dtab-WAERK002 = S903-WAERK .
%dtab-POSNR = S903-POSNR .
%dtab-VSTEL = S903-VSTEL .
%dtab-AUBEL = S903-AUBEL .
%dtab-KZWI1 = S903-KZWI1 .
%dtab-WAERK003 = S903-WAERK .
%dtab-KZWI2 = S903-KZWI2 .
%dtab-WAERK004 = S903-WAERK .
%dtab-ZZ_CART = S903-ZZ_CART .
%dtab-WAERK005 = S903-WAERK .
%dtab-ZZ_MINCAR = S903-ZZ_MINCAR .
%dtab-WAERK006 = S903-WAERK .
%dtab-ZZ_WKND = S903-ZZ_WKND .
%dtab-WAERK007 = S903-WAERK .
%dtab-ZZ_FUEL = S903-ZZ_FUEL .
%dtab-WAERK008 = S903-WAERK .
%dtab-UMSMNG = S903-UMSMNG .
%dtab-VRKME001 = S903-VRKME .
%dtab-KZWI4 = S903-KZWI4 .
%dtab-WAERK009 = S903-WAERK .
%dtab-KZWI3 = S903-KZWI3 .
%dtab-WAERK010 = S903-WAERK .
%dtab-ZZ_MGN = S903-ZZ_MGN .
%dtab-WAVWR = S903-WAVWR .
%dtab-WAERK011 = S903-WAERK .
%dtab-PO_NUMBER = PO_NUMBER .
append %dtab.
%l_hits_cnt = %l_hits_cnt + 1.
if %rtmode-pack_on = 'X'
and %l_hits_cnt >= %rtmode-pack_size.
%l_no_further_fetch = 'X'.
endif.
endif.
endwhile.
if %l_hits_cnt = 0.
if not %dbcursor is initial.
close cursor %dbcursor.
endif.
raise no_data.
endif.
if %rtmode-pack_on <> 'X'.
close cursor %dbcursor.
endif.
read table %dtab index 1 transporting no fields.
if sy-subrc ne 0.
raise no_data.
endif.
endfunction.I had Done Like this All comments are as they are i.e. this code gives error (for endselect there is no select) so i commented the endselect statement.
read below code and plz do some improvement in it.
SELECT ekkoebeln ekkobedat ekpo~werks into CORRESPONDING FIELDS OF TABLE it_so FROM EKKO
INNER JOIN EKPO ON EKKOEBELN = EKPOEBELN
WHERE ekko~EBELN IN S_EBELN
AND BEDAT IN S_BEDAT
AND WERKS IN S_WERKS.
"SELECT hEBELN hMATNR hWERKS e FROM EKPO INTO CORRESPONDING FIELDS OF TABLE it_so
" WHERE EBELN IN S_EBELN
" AND WERKS IN S_WERKS.
MOVE EKKO-EBELN TO TNAME.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = 'F02'
LANGUAGE = 'E'
NAME = TNAME
OBJECT = 'EKKO'
ARCHIVE_HANDLE = 0
"IMPORTING
" HEADER = HTEXT
TABLES
LINES = LTEXT
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8.
LOOP AT LTEXT.
IF LTEXT-TDLINE NE ''.
MOVE LTEXT-TDLINE TO IT_SO-TDLINE. " Header Note Selected.
MOVE EKKO-EBELN TO IT_SO-EBELN.
APPEND IT_SO.
endif.
ENDLOOP.
clear it_so.
"ENDSELECT.
Maybe you are looking for
-
Hi all. I want to know if is it possible to upgrade a domain controller from Windows Server 2008 r2 to 2012 r2 installing from SCCM 2012. Thanks. Regards.
-
IDOC as a receiver adapter in XI to 3rd party scenario
Hi All, I have an requirement to connect sap xi and 3rd party. the scenario as given below: sap ecc 6.0 --> sap xi --> 3rd party Here ecc is sending an idoc to the 3rd party. The 3rd party is SAP certified and intelligent enough to receive and se
-
Marvericks cannot open application Idea
Shell command open -a /Applications/IntelliJ\ IDEA\ 12.app/ Gives error: LSOpenURLsWithRole() failed for the application /Applications/IntelliJ IDEA 12.app with error -10658. Idea is a java based program. I get a simular problem with launching jEdit
-
PARSE_APPLICATION_DATA Error during XML - NFe2
Pessoal, bom dia. Estou em um projeto de NFe 2.0 O cenário ABAP conversion (Response Message; error ID: CX_ST_MATCH_ELEMENT; (/1SAI/TXS4DFEC4071863FF72A429 XML Bytepos.: 0 XML Path: Error Text: Elem.'nfeStatusServicoNFResponse2' esperado)) Alguem já
-
"Photos" shows only ~ 5% of my photos. Help!
This is in reference to the 2nd item at top of Library tab, "Photos," just below "Projects," and above "Places." Of my 21,000+ photos, 697 show up when clicking Photos. The 697 are unrelated. Some are old; some are new. Some have been edited; others