UDf Does not get value form link table
Hi Experts
i have created a UDF in marketing document grid area and linked the udf with a user defind table. When i click on the Udf column it show the value list of user table but does not return selected value in column.
Thanks
Gorge
Hi George,
Yes, I telling you that its not possible to bind a UDF of system form to a UDT.
its default table will be table of the system form.
If you want to add the data to your UDT, then you can do it by following process:
on the item press event of the add button anhd Action Success==true(i.e. after B1 add its data) you can Add/Update your table.
Similar Messages
-
Public Page Parameter does not get value
I use the following API call to create a URL that will raise an event and send the “facilityId” parameter to the Public Page parameter of a destination page.
String URLString = EventUtils.constructEventLink(prr,"FacilityInfoPage", linkParams,true,true);
The link/URL generated by this code is:
http://ese-ny.its-ese.local/portal/event?_pageid=584,1533923&_dad=portal&_schema=PORTAL&_portlet_ref=584_1533941_584_1533923_1533923&_event_facilityId=36003001001&_eventName_FacilityInfoPage=
When I click on the link I am taken to the destination page and the following URL shows up in the address bar of the browser:
http://ese-ny.its-ese.local/portal/page?_pageid=584,1533732&_dad=portal&_schema=PORTAL
Issue 1: The Public Page parameter of the destination page does not receive the value of facilityId, Why?
Issue 2: Why is the URL in the address bar truncated after "PORTAL"?
Any ideas?Issue 1: The Public Page parameter of the
destination page does not receive the value of
facilityId, Why?The event link sends an event (FacilityInfoPage) to the page with the given parameters if any. In the page's edit tab you can link the event to a page and link the event's parameters to page parameters. This does not happen automatically.
So probably you haven't linked the event parameters to page parameters.
Issue 2: Why is the URL in the address bar
truncated after "PORTAL"?After an event is triggered you are forwarded to the page specified for the event with the specified parameters in event. If none specified I guess you go to the original page with no parameters. The URL is then only the URL of the page. -
UDF does not return value even though its underlying query does.
I have a User Defined Function which is supposed to return a scalar varchar(50) value. This is what I did:
ALTER FUNCTION [dbo].[zt_prc_fnNSNsFmNIIN_Get]
@NIIN varchar(5),
@PN varchar(20)
RETURNS Varchar(50)
AS
BEGIN
-- Declare the return variable here
Declare @NSN varchar(50)
Set @NSN = (SELECT Convert(varchar(20), RTRIM(NSN.FSC)) + Convert(varchar(20), RTrim(NSN.NIIN)) NSN
FROM TechManual.dbo.ANSNS NSN
JOIN TechManual.dbo.AITEMTABLE AIT ON NSN.PRIMARYPARTNUMBER = AIT.PRIMARYPARTNUMBER and NSN.DODIC = AIT.DODIC
JOIN TechManual.dbo.PARTNUMBERS PN ON AIT.PRIMARYPARTNUMBER = PN.PRIMARYPARTNUMBER
WHERE NSN.NIIN = @NIIN AND PN.PARTNUMBER = @PN)
RETURN @NSN
END
However I keep getting a Null as the return. So I ran a test to call the function and run the the underlying query like this:
Select dbo.zt_prc_fnNSNsFmNIIN_Get('015132378', '850AS911')
Declare @NSN varchar(50)
Set @NSN = (SELECT Convert(varchar(20), RTRIM(NSN.FSC)) + Convert(varchar(20), RTrim(NSN.NIIN)) NSN
FROM TechManual.dbo.ANSNS NSN
JOIN TechManual.dbo.AITEMTABLE AIT ON NSN.PRIMARYPARTNUMBER = AIT.PRIMARYPARTNUMBER and NSN.DODIC = AIT.DODIC
JOIN TechManual.dbo.PARTNUMBERS PN ON AIT.PRIMARYPARTNUMBER = PN.PRIMARYPARTNUMBER
WHERE NSN.NIIN = '015132378' AND PN.PARTNUMBER = '850AS911')
Select @NSN
As you can see the Select statement is exactly what is entered in the UDF. However the call to the UDF yields
null
and the call to select the variable populated by the query yields "1377015132378".
Everyone here has taken a look at the UDF and are unable to see anything which might be an issue.
Edward R. Joell MCSD MCDBACheck:
CREATE FUNCTION [dbo].[zt_prc_fnNSNsFmNIIN_Get]
@NIIN varchar(50),
@PN varchar(50)
RETURNS Varchar(50)
AS
BEGIN
-- Declare the return variable here
Declare @NSN varchar(50)
Set @NSN = (SELECT name FROM Production.Product where ProductNumber=@NIIN and Color = @PN)
RETURN @NSN
END
GO
-- SELECT * FROM Production.Product;
SELECT [dbo].[zt_prc_fnNSNsFmNIIN_Get] ('RD-2308', 'Silver');
-- Rear Derailleur
Kalman Toth Database & OLAP Architect
SQL Server 2014 Design & Programming
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012 -
Data is not getting updated in DB table
hi all
i am doing IDOC to jdbc scenario
i am triggering idoc from R/3 and the data is going into DB table
sender side: ZVendorIdoc
receiver side:
DT_testVendor
Table
tblVendor
action UPDATE_INSERT
access 1:unbounded
cVendorName 1
cVendorCode 1
fromdate 1
todate 1
Key
cVendorName 1
if i trigger idoc for example vendor 2005,2006 and 2010 data is getting updated in the table
but again if i trigger idoc for same vendor nos data does not get updated in DB table while message is successfull in moni and RWB both
plz suggest if any change need to be done to update the data
Regards
sandeep sharmaHi Ravi
you are right, vendor no is my key field . problem is when i send data again then it should Update the data but it's not updating the data again
i did on exp with this : i deleted all the record from the table and then triggered idoc for vendor 2005 , 2006,2010 after this data is updated in the table i deleted the rows for vendor no 2006 and 2010 and kept the row for vendor 2005
then i again trigered the idoc for vendor no 2005,2006 and 2010 now this should update and it should insert rows for vendor no 2006 and 2010 but i am surprised its not updating the data
Thanks
sandeep -
Lov command link does not get refreshed
We are using Jheadstart 11.1.1.4.26 with Jdeveloper 11.1.1.4 and we think we have found a bug.
The scenario includes two items, an inputtext (FirstName) and an LovItem (ManagerId)
The LovItem (ManagerId) is dependent on the inputtext (FirstName) with Clear/Refresh and has a Disabled Expession #{bindings.EmployeesFirstName.inputValue==null} so that when the Firstname is null the LovItem (ManagerId) is disabled.
This seems to work fine except from the commandLink of the LovItem which does not get refreshed. This is probably because the Id of the commandLink is not included in the componentsToRefresh item inside the EmployeesFirstNameDependsOnItem.
Of course we could create a custom vm for the default/misc/facesConfig/dependsOnItemBean.vm and pass the id of the commandlink but we are looking for a more generic way.
<managed-bean id="__168">
<managed-bean-name id="__169">EmployeesFirstNameDependsOnItem</managed-bean-name>
<managed-bean-class id="__170">oracle.jheadstart.controller.jsf.bean.DependsOnItemBean</managed-bean-class>
<managed-bean-scope id="__171">application</managed-bean-scope>
<managed-property id="__172">
<property-name id="__173">itemsToClear</property-name>
<list-entries id="__174">
<value id="__175">EmployeesManagerId</value>
</list-entries>
</managed-property>
<managed-property id="__176">
<property-name id="__177">componentsToRefresh</property-name>
<list-entries id="__178">
<value id="__179">EmployeesManagerId</value>
</list-entries>
</managed-property>
</managed-bean>
I sent a testcase to '[email protected]' last friday.
Regards
VasileiosVasileios,
Thank, I was able to reproduce this. We will fix it in the next release.
Here is how you can fix it using custom templates:
- add the following macro to your custom macros file:
#macro (ITEM_LINK_PARTIAL_TRIGGERS)
partialTriggers = "#foreach($item in $JHS.current.item.dependsOnItems) #if (($JHS.current.pageComponent.hasOverflowRight || $JHS.current.pageComponent.hasOverflowRightWithSplitter || $JHS.current.pageComponent.hasOverflowBelow || $JHS.current.pageComponent.hasOverflowBelowWithSplitter) && $JHS.current.item.displayInTableOverflow && !$item.displayInTableOverflow)${JHS.current.group.shortName}PC:${JHS.current.group.shortName}Tab:#end${item.id}#end" #end
- in the custom formLovItem and tableLovItem templates, add this macro to the commandLink element:
<af:commandLink immediate="true" partialSubmit="true" #ITEM_DISABLED_IN_FORM() #ITEM_UPDATEABLE_IN_FORM() id="#NEW_ID("cl")" #ITEM_LINK_PARTIAL_TRIGGERS()
Steven Davelaar,
JHeadstart team. -
It looks like whenever one specifies Column default values at a library level then the content organizer routing goes a bit awry SPECIFICALLY FOR NON OFFICE FILES [e.g. PDF] . Below are the observations and issues
1. Column level default value set on a record library with auto declaration of records turned on. The content organizer routes the document to the library but also keeps a copy of the document in the drop off library. It does not remove it from the drop
off library. The instant we clear the default value settings at the library level of the target library the content organizer works as expected again.
2. If default value settings are specified on a column in the target library then the PDF file gets routed to the document library but all the metadata is blanked out. The copy of the file that remains in the drop off library has all the correct metadata but
the target library has blanked out metadata.
Are the 2 observations described above by design or are they bugs? If so is there any documentation that is available that proves this because this does not make logical sense and proving this to a client in the absence of any documentation is a challenge.
The problem goes away if we shift the default value to the site columns directly at the site collection level. It's just the library level defaults that the pdf files do not seem to agree withHi Lisa,
Thanks for responding. This can be replicated in any environment but is only replicable for a specific combination of content organizer settings . The combination of settings I am referring to can be seen in the screenshot below. If you turn off redirect
users to the drop off library for direct uploads to libraries and if you turn on sharepoint versioning then you should be able to replicate the issue. Also we are using managed metadata site columns. I simplified this use case to a custom content content type
with just 2 custom managed metadata columns and can still replicate the issue in several environments. Also note the issue does not occur if the default values are set at the site or site collection level. It only occurs if you set the column value default
at a library level. I was able to replicate this on a completely vanilla Enterprise records site collection freshly created just to test this. Also note that the issue is not that the file does not reach the destination library. The issue is the
document does not get removed from the drop off library after it is transfered to the destination library which technically should have gotten removed. -
"This disc does not use the GUID Partition Table Scheme. Use Disc Utility to change the partition scheme". I keep getting this message when I try to install OSX Lion so that I can upgrade my 17" MacBookPro to move to iCloud. My harddrive was replaced last year by Apple because of a fault by the manufacturer and I think this is the cause of the problem. What can I do so that I don't lose my content.
When you click the partion tab. There is option on the bottom of the window. Click on that there there are these options.
-
No values in the details column does not get summarized?
BH
Hi, I have a Crystal Report on Visual Studio 2010. I'm connecting using Ado.Net. I have a report with two columns in the "detail" section. Each column contains currency values. In the footer I have the summary for each of the two columns. The problem is: when one of the columns does not have any values, the summary does not get counted. What do I need to do, so that when there is no value in the column, it assumes that it is zero?
Thank you so much for your help.
Aronhi Aron,
if you create a new formula referencing the field, and then add a 'null' check to the formula, then this will work.
e.g.
if isnull({your_table.your_field}) then 0
else {your_table.your_field}
now add this new formula to your report canvas and insert the summary based on the new formula.
-jamie -
Field T_STCD1 does not exist in form this erroe msg coming in smartform
hi,
in my smartform, if i give one set of input like, 1st qtr of 2008, vendor and compcode, its displaying the value.
but if i give the input like 1st qtr of 2007, vendor and some other compcode its giving some error like
field T_STCD1 does not exist in form .
this error coming after printpreview and not displaying.
how can i debug it.
can any one help me...........plz
its very urgent.
thanks.report zmm_vat_ex_cert message-id zz .
TABLE DECLARATION *
tables: bseg , tvko.
*Intenal Tables Declarations *
types: begin of it_address_type .
include structure zvat_vendor.
types :end of it_address_type.
types : begin of it_address_info_type.
include structure zadrc_table.
types: end of it_address_info_type.
types : begin of it_desig_type.
include structure zmm_vat_sign.
types: end of it_desig_type.
types: begin of it_bkpf_type,
bukrs type bkpf-bukrs,
belnr type bkpf-belnr,
gjahr type bkpf-gjahr,
blart type bkpf-blart,
bldat type bkpf-bldat,
xblnr type bkpf-xblnr,
awkey type bkpf-awkey ,
end of it_bkpf_type.
types : begin of it_bseg_type,
bukrs like bseg-bukrs,
belnr like bseg-belnr,
gjahr like bseg-gjahr,
bschl like bseg-bschl,
mwskz like bseg-mwskz,
shkzg like bseg-shkzg,
wrbtr like bseg-wrbtr,
sgtxt type bseg-sgtxt,
end of it_bseg_type.
types: begin of it_rseg_type,
ebeln like ekpo-ebeln,
ebelp like ekpo-ebelp,
bukrs like bkpf-bukrs,
txz01 type ekpo-txz01,
wrbtr type rseg-wrbtr,
end of it_rseg_type.
data:begda type d, endda type d.
types: begin of it_item_type.
include structure zitem_vat.
types:end of it_item_type.
data: it_rseg type table of it_rseg_type,
wa_it_rseg like line of it_rseg.
data: gt_addr type table of it_address_type.
data gt_addr_info type table of it_address_info_type.
data gt_bkpf type table of it_bkpf_type.
data gt_bseg type table of it_bseg_type.
data:
gt_tvko type standard table of tvko,
gt_item type table of it_item_type,
h_itab type table of it_bseg_type,
it_desig type table of it_desig_type,
temp_item type table of it_item_type .
data:wa_addr like line of gt_addr,
wa_addr_info like line of gt_addr_info,
wa_bkpf like line of gt_bkpf,
wa_bseg like line of gt_bseg,
wa_item like line of gt_item,
wa_h_itab like line of h_itab,
wa_it_desig like line of it_desig,
wa_temp_item like line of temp_item,
wa_tvko LIKE LINE OF gt_tvko.
wa_tvko type tvko.
Data Declaration *
data: sumtotal type bseg-wrbtr, "rbkp-waers ,
sl_no type zmm_vatex_sno-serial_no,
fiscal_year type string,
fm_name type rs38l_fnam ,
w_q_flag(5),
w_quarter type string ,
close_date type sy-datum ,
fiscal type sy-datum, fiscal_nxt type sy-datum,
gv_belnr type bkpf-belnr,
gv_gjahr type bkpf-gjahr.
data: ca_quarter type i.
data: l_adrnr type t001-adrnr.
data wa_vatex_sno type zmm_vatex_sno.
data: q(1).
data: stdtext(25).
S E L E C T I O N S C R E E N *
selection-screen begin of block b1 with frame title text-s01.
select-options: s_date for sy-datum obligatory no-extension.
parameters : vendor type lfa1-lifnr obligatory ,
compcode type bkpf-bukrs obligatory.
select-options taxcode for bseg-mwskz obligatory default 'VI'.
selection-screen end of block b1.
at selection screen
at selection-screen on s_date.
if s_date-low0(4) <> s_date-high0(4).
message e023 with text-e01.
endif.
*get calendar quarter using the month entered in From date.
*calculate the fiscal year and quarter
if s_date-low4(2) > '0' and s_date-low4(2) <= '3' .
ca_quarter = 1.
fiscal0(4) = s_date-high0(4) .
fiscal_nxt0(4) = s_date-high0(4) - 1.
concatenate fiscal_nxt2(2) '-' fiscal2(2) into fiscal_year .
concatenate 'last quarter of year ' fiscal_nxt0(4) '-' fiscal0(4)
into w_quarter separated by space .
q = '4'.
elseif ( s_date-low4(2) > '3' and s_date-low4(2) <= '6' ).
ca_quarter = 2.
fiscal0(4) = s_date-high0(4) + 1.
fiscal_nxt0(4) = s_date-high0(4).
concatenate fiscal_nxt2(2) '-' fiscal2(2) into fiscal_year .
concatenate '1st quarter of year ' fiscal_nxt0(4) '-' fiscal0(4)
into w_quarter separated by space .
q = '1'.
elseif ( s_date-low4(2) > '6' and s_date-low4(2) <= '9' ).
ca_quarter = 3.
fiscal0(4) = s_date-high0(4) + 1.
fiscal_nxt0(4) = s_date-high0(4).
concatenate fiscal_nxt2(2) '-' fiscal2(2) into fiscal_year .
concatenate '2nd quarter of year ' fiscal_nxt0(4) '-' fiscal0(4) INTO
w_quarter separated by space .
q = '2'.
elseif ( s_date-low4(2) > '9' and s_date-low4(2) <= '12' ).
ca_quarter = 4.
w_quarter = '3rd quarter of year'.
fiscal0(4) = s_date-high0(4) + 1.
fiscal_nxt0(4) = s_date-high0(4).
concatenate fiscal_nxt2(2) '-' fiscal2(2) into fiscal_year .
concatenate '3rd quarter of year ' fiscal_nxt0(4) '-' fiscal0(4) INTO
w_quarter separated by space .
q = '3'.
endif.
*get first and last day of quarter by fetching calendar quarter and year in FM
call function 'HR_99S_GET_DATES_QUARTER'
exporting
im_quarter = ca_quarter
im_year = s_date-low+0(4)
importing
ex_begda = begda
ex_endda = endda.
*validate the input dates is start and end of quarter
if s_date-low <> begda or s_date-high <> endda.
message e023 with 'Enter quarter begin and end dates only'.
endif.
*get last day of next month. for close date
endda = endda + 1.
call function 'RP_LAST_DAY_OF_MONTHS'
exporting
day_in = endda
importing
last_day_of_month = close_date
exceptions
day_in_no_date = 1
others = 2.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
Start of Selection
start-of-selection.
*CNO is specific to a Quarter/ Company code/ Vendor.
unpack vendor to vendor.
clear:sl_no, wa_vatex_sno.
select single * from zmm_vatex_sno into wa_vatex_sno where from_date
eq s_date-low and to_date eq s_date-high and vendor eq vendor
and compcode eq compcode.
if sy-subrc eq 0.
sl_no = wa_vatex_sno-serial_no.
else.
select max( serial_no ) from zmm_vatex_sno into wa_vatex_sno-serial_no WHERE
from_date eq s_date-low and to_date eq s_date-high and compcode eQ compcode.
if sy-subrc = 0.
sl_no = wa_vatex_sno-serial_no + 1.
else.
sl_no = 1.
endif.
wa_vatex_sno-from_date = s_date-low.
wa_vatex_sno-to_date = s_date-high.
wa_vatex_sno-vendor = vendor.
wa_vatex_sno-compcode = compcode.
wa_vatex_sno-serial_no = sl_no.
insert zmm_vatex_sno from wa_vatex_sno.
endif.
*data selection from bkpf by date,fiscal and compcode
refresh gt_bkpf.
select bukrs
belnr
gjahr
blart
bldat
xblnr
awkey
into table gt_bkpf from bkpf
where bukrs eq compcode and
budat in s_date and gjahr eq fiscal+0(4).
check not gt_bkpf[] is initial.
refresh gt_bseg.
select bukrs
belnr
gjahr
bschl
mwskz
shkzg
wrbtr
sgtxt from bseg into table gt_bseg
for all entries in gt_bkpf where
bukrs eq compcode and
mwskz in taxcode and
lifnr eq vendor and
belnr = gt_bkpf-belnr and
gjahr = gt_bkpf-gjahr and shkzg = 'H'.
selection without vendor and posting key 40 *
refresh h_itab.
select bukrs
belnr
gjahr
bschl
mwskz
shkzg
wrbtr from bseg into table h_itab
for all entries in gt_bseg
where bukrs = gt_bseg-bukrs and
belnr = gt_bseg-belnr and
mwskz = gt_bseg-mwskz and
gjahr = gt_bseg-gjahr and
( bschl = '40' or bschl = '21' ).
if sy-subrc = 0.
deduct the amount if posting key is 40 for PO based docs
clear wa_h_itab.
loop at h_itab into wa_h_itab where bschl = '40'.
clear wa_bseg.
read table gt_bseg into wa_bseg with key belnr = wa_h_itab-belnr.
if sy-subrc = 0.
read table gt_bkpf into wa_bkpf with key belnr = wa_h_itab-belnr.
if wa_bkpf-blart <> 'KR'.
wa_bseg-wrbtr = wa_bseg-wrbtr - wa_h_itab-wrbtr.
endif.
modify gt_bseg from wa_bseg
transporting wrbtr where belnr = wa_bseg-belnr
and bschl = wa_bseg-bschl .
endif.
clear wa_h_itab.
endloop.
deduct the amount if posting key is 21 for non-PO based docs
clear wa_h_itab.
loop at h_itab into wa_h_itab where bschl = '21'.
clear wa_bseg.
read table gt_bseg into wa_bseg with key belnr = wa_h_itab-belnr.
if sy-subrc = 0.
read table gt_bkpf into wa_bkpf with key belnr = wa_h_itab-belnr.
if wa_bkpf-blart = 'KR'.
wa_bseg-wrbtr = wa_bseg-wrbtr - wa_h_itab-wrbtr.
endif.
modify gt_bseg from wa_bseg
transporting wrbtr where belnr = wa_bseg-belnr.
endif.
clear wa_h_itab.
endloop.
endif.
final internal table
clear wa_item. refresh gt_item. clear wa_bseg.
loop at gt_bseg into wa_bseg.
read table gt_bkpf into wa_bkpf with key belnr = wa_bseg-belnr .
if sy-subrc = 0.
move :
wa_bkpf-xblnr to wa_item-xblnr,
wa_bkpf-belnr to wa_item-belnr,
wa_bkpf-bldat to wa_item-bldat,
wa_bseg-wrbtr to wa_item-wrbtr.
endif.
*selections for item description
refresh it_rseg.
select ekpoebeln ekpoebelp ekpobukrs txz01 rsegwrbtr
into table it_rseg
from rseg join ekpo
on rsegebeln = ekpoebeln
and rsegebelp = ekpoebelp
and rsegbukrs = ekpobukrs
where rsegbelnr = wa_bkpf-awkey(10) and rseggjahr = wa_bkpf-gjahr AND
ekpo~bukrs = wa_bkpf-bukrs.
if sy-subrc = 0.
loop at it_rseg into wa_it_rseg.
wa_item-txz01 = wa_it_rseg-txz01 .
if sy-tabix <> 1.
wa_item-wrbtr = wa_it_rseg-wrbtr .
wa_item-wrbtr = space .
endif.
append wa_item to gt_item.
endloop.
else.
wa_item-txz01 = wa_bseg-sgtxt.
append wa_item to gt_item.
endif.
clear: wa_bseg, wa_item.
endloop.
*if records not found give message.
if gt_item[] is initial.
message e000(vz) with text-x01.
endif.
calculate the sumtotal
loop at gt_item into wa_item.
sumtotal = sumtotal + wa_item-wrbtr .
endloop.
Selecting supplier address *
select single * from tvko into wa_tvko where vkorg = compcode.
append wa_tvko to gt_tvko.
if wa_tvko-vkorg = '2014'.
stdtext = 'Z_2014_SOFTEX'.
elseif wa_tvko-vkorg = '2006'.
stdtext = 'Z_2006_SOFTEX'.
else.
stdtext = wa_tvko-txnam_adr.
endif.
select lifnr
name1
name2
ort01
ort02
pfach
stras
regio from lfa1 into table gt_addr
where lifnr eq vendor .
Selecting sez address *
SELECT SINGLE adrnr FROM t001 INTO l_adrnr WHERE bukrs EQ compcode.
SELECT name1
name2
city1
city2
post_code1
post_code2
street
house_num1
FROM adrc INTO TABLE gt_addr_info
WHERE addrnumber = l_adrnr.
Information for designation *
select * from zmm_vat_sign into table it_desig where company = compcode
Call Function module SSF_FUNCTION_MODULE_NAME *
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZMM_VAT_EX_CERT'
VARIANT = ' '
DIRECT_CALL = ' '
importing
fm_name = fm_name
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
Call Function module fm_name *
call function fm_name
exporting
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
doc_num = sl_no
quarter = w_quarter
date = s_date-high
sumtotal = sumtotal
close_date = close_date
fiscal_year = fiscal_year
ca_quarter = q
text_name = stdtext
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
tables
itab = gt_item
it_address = gt_addr
it_infoaddress = gt_addr_info
it_designation = it_desig
it_tvko = gt_tvko
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif. -
The currency is not getting updated in the table VBAP
Hi ,
The currency is not getting updated in the table VBAP. The currency was suppossed to be copied from the header table VBAK for a Sales Order. When the user creating a Sales Order the currency WAERK is not shown in VBAP table. VBAK-WAERk is in EUR . Does anyone know why is this happenning?
Currency is maintained in the Customer Master, Material Master and Sales Org. Any suggestions?.
Also it is happened for only one line item in a set of line items , Other line items did display the currency field.
The net Value has data in it .
The system is ECC 5.0
Regards,
SenthilDear Senthil,
Please apply the following notes (if they apply to your support pack level) and retest:
1460621 VBAP-WAERK is deleted after the sold-to party is changed
1426441 VBAP-WAERK deleted for subitems
1493998 VBAP-WAERK deleted for subitems
This should resolve the issue. I hope this helps.
Best regards,
Ian Kehoe -
XREF3 field not getting populated in BSEG table while posting MIRO
Hi,
I have one query in MIRO tcode.I have activated xref3 field in MIRO tcode using enhancement LMR1MF6Q.Now when i try to post document with some values in xref3 field on screen ,value is not getting populated in BSEG table.Please tell me what else needs to be done to achieve this ?
any hint on this?
Thanks & Regards,
Soniya S.Hi,
1.- According to SAP Note 904652 - MIRO: Different from FB60
https://service.sap.com/sap/support/notes/904652
MIRO is an independent Materials Management (MM) transaction that does not
claim to be the same as the accounting transactions (such as FB60 or FB01).
MIRO was developed to allow users to process vendor invoices within the
context of the MM procurement processes as simply as possible.
For this reason, among other differences, the field selection was limited
to the absolutely necessary. For example, the following fields from the
accounting document are not available in Transaction MIRO (this list is not
complete):
Reference key (BSEG-XREF1, -XREF 2, -XREF 3)
2.- SAP Note 1156325 - BAdIs in the Logistics Invoice Verification environment
https://service.sap.com/sap/support/notes/1156325
Have a look at badi MRM_ITEM_CUSTFIELDS.
This badi will create a new tab at item level in order to display the new fields.
I haven´t used this badi so i cannot talk from experience here.
Think twice before deciding.
Best regards. -
User defined fields does not get added into database
Hello Experts
User defined fields does not get added into database , when i click add button it
shows data added sucessfully , but when i check data base no entry is made , only entry is made for
B1 fields , like DocEntry ,DocNum etc.., no entry is made for U_fields..
I have check every thing databound is also set to true
Actually first few 6 data was added properly but now its not geeting added for user fields
I have used 2 document row child table for 2 matrix and for remaining Document table
What might be the problem
reply soon
plz suggestHello sir
I have checked Default form , in that entry is made into database
but running the form in screen painter in preview mode or through coding it does not get added for user field
this id my binding code
LoadFromXML("updateopd.srf")
oForm = SBO_Application.Forms.Item("updopd")
oForm.DataBrowser.BrowseBy = "txtpatid"
'Adding combo in Obervation
oItem = oForm.Items.Item("txtpatid")
oEdit2 = oItem.Specific()
oEdit2.DataBind.SetBound(True, "@UPDATE", "U_PID")
oItem = oForm.Items.Item("txtmnane")
oEdit3 = oItem.Specific()
oEdit3.DataBind.SetBound(True, "@UPDATE", "U_FName")
oItem = oForm.Items.Item("txtlname")
oEdit3 = oItem.Specific()
oEdit3.DataBind.SetBound(True, "@UPDATE", "U_LName")
Plz suggest -
About not getting value in wa_vbap from it_vbap.
REPORT ZSIMPLEALV.
TABLES: VBAK, VBAP, SSCRFIELDS.
TYPE-POOLS: SLIS.
TYPES: BEGIN OF TY_VBAK,
VBELN TYPE VBAK-VBELN,
BSTDK TYPE VBAK-BSTDK,
KUNNR TYPE VBAK-KUNNR,
END OF TY_VBAK.
TYPES: BEGIN OF TY_VBAP,
VBELN TYPE VBAP-VBELN,
POSNR TYPE VBAP-POSNR,
MATNR TYPE VBAP-MATNR,
KWMENG TYPE VBAP-KWMENG,
VRKME TYPE VBAP-VRKME,
ARKTX TYPE VBAP-ARKTX,
WERKS TYPE VBAP-WERKS,
NETPR TYPE VBAP-NETPR,
END OF TY_VBAP.
TYPES: BEGIN OF TY_FINAL,
VBELN TYPE VBAK-VBELN,
BSTDK TYPE VBAK-BSTDK,
KUNNR TYPE VBAK-KUNNR,
POSNR TYPE VBAP-POSNR,
MATNR TYPE VBAP-MATNR,
KWMENG TYPE VBAP-KWMENG,
VRKME TYPE VBAP-VRKME,
ARKTX TYPE VBAP-ARKTX,
WERKS TYPE VBAP-WERKS,
NETPR TYPE VBAP-NETPR,
END OF TY_FINAL.
DATA: IT_VBAK TYPE TABLE OF TY_VBAK,
WA_VBAK TYPE TY_VBAK.
DATA: IT_VBAP TYPE TABLE OF TY_VBAP,
WA_VBAP TYPE TY_VBAP.
DATA: IT_FINAL TYPE TABLE OF TY_FINAL,
WA_FINAL TYPE TY_FINAL.
DATA: IT_CATLOG TYPE SLIS_T_FIELDCAT_ALV,
GT_SORT TYPE SLIS_T_SORTINFO_ALV,
WA_CATLOG TYPE SLIS_FIELDCAT_ALV,
GS_LAYOUT TYPE SLIS_LAYOUT_ALV.
SELECTION-SCREEN BEGIN OF BLOCK B1 .
SELECT-OPTIONS: PO_DAT FOR vbak-bstdk.
SELECTION-SCREEN END OF BLOCK B1 .
START-OF-SELECTION.
PERFORM GET_DATA_FROM_VBAK.
PERFORM GET_DATA_FROM_VBAP.
PERFORM WRITE_DATA_TO_FINAL.
END-OF-SELECTION.
PERFORM SHOW_DATA.
*& Form GET_DATA_FROM_VBAK
text
--> p1 text
<-- p2 text
FORM GET_DATA_FROM_VBAK .
SELECT VBELN BSTDK KUNNR
FROM VBAK
INTO TABLE IT_VBAK
WHERE BSTDK IN PO_DAT.
ENDFORM. " GET_DATA_FROM_VBAK
*& Form GET_DATA_FROM_VBAP
text
--> p1 text
<-- p2 text
FORM GET_DATA_FROM_VBAP .
SELECT VBELN POSNR MATNR KWMENG VRKME ARKTX WERKS NETPR
FROM VBAP
INTO TABLE IT_VBAP
FOR ALL ENTRIES IN IT_VBAK
WHERE VBELN = IT_VBAK-VBELN.
ENDFORM. " GET_DATA_FROM_VBAP
*& Form WRITE_DATA_TO_FINAL
text
--> p1 text
<-- p2 text
FORM WRITE_DATA_TO_FINAL .
REFRESH IT_FINAL.
LOOP AT IT_VBAP INTO WA_VBAP WHERE VBELN = VBAK-VBELN.
WA_FINAL-VBELN = WA_VBAP-VBELN.
WA_FINAL-POSNR = WA_VBAP-POSNR.
WA_FINAL-MATNR = WA_VBAP-MATNR.
WA_FINAL-KWMENG = WA_VBAP-KWMENG.
WA_FINAL-VRKME = WA_VBAP-VRKME.
WA_FINAL-ARKTX = WA_VBAP-ARKTX.
WA_FINAL-WERKS = WA_VBAP-WERKS.
WA_FINAL-NETPR = WA_VBAP-NETPR.
IF SY-SUBRC IS INITIAL.
READ TABLE IT_VBAK INTO WA_VBAK WITH KEY VBELN = WA_VBAP-VBELN.
WA_FINAL-VBELN = WA_VBAK-VBELN.
WA_FINAL-KUNNR = WA_VBAK-KUNNR.
ENDIF.
APPEND WA_FINAL TO IT_FINAL.
CLEAR: WA_FINAL, WA_VBAP, WA_VBAK.
ENDLOOP.
ENDFORM. " WRITE_DATA_TO_FINAL
"tell me anybody 'why am i not getting value in wa_vbap from it_vbap?.Hello Mr:Sardar,
There are a lot thinks we need to notice while writing a report.
First of all VBAP is an item table and VBAK is a header table. For each header data there can be multiple item data. So your report should loop over header data first
Let it be
loop at it_vbak into wa_vbak.
endloop.
Now wa_vbak will contain one header data, for this header there can be more than one item data in vbap.
now the code will become
loop at it_vbak into wa_vbak.clear wa_vbap.
loop at it_vbap into wa_vbap where vbeln = wa_vbak-vbeln.
wa_final-vbeln = wa_vbak-vbeln.
append wa_final to it_final.
endloop.
endloop.
Another thing u must take care of is that while u are using FOR ALL ENTRIES in your select statement, check whether this itab is initial or not.If itab is initial program will fetch all the data irrespective of conditions. Please read F1 help for for all entries.
Hope this will help you.
Regards,
Antony Thomas -
Not getting values in the variable
Hi experts,
in this program
i want VBPA-vbeln = xblnr....but there is a data length error. so I ahve declare one variavble of length 10. & i am moving this xblnr to this variable but not getting value in that variable that i am moving..& give me the possible solutions...
when '0FI_AR_4'.
data: t_DTFIAR_3 like DTFIAR_3 occurs 0 WITH HEADER LINE.
data: BEGIN OF t_DTFIAR_3 occurs 0.
include structure DTFIAR_3.
data: xblnr1(10).
data: END OF t_DTFIAR_3.
data : BEGIN OF t_partner occurs 0,
VBELN like vbpa-VBELN,
parvw like vbpa-PARVW,
kunnr like vbpa-kunnr,
END OF t_partner.
data : xblnr1(10).
t_DTFIAR_3[] = C_T_DATA[].
move t_DTFIAR_3-xblnr to t_DTFIAR_3-xblnr.
select VBELN PARVW kunnr
into table t_patner
from vbpa
FOR ALL ENTRIES IN t_DTFIAR_3
where VBELN = t_DTFIAR_3-xblnr.
SORT t_partner BY VBELN PARVW.
loop at t_DTFIAR_3.
loop at t_partner where VBELN = t_DTFIAR_3-xblnr1.
if t_partner-PARVW = 'ZA'.
t_DTFIAR_3-YPARVW1 = t_partner-PARVW.
t_DTFIAR_3-YPART1 = t_partner-kuNNR.
elseif t_partner-PARVW = 'ZR'.
t_DTFIAR_3-YPARVW2 = t_partner-PARVW.
t_DTFIAR_3-YPART2 = t_partner-kuNNR.
ELSEif t_partner-PARVW = 'ZE'.
t_DTFIAR_3-YPARVW3 = t_partner-PARVW.
t_DTFIAR_3-YPART3 = t_partner-kuNNR.
ELSEif t_partner-PARVW = 'ZS'.
t_DTFIAR_3-YPARVW4 = t_partner-PARVW.
t_DTFIAR_3-YPART4 = t_partner-kuNNR.
ENDIF.
MODIFY t_DTFIAR_3.
endloop.
ENDLOOP.
C_T_DATA[] = t_DTFIAR_3[] .
Thanks in advanceHI,
While moving use the WRITE TO option.
WRITE VBPA-vbeln TO xblnr.
Regards
Sudheer -
TDS amount not getting updated in the table under the field QBSHB
Dear Friends,
The TDS amount entered while booking the vendor invoices through MIRO T-cde, is not getting updated in the table BSEG under the field QBSHB.
Kindly let me know the reason for the same and guide me to correct it
TIA.
Regards,
VincentHI Vincent,
Bseg-QBSHB field is relavent for classic WT.
I hope you are using the EWT.
Hence if you post a document through MIRO it will not update
(but if you post document FB60 it will update but wrongly).
Reason is Miro document is posted through interface.
Hence SAP is suggested to not refer the Bseg-QBSHB and etc., fields.
refer only with_item table.
Please refer the below replay from SAP
Please refer the below note .363309
Please review attached note 363309 for detailed explanation
BSEG-QBSHB is designed to fill for the classic withholding tax. And
extended withholding tax information is stored exclusive in table
WITH_ITEM.
You can check in table BSEG for the fields and will find that system
do NOT update field BSEG-QBSHB.
In your line layout,you define a field BSEG-QBSHB. But actully the field
of vendor/customer line item is filled with zero from FI. Thus,it shows
zero in line item display.
And as note 363309 says,
"Remove the field which contains the withholding tax information
from your display variant.
If you want to display the withholding tax information, double-click on
the document number and subsequently choose 'Withholding tax' button."
(BSEG-QSSKZ, BSEG-QSSHB, BSEG-QBSHB) field is not relavent for
Extended withholding tax and not suppose to use in report FBL1N.
It basically does not make any sense to use the withholding tax fields
of the document line items (BSEG-QSSKZ, BSEG-QSSHB, BSEG-QBSHB) with the
activated extended withholding tax.
regards
Madhu M
Edited by: M Madhu on Jan 31, 2011 1:19 PM
Maybe you are looking for
-
I have a URL I need to access "http://vb.bytware/forums/index/php" but fire fox keeps adding WWW to he beginning of the URL returning "http://www.vb.bytware/forums/index.php" whis is worng and therefore returns a Site not Found error. == This happene
-
How can i set the classpath??
CAN ANYONE PLEASE HELP ME HOW TO SET THE CLASSPATH IN WINDOWS ME ,WHAT IS THE RIGHT CODE TO SET THE CLASSPATH I AM USING JDK1.3 VERSION. THANK YOU VERY MUCH ERICK LUCCIO
-
Itunes Help im DESPERATE!
I cant install the latest version of itunes I get an error saying " That Quicktimes didnt install, Itunes requires quicktime". So I try and install quicktime seperatly and it gives me an error saying that "errors occured try installing another time"
-
Standrad smartform and standard print program not available in ECC 6.0
Hi gurus, I have a requirement like, I need to change the logo of the standrad smartform based on the company code. The standard smartform name is '/SMBUSE/US_MMGR3'. I have searched for the above form in ECC 6.0 and could not find one. is the issue
-
A client asked me if I could change the tempo of a song from 128 bpm to 126 bpm. Is there a way to easily and accurately change this?