How to get next series number for user form?
Hi,
I am using UDO for my form with Manage series inorder to maintain automatic documnet number.
Like sales order screen if u open the form it should display with next generated document number.
In my form it is not displaying the next number
I want to display primary as selected and next series number.Please help me.
I have used the following code
If (FormUID = "FM_PURCHASEINDENT") And (pVal.ItemUID = "SerName") Then
If (pVal.EventType = SAPbouiCOM.BoEventTypes.et_COMBO_SELECT) And (pVal.Before_Action = True) Then
Dim oForm As SAPbouiCOM.Form
Dim oComboBox As SAPbouiCOM.ComboBox
Dim oEditText As SAPbouiCOM.EditText
Dim str As String
Dim lNum As Long
oForm = SBO_Application.Forms.Item(FormUID)
oComboBox = oForm.Items.Item("SerName").Specific
str = oComboBox.Selected.Value
'SBO_Application.MessageBox("Selected Series: " & str)
'// The following method provides the next value of the series
lNum = oForm.BusinessObject.GetNextSeriesNumber(CLng(str))
oEditText = oForm.Items.Item("SrValue").Specific
oEditText.String = lNum
oForm.Update()
End If
End If
Regards
Jambu
Hi,
This is a little example for UDO with series (www.expertone.es/ficheros/SIMPLE_UDO.rar)
Code in Vb6.0
<b>Public Sub Load_UDO(ByRef rsbo As SAPbouiCOM.Application)</b>
Dim oFormParams As SAPbouiCOM.FormCreationParams
Dim oForm As SAPbouiCOM.Form
Dim oCombo As SAPbouiCOM.ComboBox
Set oFormParams = rsbo.CreateObject(cot_FormCreationParams)
oFormParams.XmlData = DameXML(App.Path & "XMLEXO_UDO.srf")
Set oForm = rsbo.Forms.AddEx(oFormParams)
'Load series in combo
Set oCombo = oForm.Items("EXO_CBO1").Specific
<b>oCombo.ValidValues.LoadSeries oForm.BusinessObject.Type, sf_Add</b>
oCombo.Select 0, psk_Index
RellenarNumDoc rsbo, oForm
oForm.Visible = True
End Sub
<b>Private Sub RellenarNumDoc(ByRef rsbo As SAPbouiCOM.Application, ByRef rForm As SAPbouiCOM.Form)</b>
With rForm.DataSources.DBDataSources("@EXO_OUDO")
.SetValue "DocNum", .Offset, CStr(rForm.BusinessObject.GetNextSerialNumber(rForm.Items("EXO_CBO1").Specific.Selected.Description))
End With
End Sub
Private Function DameXML(ByVal vsRuta As String) As String
Dim xmlDoc As New MSXML2.DOMDocument
xmlDoc.Load vsRuta
DameXML = xmlDoc.xml
End Function
Similar Messages
-
How to get NEXT free NUMBER for EXTERNALLY assigned RANGEs - SNUM, MD91 ?
Hi Experts,
I know that, with the FM - NUMBER_GET_NEXT_V1, I can get the next # for most document #s.
But, this FM is ONLY applicable to INTERNAL NUMBER RANGE.
1 - But., am working with EXTERNAL NUMBER RANGE, so looking forward for a FM/BAPI, which gives me next free # for use.
2 - If nothing is there, How to get it done? Is directly grabbing the latest # from the table/data base?
3 - Any other ideas?
thanqFor an example
Look at Attributes for SAP function ' L_TO_CONFIRM_SU' . Observe the radio button 'REmote-enabled function module - 2nd one.
Then you can see under source code it calls other SAP FMs. This is where you call the SAP FM you found.
A remote enabled fm requires a Logical destination when called from a program- you might already know that. -
How to get the document number for a ware house order.
Hello gurus,
how to get the document number for a ware house order. [if GI is posted refering that WH order] .. is there any report?
Thanks in advanceThere are several options. When you post a Goods Movement, you can use LB12 -display Transfer Requirement for material document or LB11 Display TR for material.
Depending on how your system is set up you may have gotten a Transfer Order automcatically. In this case you can look at LT24 - Transfer Order for material. -
How to get/view document number for KP06 Planning upload
Hi,
I have uploaded excel for Cost center/cost element Planning in KP06 using exccel planning.Now i want the document number which for which i have posted in KP06-Plan values using excel upload.
Kindly advice me how to get the document number for CO-OM(Cost center/Cost element planning) in KP06?
Thanks
SupriyaHello,
Please execute report KSBL. It should be useful.
Regards,
Ravi -
How to get the delivery number for the sales order
hi
how to get the delivery number for the sales orderHi,
1. IN VA03, enter the sales order and click on the document flow button. From there you can check the delivery document.
2. In SE11, enter VBFA(Document flow) table and enter the sales order in VBELV field and in VBTYP_N field enter 'J' to specify that you want to check if there is already a delivery document for that sales order.
Hope it helps...
P.S. Please award points if it helps... -
How canI get my serial number for Elements 11?
How canI get my serial number for Elements 11? Does anyone know how to help me. I did puchase it sometime ago but lost all computer data and had to replace computer. Hope someone can help.
Thanks
SteveIf you have no record of it at your end, the only place you might find it is at Adobe's end via logging into your Adobe account and seeing if it is listed there. If you registered the software it should be.
Beyond that your only hope might be to have Adobe support check your information to see if the software/serial number is available and if it can be given to you. Try contacting them by chat or telephone.
Here is a link to a page with options to help make contact:
http://www.adobe.com/support/download-install/supportinfo/ -
How to get the groups info for user
Hi guys i am new to ALUI..
i am trying to do some enhancement.
i want to know how to get the information of the users group and the group details using the IDK API?
Can sombody share some code?Hello,
You are welcome. Here is one way of get what you want:
1) get all groups id's
IPortletContext - >IRemoteSession -> IUserManager - > getCurrentUserGroups() -> int []
2) get details about group
IRemoteSession.getObjectManager(ObjectClass.UserGroup ) ->
cycle over int []: {
IObjectManager -> querySingleObject(comminity id) -> IObjectQueryRow -> getName()
Because you are going to use PRC and make SOAP calls to portal don't forget setup WS to pass token to portlet (check WS settings)
Edited by Bryazgin at 05/29/2008 7:48 PM -
How to get the week number for a given date?
hi guys,
what is coding to get the week number for a given date?
For example, 1/1/05 is week 1. then 8/1/05 is week 2.The second parameter to pass to the method is supposed to be one of the month constants JANUARY - DECEMBER. It happens to be that their numerical values are 0-11, not 1-12, so your "12" refers to the "13th" month of the year.
givenDate = new GregorianCalendar(2003, Calendar.DECEMBER, 31);
If you want to construct dates and times from strings like you seem to be, look into SimpleDateFormat http://javaalmanac.com/egs/java.text/ParseTime.html
(even still I got WEEK_OF_YEAR as 1 which is true but not really what I expected, excuse my previous reply but I wanted to check the facts before posting this) -
How to get an online number for Brazil
I would like to get an online number for Brazil but I can't get it and I don't know why. I'm living in Sydney - Australia and I wanted to have an online number for my family in Brazil call me any time.
Hi,
Unfortunately, Online Numbers are no longer available in Brazil.
Please see also: https://support.skype.com/en/faq/FA269
If my answer helped to fix your issue, mark it as a Solution to help others.
Thank You!
Please send private messages only upon request. -
How to get a week number for the year using oracle sql query?
hi everyone,
i have the requirement to find the week number for the calender..
so that week number should start with 01 when the year starts and it should end with week end date(that is first saturday of the january month).. so next week number starts with sunday and ends with saturday ,continously.. in the end date of the year it should not be 'saturday' but week number should end with last date of the year.. again in the next year it should start with '01'.
for example:
01-JAN-13 tuesday 01
02-JAN-13 wednesday 01
03-JAN-13 thursday 01
04-JAN-13 friday 01
05-JAN-13 saturday 01
06-JAN-13 sunday 02
07-JAN-13 monday 02
26-DEC-13 thursday 52
27-DEC-13 friday 52
28-DEC-13 saturday 52
29-DEC-13 sunday 53
30-DEC-13 monday 53
31-DEC-13 tuesday 53
01-JAN-14 wednesday 01
02-JAN-14 thursday 01
how can i achieve this, can anyone please help me out on this..
i have a query that starts with 01 when year starts but it gives problem in the end of the year .. described below with a query..
select mydate,
to_char(mydate,'day') as weekday,
to_char(next_day(mydate,'sunday'),'iw') as week_num
FROM ( SELECT TRUNC (SYSDATE, 'yy') - 1 + LEVEL AS mydate
FROM dual
CONNECT BY LEVEL <= (SELECT TRUNC (ADD_MONTHS (SYSDATE, 24), 'yy')
- TRUNC (SYSDATE, 'yy')
FROM DUAL))
this query gives date, weekday and week_num for 2 years 2013 and 2014,
when i run this query ,at the end of the 2013 it gives the result as,
26-DEC-13 thursday 52
27-DEC-13 friday 52
28-DEC-13 saturday 52
29-DEC-13 sunday 01
30-DEC-13 monday 01
31-DEC-13 tuesday 01
01-JAN-14 wednesday 01
02-JAN-14 thursday 01
for dates 29 ,30,31st it should give 53 .. how can i achieve that using this this query .. can any one help me out on this please...
thanks,
pradeepI tried with the IW ...
it is giving week_id for the year.
select
mydate,
to_char(mydate,'day'),
case when mydate between trunc(mydate,'yyyy') and next_day(trunc(mydate,'yyyy'),'saturday')
then to_number(to_char(mydate,'yyyy')||to_char(trunc(mydate,'yyyy'),'iw'))
when mydate between next_day(trunc(mydate,'yyyy'),'saturday') and trunc(add_months(trunc(mydate,'yyyy'),12)-1,'d')-1
then to_number(to_char(mydate,'yyyy')||to_char(next_day(mydate,'sunday'),'iw'))
when mydate between trunc(add_months(trunc(mydate,'yyyy'),12)-1,'d') and add_months(trunc(mydate,'yyyy'),12)-1
then to_number(to_char(mydate,'yyyy')||to_char(trunc(add_months(trunc(mydate,'yyyy'),12)-1,'d')-1,'iw')+1) end as WEEK_ID
FROM ( SELECT TRUNC (SYSDATE, 'yy') - 1 + LEVEL AS mydate
FROM dual
CONNECT BY LEVEL <= (SELECT TRUNC (ADD_MONTHS (SYSDATE, 24), 'yy')
- TRUNC (SYSDATE, 'yy')
FROM DUAL
)) -
How to get a case number for license transfer?
Dear all,
I would like to transfer my Creative Suite CS6 Production Premium license to a new owner. After some internet searching I already found the instructions at
http://helpx.adobe.com/de/x-productkb/policy-pricing/transfer-product-license.html#main_Li cense_transfer_process
Now I got stuck at the point to obtain a case number. Every time I click on "Contact us", the only option I can choose is, to write to the Adobe community forums.
Can anybody give me some detailed instructions how I can get a case number?
Thanks in advance!For the link below click the Still Need Help? option in the blue area at the bottom and choose the chat option...
http://helpx.adobe.com/x-productkb/global/service1.html ( http://adobe.ly/1aYjbSC ) -
How do get a serial number for Photoshop elements 12 from my redemption code
I recently purchased Photoshop Elements 12 from Office Max and I am trying to get the serial number from my redemption code. I have followed the instructions from Adobe
as well as those provided in the box and keep getting the message that "Something seems to be wrong on our end. Please try again". I have tried multiple times and still
get the same answer. What's wrong and how do i get myserial number so I can start using this productI was going through the same hassle with a Photoshop Elements 12 and Premiere combination box from Office Max. The receipt said that it was activated, but the numbers on the receipt and on the box were the wrong length. I finally found the 24-digit Redemption Code on a card mixed in with the other printed materials inside the box. I activated the Redemption Code through my online Adobe account and received the Serial numbers for both Photoshop and Premiere with no more problems.
-
How to get FI Doc number for a MM posted document number
Hi Friends,
I need info on how to retrieve FI Document number that gets generated for a MM posted document.
MM Posted document is available in table RBKP-BELNR and FI document number created for this is in table BKPF-BELNR but for a given RBKP-BELNR how to find BKPF-BELNR. I need the relation.
Any help on this is highly appreciated.
Thanks,
Simhahi,
you can get accounting details from material document in this way.
DATA: BEGIN OF it_rbkp OCCURS 0,
belnr LIKE rbkp-belnr,
bldat LIKE rbkp-bldat,
xblnr LIKE rbkp-xblnr,
gjahr LIKE rbkp-gjahr,
awkey LIKE bkpf-awkey,
END OF it_rbkp.
DATA: BEGIN OF it_bkpf_we OCCURS 0,
belnr LIKE bkpf-belnr,
awkey LIKE bkpf-awkey,
END OF it_bkpf_we.
DATA: BEGIN OF it_mkpf OCCURS 0,
mblnr LIKE mkpf-mblnr,
blart LIKE mkpf-blart,
bldat LIKE mkpf-bldat,
mjahr LIKE mkpf-mjahr,
awkey LIKE bkpf-awkey,
END OF it_mkpf.
IF NOT it_ekbe[] IS INITIAL.
SELECT mblnr
blart
bldat
mjahr
INTO TABLE it_mkpf
FROM mkpf
FOR ALL ENTRIES IN it_ekbe
WHERE mblnr = it_ekbe-belnr
AND blart = c_we.
ENDIF.
LOOP AT it_mkpf.
CONCATENATE it_mkpf-mblnr it_mkpf-mjahr INTO it_mkpf-awkey.
MODIFY it_mkpf TRANSPORTING awkey.
ENDLOOP.
IF NOT it_rseg[] IS INITIAL.
SELECT belnr
bldat
xblnr
gjahr
INTO TABLE it_rbkp
FROM rbkp
FOR ALL ENTRIES IN it_rseg
WHERE belnr = it_rseg-belnr.
ENDIF.
LOOP AT it_rbkp.
CONCATENATE it_rbkp-belnr it_rbkp-gjahr INTO it_rbkp-awkey.
MODIFY it_rbkp TRANSPORTING awkey.
ENDLOOP.
IF NOT it_mkpf[] IS INITIAL.
SELECT belnr
awkey
INTO TABLE it_bkpf_we
FROM bkpf
FOR ALL ENTRIES IN it_mkpf
WHERE awkey = it_mkpf-awkey.
ENDIF. -
How to get my serial number for iWork?
I have bought a family package of iWork since 2010. Now I clean my mac with osX mountain lion and would like to install a new copy to the same MBP.
How can I get the serial number back?
Thank you for all suggestions.Hey thirawut,
Thanks for the question. I found the following relevant information which may answer your question:
iWork '09: Serial number not required for installation of retail boxes
http://support.apple.com/kb/HT3396
iWork '09: Disc or Mac App Store install may prompt for serial number
http://support.apple.com/kb/TS3098
Thanks,
Matt M. -
How to get the serial number for the UUT in Test 5.0 version?
The "RunState.Caller.Locals.UUT.SerialNumber" reference does not for the newer version of TestStand. What would be another method to get the UUT serial number for the batch?
Please help. Thanks.RunState.Caller.Locals.UUT.SerialNumber only works in certain locations, specifically when Runstate.Caller is Runstate.Root.
Use RunState.Root.Locals.UUT.SerialNumber.
Maybe you are looking for
-
Migo cannot be done " PO does not contain any selectable items"
Dear SAP Gurus We have a very urgent issue, while trying to do MIGO for a particular standard PO. Some down payments have been done to this PO already and now when we try to do the MIGO, system is giving the error "PO does not contain any selectable
-
I lost all songs in ITunes due to virus. How can I back up from my IPOD what I previously downloaded from CD's . I have already transferred my purchases.
-
Clearing of AR items (FB05) - Error (F15 113)
Dear Experts, Greetings. I have developed a BDC program for clearing of AR items via FB05 tcode. For certain customers the BDC runs successfully and posting happens. But for certain customers we get the following error. Acct determination not define
-
CREATION OF HOLD DOCUMENTS IN GL
hii im new to sap. while im posting(F-02) of creation of hold document im getting an error like "HELD DOCUMENTS MUST BE CONVERTED; READ LONG TEXT" SO, please help me to solve this problem Thanks in Advance Venkat Reddy
-
10.1.2.0.2 DS Report Server
Win XP, Reports 10g (10.1) I'm trying to locate documentation on how to create a Report Server on my development box within the 10g Developer Suite. Using rwserver -install server=local batch=no autostart=no. I get a message about "consult install gu