Dynamic table field for filtering a selection criteria
Hi Friends
I am using a table a981 and fetching data in internal table but the table has a fieil Country whose technical name is ALAND in dev and LAND1 in production.Now i cannot use LAND1 as it wont let me to activate the report and if i use ALAND i cannot move the request to production as it fails. So how can i achive dynamic table field in the select query based on server.My query is-
select kschl
wkreg
matnr
knumh
from a981 into corresponding fields of table it_a981
for all entries in it_marc where matnr = it_marc-matnr
and kschl in ('MWST','ZSER')
and aland = 'IN'
and datab le sy-datum
and datbi ge sy-datum.
I need to make aland dynamic.Pls suggest
Hi,
this forum is for the BusinessObjects Integration Kit for SAP but I don't see how you entry is related to it.
Ingo
Similar Messages
-
WHT - No unpaid tax lines exist for the given selection criteria
Before going to execute Create remittance challan J!INCHLN ,
i entered all the mentioned parameters and try to save but i got error message as follows
No unpaid tax lines exist for the given selection criteria.
Message no. 8I702
Diagnosis
The corresponding withholding tax line &1& is not present in WITH_ITEM table.
System Response
For withholding tax recovered from the vendor, tax line is present in table BSIS, but the corresponding entry is missing in table WITH_ITEM , which is necessary for challan updating. Check the entries.
Procedure
Check entries in table WITH_ITEM for the open tax items chosen for clearing.Hi,
Please check for
1. Section code/ Business place updated even in the tax lines of the document and not just the vendor line item.
2. Check if there is a buzei mismatch between with_item table entries and bseg entries for the documents that are being pulled during the challan creation. If there is a Buzei mismatch, then please run the program in the note :885213 and then rerun the challan .
3. Please check the note :1465529 . This is the consulting note for j1inchln.
Hope this helps.
Thank You.
Regards,
Anushya -
No unpaid tax lines exist for the given selection criteria while+J1inchln
Hi All,
While doing J1inchln I am getting following error.
No unpaid tax lines exist for the given selection criteria.
Message no. 8I702
Diagnosis
The corresponding withholding tax line &1& is not present in WITH_ITEM table.
System Response
For withholding tax recovered from the vendor, tax line is present in table BSIS, but the corresponding entry is missing in table WITH_ITEM , which is necessary for challan updation. Check the entries.
Procedure
check entries in table WITH_ITEM for the open tax items chosen for clearing.I have already updated Business Place and Section code while doing FB60.But still I am getting the same error.
I have already updated Business Place and Section code in the entry while doing FB60 but error is coming. Please advise.
Regards,
Abhinav SharmaHi ,
Kindly go through the note no. 1465529 , which is a consulting note on J1INCHLN .
It would resolve your query .
Regards ,
Dewang T -
No unpaid tax lines exist for the given selection criteria.
Hi
at the time of remittance challan,getting following error:
No unpaid tax lines exist for the given selection criteria.
Message no. 8I702
Diagnosis
The corresponding withholding tax line &1& is not present in WITH_ITEM table.
System Response
For withholding tax recovered from the vendor, tax line is present in table BSIS, but the corresponding entry is missing in table WITH_ITEM , which is necessary for challan updation. Check the entries.
Procedure
check entries in table WITH_ITEM for the open tax items chosen for clearing.Hi,
It may cleared Manual posting at the time of posting. If manual clear postings reverse and do through J1INCHLN only.
and check the Date range for selection criteria.
Regards,
Kishore -
Table field for PO releaser in R/3 (4.7 Enterprise)
Hi Gurus out there:
Do you know if there is a table field for PO releaser in R/3 (4.7 Enterprise)?
We use for e.g. the transaction ME29N to release a PO and I haven't been able to find a DB table where the PO releaser is stored.
In DB table EKKO I can find the fields FRGGR (Release group), FRGSX (Release strategy), FRGKE (Release Indicator), FRGZU (Release status) and FRGRL (Release Not Yet Completely Effected) but no information of the user who released the PO.
Many thanks in advance.
/hwMeanwhile I have found a solution to this problem:
CONCATENATE sy-mandt <ekko-ebeln> INTO tabkey.
SELECT SINGLE * FROM cdpos
WHERE objectclas = 'EINKBELEG'
AND objectid = <ekko-ebeln>
AND tabname = 'EKKO'
AND tabkey = tabkey
AND fname = 'FRGKE'
AND chngind = 'U'
AND value_new = '1'. " PO has been released
IF sy-subrc = 0.
SELECT SINGLE username
FROM cdhdr
INTO po_releaser
WHERE objectclas = 'EINKBELEG'
AND objectid = oitab-ebeln
AND changenr = cdpos-changenr.
ENDIF. -
TABLE/FIELD FOR SALES ORDER'S SHIP TO LOCATION
Hi everyone,
Does anyone tell me what is the related tables/fields for Sales Order's Ship To Location? Since I want to display the Ship To Location information in the Oracle Report in Oracle Apps R11i.
I tried to use the following SQL select statement to retrieve the Ship to address:-
-- SHIP TO LOCATION
select a.address_id, c.customer_name, C.CUSTOMER_ID, A.SITE_USE_ID from ra_Site_uses_all a, ra_addresses_all b, ra_customers c
where a.site_use_code = 'SHIP_TO' and
a.status = 'A' and
b.address_id = a.address_id and
c.CUSTOMER_ID = b.CUSTOMER_ID and
b.status = 'A' and
c.customer_id in (select customer_id from ra_customers) and
c.status = 'A' and
c.customer_name like 'CLARION (H.K.)%'
But I found that the data is BILL TO address. Can anyone help me? Thanks.Hi all, I managed to solve my problem. Here's the query in case someone need it. Thanks
SELECT party.party_name "Send to" (SELECT party.party_name
FROM hz_cust_site_uses_all bill_su,
hz_cust_acct_sites_all bill_cas,
hz_party_sites bill_ps,
hz_locations bill_loc,
hz_parties party,
oe_order_headers_all h
WHERE h.invoice_to_org_id = bill_su.site_use_id
AND bill_su.cust_acct_site_id = bill_cas.cust_acct_site_id
AND bill_cas.party_site_id = bill_ps.party_site_id
AND bill_loc.location_id = bill_ps.location_id
AND bill_cas.party_site_id = bill_ps.party_site_id
AND bill_ps.party_id = party.party_id
AND h.order_number = 'your_order_number') "Invoice to"
FROM oe_order_headers_all h,
hz_cust_site_uses_all ship_su,
hz_cust_acct_sites_all ship_cas,
hz_party_sites ship_ps,
hz_locations ship_loc,
hz_parties party
WHERE h.ship_to_org_id = ship_su.site_use_id
AND ship_cas.party_site_id = ship_ps.party_site_id
AND ship_su.cust_acct_site_id = ship_cas.cust_acct_site_id
AND ship_cas.party_site_id = ship_ps.party_site_id
AND ship_ps.party_id = party.party_id
AND ship_loc.location_id = ship_ps.location_id
AND h.order_number = 'your_order_number'; -
What is the table field for PO releaser in R/3 (4.7 Enterprise)?
Hi Gurus out there:
Do you know if there is a table field for PO releaser in R/3 (4.7 Enterprise)?
We use for e.g. the transaction ME29N to release a PO and I haven't been able to find a DB table where the PO releaser is stored.
In DB table EKKO I can find the fields FRGGR (Release group), FRGSX (Release strategy), FRGKE (Release Indicator), FRGZU (Release status) and FRGRL (Release Not Yet Completely Effected) but no information of the user who released the PO.
Many thanks in advance.
/hwHi
<b>Have you tried reading the details of the PO Releaser using the BAPIs ?</b>
BAPI_PO_GETRELINFO
BAPI_PO_GETITEMSREL
BAPI_PO_GETITEMSREL List Purchase Orders for Release (Approval): New as of 4.0A
BAPI_PO_GETRELINFO Display Detailed Release (Approval) Information on Purchase Order
BAPI_PO_RELEASE Release Purchase Orders
BAPI_PO_RESET_RELEASE Cancel Release of Purchase Orders
<u>Related link -></u>
Re: How to fetch data from back end for PO?
Hope this will help.
Do let me know.
Regards
- Atul -
Incomplete Control Deliveries add new table-field for Incompleteness Proced
Incompletion Control for Deliveries add a new table-field for Incompleteness Procedure G (Delivery header)
Hello,
I'm trying to add a new field for Incompleteness Procedure G (Delivery header), but when I try to customize the procedure G with new fields, I donu2019t find the field that I need ModeOfTrnsprt-Border (EIKP-EXPVZ).
Foreign Trade/Customs tables are not included like an option for new entries in the customizing of Incompleteness Procedure G, and Iu2019ve to prevent that users save the outbound delivery without entry a valid value for EIKP-EXPVZ (EIKP-EXPVZ= ModeOfTrnsprt-Border).
Otherwise, when users are creating the SD Invoice there is an error for create the Accounting document because Foreign Trade/Customs information is incomplete.
So Iu2019d like to know If is possible to add a new tables ( and fields) to use in the customizing for Incompleteness Procedure for Outbound Deliveries (procedure G).
Thanks!!
Edited by: Ariana Serrano Aguila on Sep 2, 2010 5:19 PMHello,
I'm trying to add a new field for Incompleteness Procedure G (Delivery header)
, but when I try to customize the procedure G with new fields, I donu2019t find the
field that I need ModeOfTrnsprt-Border (EIKP-EXPVZ).
See as far as the table is concerned, the basic reason why it is not getting populated as SAP stores the possible values at the domain level. So i think the right approach to add the table would be to get access key for the domain and then add the new table name at domain level. Please reach out for help from ABAPer in this matter.
You can also use User exit to met this requirement and the appropriate user exit will be as below:
1.MV50AFZL
2. MV50AFZ1
Regards,
Sarthak -
Address fields for a country selected
Hi All,
Based on the country I need to get the address fields that I have to display.
I am having a module pool screen where the address fields should be enabled disabled based on the country the user selects. Is there any function module which gives the address fields for a country selected.Hi
I generated same Report For address Details...
If i eneter Counrtry code it should display all the Address Belonging to that Perticulsr country
I dont think there is a Function Module which fulfills ur requirement...
I hav used Smartforms for Report and i wrote Query to get t data...
just try " ADDR_GET"
Regards
Smitha -
Table Field for total value release in Contract agreements
Hi Gurus,
Please tell me the table field for release in contract agreements. It is showing a structure field RM06E-GSABW, which does not have any associated table.
Please let me know if any other way to get the same information.
Thanks,
Shibaji.Hi Shibaji,
you may try in the respective delivery LIPS-NETWR. Or check the where-used-list of data element NETWR.
Regards,
Clemens -
Dynamic Select Query including Dynamic Tables with For all Entries
Hello everyone,
I need to create a select query which involves using of Dynamic Tables.
Suppose I have a dynamic table <d1> which consist of let say 10 records.
Now i need to make a select query putting data into another dynamic table <d2>
CONCATENATE keyfield '=' '<d1>' INTO g_condition SEPARATED BY space.
CONCATENATE g_condition '-' keyfield INTO g_condition.
SELECT * FROM (wa_all_tables-name) INTO CORRESPONDING FIELDS OF TABLE <d1>
FOR ALL ENTRIES IN <d1>
WHERE (g_condition).
But it is giving dump.
Please help me on this....Short text
A condition specified at runtime has an unexpected format.
What happened?
Error in the ABAP Application Program
The current ABAP program "ZNG_CUSTOMWRITE" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_DYNAMIC_OSQL_SEMANTICS', was
not caught in
procedure "WRITE_ARCHIVE_PROD" "(FORM)", nor was it propagated by a RAISING
clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
The current ABAP program has tried to execute an Open SQL statement
which contains a WHERE, ON or HAVING condition with a dynamic part.
The part of the WHERE, ON or HAVING condition specified at runtime in
a field or an internal table, contains the invalid value "ZCOURIER-ZCOURIERID".
CONCATENATE keyfield '=' g_header INTO g_condition SEPARATED BY space.
CONCATENATE g_condition '-' keyfield INTO g_condition.
SELECT * FROM (wa_all_tables-name) INTO CORRESPONDING FIELDS OF TABLE <dyn_table1>
FOR ALL ENTRIES IN <dyn_table>
WHERE (g_condition). -
Find Table Field for Q0045-OPELO in HR Payroll
Dear All,
I have a requirement to find the Loan Balance as on date from Infotype 0045.
In the screen field it show that data is linked to this table field... Q0045-OPELO .
Now My Problem is how To find the Database table Name where exactlly the amount value store and i can use that fro my report to calculate the Loan Balance for required Employee.
Its urgent..........
Regards
LakhanHi Lakhan,
The loan balance amount is not stored in the database table. It is instead stored against WT /LLB in the payroll cluster table PCL2. If you want to retrieve this amount, then you have to use a macro to select the payroll results for the period you are running the report and then select the RT table.
The /LLB entry (if exists) in the RT table will hold the loan balance amount.
Hope this helps.
-Akshay
Edited by: Akshay Patil on Dec 26, 2007 3:51 PM -
Dynamic Table Width for XML Renderer
Hi Guys,
I'm looking for a way to get a XML documents with a dynamic table width.
Using a dynamic result table doesn't work.
The test program looks like this.
REPORT xml_test.
TYPE-POOLS: ixml.
DATA: go_ixml TYPE REF TO if_ixml.
go_ixml = cl_ixml=>create( ).
DATA: go_xml_document TYPE REF TO if_ixml_document.
go_xml_document = go_ixml->create_document( ).
DATA: go_xml_root_elm TYPE REF TO if_ixml_element.
go_xml_root_elm = go_xml_document->create_simple_element(
name = 'flights'
parent = go_xml_document
value = 'Texas Flight' ).
DATA: go_xml_main_elm TYPE REF TO if_ixml_element.
go_xml_main_elm = go_xml_document->create_simple_element(
name = 'airline'
parent = go_xml_root_elm ).
DATA: lv_rc TYPE i.
lv_rc = go_xml_main_elm->set_attribute( name = 'code' value = 'LH401' ).
DATA: go_xml_streamfactory TYPE REF TO if_ixml_stream_factory.
go_xml_streamfactory = go_ixml->create_stream_factory( ).
* Static Creation of X tab ---------------------------------------------
DATA: BEGIN OF gs_xml_line,
data(255) TYPE x,
END OF gs_xml_line.
DATA: gt_xml_table LIKE TABLE OF gs_xml_line,
gv_xml_size TYPE i,
go_ostream TYPE REF TO if_ixml_ostream.
* END Static Creation of X tab ------------------------------------------
* Dynamic Creation of X tab ---------------------------------------------
FIELD-SYMBOLS: <lf_x_tab> TYPE STANDARD TABLE,
<lf_x_stru> TYPE ANY.
DATA: lt_fldcat TYPE lvc_t_fcat.
DATA: lr_tab TYPE REF TO data,
lr_stru TYPE REF TO data,
ls_fldcat TYPE lvc_s_fcat,
lv_dyn_width TYPE i.
lv_dyn_width = 255.
* Append Dynamic Field.
CLEAR ls_fldcat.
ls_fldcat-fieldname = 'DATA' .
ls_fldcat-datatype = 'X'.
ls_fldcat-inttype = 'X'.
ls_fldcat-intlen = lv_dyn_width.
APPEND ls_fldcat TO lt_fldcat .
* Create dynamic internal table and assign to FS
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = lt_fldcat
IMPORTING
ep_table = lr_tab.
ASSIGN lr_tab->* TO <lf_x_tab>.
* Create dynamic work area and assign to FS
CREATE DATA lr_stru LIKE LINE OF <lf_x_tab>.
ASSIGN lr_stru->* TO <lf_x_stru>.
CHECK sy-subrc = 0.
* END Dynamic Creation of X tab ------------------------------------------
* Static Table works
go_ostream = go_xml_streamfactory->create_ostream_itable( table = gt_xml_table ).
* Dynamic Table doesn't work
go_ostream = go_xml_streamfactory->create_ostream_itable( table = <lf_x_tab> ).
* Show result
DATA: go_renderer TYPE REF TO if_ixml_renderer.
go_renderer = go_ixml->create_renderer( ostream = go_ostream
document = go_xml_document ).
lv_rc = go_renderer->render( ).
gv_xml_size = go_ostream->get_num_written_raw( ).
DATA: lv_str TYPE string,
lv_xstr TYPE xstring.
LOOP AT gt_xml_table INTO gs_xml_line.
lv_xstr = gs_xml_line-data.
CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'
EXPORTING
* FROM_CODEPAGE = '8500'
in_xstring = lv_xstr
* OUT_LEN =
IMPORTING
out_string = lv_str.
WRITE: / lv_str.
ENDLOOP.
If the static table is used, the program gets a result, but it doesn't work with the dynamic table.
* Static Table works
go_ostream = go_xml_streamfactory->create_ostream_itable( table = gt_xml_table ).
* Dynamic Table doesn't work
go_ostream = go_xml_streamfactory->create_ostream_itable( table = <lf_x_tab> ).
Any Ideas?
Thanks in advance
DominikI've never used dynamically changing popup items variable before, and I'm not sure it will work(?)
But, if it's displaying a long string, it does not sound like 'items' is being assigned a proper table yet.
I don't know what you mean by a "chunk" of values. I assume you mean table.
In any case, if SYPNEventResults[1].title is a string, then SYPNEventResults[1].value can be any legal lua type.
Likewise for SYPNEventResults[2], SYPNEventResults[3], ...
If you can index/display the title with this syntax, e.g. LrDialogs.message( SYPNEventResults[1].title ), then the popup should be initialized thusly:
viewFactory:popup_menu {
items = SYPNEventResults,
value = LrView.bind('eventname2'),
width_in_chars = 40,
if a function is returning multiple values, then to get it into a table "array", do this:
local tableArray = { myTableArrayFunc( myTableArrayParameters ) }
Does this help?
Rob -
Populate dynamic table fields from internal table
Hi,
Im trying to populate an dynamic table , but it's giving me a few errors witch i can't solve ...
Basically i have an internal table with te following types :
DATA: BEGIN OF tab_docs41 OCCURS 0,
conta TYPE bsis-hkont,
banco TYPE t012t-text1,
ano_3 TYPE i,
ano_2 TYPE i,
ano_1 TYPE i,
jan TYPE i,
fev TYPE i,
mar TYPE i,
abr TYPE i,
mai TYPE i,
jun TYPE i,
jul TYPE i,
ago TYPE i,
set TYPE i,
out TYPE i,
nov TYPE i,
dez TYPE i,
total TYPE i,
montante TYPE betrag11,
END OF tab_docs41.
and the following fieldcatalog , for the dynamic table :
DATA : ls_fieldcat TYPE lvc_s_fcat.
DATA: lv_period TYPE i.
DATA str_period TYPE string.
SUBTRACT 3 FROM ano.
MOVE ano TO str_period.
CLEAR ls_fieldcat.
ls_fieldcat-fieldname = 'CONTA'.
ls_fieldcat-seltext = 'Conta do Razão'.
ls_fieldcat-datatype = 'HKONT'.
* ls_fieldcat-intlen = '10'.
APPEND ls_fieldcat TO p_fieldcat.
Since the internal table, tab_docs41 it's allready filled how can i pass the tab_docs41 values to the corresponding fields of the dynamic table (the move-corresponding it's not working..)
ASSIGN fs_data->* TO <fs_1>.
CREATE DATA new_line LIKE LINE OF <fs_1>.
* ASSIGN new_line->* TO <fs_2>.
*** Next step is to create a work area for our dynamic internal table.
LOOP AT tab_docs41.
ASSIGN COMPONENT 'CONTA' OF STRUCTURE tab_docs41 TO <fs2>.
But this last step it's not working ...
Can anyone help me please ?
Point's will be rewarded
Best Regards
Thanks in advance
João MartinsLooks like you have used the method CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE to create the dynamic internal table.
You have to change the last part of the code:
FIELD-SYMBOLS:
<itab> TYPE STANDARD TABLE,
<wa> TYPE ANY,
<val> TYPE ANY .
ASSIGN fs_data->* TO <itab>.
CREATE DATA new_line LIKE LINE OF <itab>.
ASSIGN new_line->* TO <wa>.
LOOP AT tab_docs41.
ASSIGN COMPONENT 'CONTA' OF STRUCTURE <wa> TO <val>.
<val> = tab_docs41-conta.
ASSIGN COMPONENT 'BANCO' OF STRUCTURE <wa> TO <val>.
<val> = tab_docs41-banco.
APPEND <wa> to <itab>.
ENDLOOP.
BR,
Suhas -
Using custom fields of Infoset as Selection Criteria in Query Reporting
Hi Experts,
I have created one Infoset based on LDB PNPCE and added some custom fields to it. Coding has been done for the custom fields.
But these additional custom fields are not available as selection criteria while creating the query.
Can you please tell me how to use the custom fields as selection criteria?
Reply soon
Thanks in Advance.
RaveeshHello Guys,
I just noticed that it is possible to select custom fields as selection criteria in case of SAP Query,
but NOT is case of Infoset(Adhoc) query.
Can anyone tell me the whether it is possible to select the custom fields as Selection Criteria in case of Infoset Query?
Thanks in Advance,
Raveesh
Maybe you are looking for
-
I'm trying to download a song and movies that I've purchased.
Hi, When trying tp download a movie or song that i've purchased from my cloud I receive this msg. "You can download past purchases on this computer with just one Apple ID every 90 days". Any help would be most appreciated! Thank you
-
if we passed a linkedlist object to another procedure is it passed by value or by reference what i remembered that all object are passed by reference in Java and all primitive types are passed by value please confirm this to me is it right or wrong?
-
Currency field in CJ40 to modifiable
Dear All I have a query is this possible to change the currency field in CJ40 modifiable. Thanks ASIM NAVEED
-
Can't convert .pdf file to Word
Hi There I'm trying to convert a PDF file which is 99MB in size to Word, and every time I try it tells me that "An error occurred while trying to acccess the service". It does take about 15 to 20 mins to show this error. It doesn't tell me anything e
-
Hi, guys!, using MPLS VPN, using a MGX 8830 (RPM) providing QoS to costumer; costumer is complaining about voice cuts when passing data...we`re using Multilink (ppp) interfaces fot the costumer, the conf: class-map match-any VOZ match ip dscp ef matc