Docno generation in cv01n with concatenation of 3 fields in addtiaonal tab

I am struck in my program . I got a requirement for doc number generation automatically when user gives input in cv01n. there is a standard program mcdokznr which i copied and modified as per requirement . but in t-code cv01n second screen ,second tab we have additional details (characteristic values) functional consultant created 3 fields i need to concatenate these 3 fields along with docno . how should i acheieve .
i also tried badi coiped standard badi DOCUMENT_NUMBER01 into ZDOCUMENT_NUMBER0 . in method i wrote
method IF_EX_DOCUMENT_NUMBER01~DOCNUMBER_CHECK.
DATA : tdwa TYPE tdwa.
DATA: subrc TYPE inri-returncode,
number LIKE draw-doknr,
number1 LIKE draw-doknr,
new_number LIKE draw-doknr,
new_num TYPE string,
lv_docnum1 TYPE string.
CHECK sy-uname = 'MSRO'.
CHECK tcode = 'CV01'.
CHECK draw-doknr = 'TRD' OR draw-doknr = 'TST'.
CALL FUNCTION 'CV200_DB_TDWA_SELECT'
EXPORTING
pf_dokar = draw-dokar
IMPORTING
psx_tdwa = tdwa
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
Implement suitable error handling here
ELSE.
if draw-dokar EQ 'TRD'.
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = tdwa-inumnr
object = 'DOKUMENT'
IMPORTING
number = number
returncode = subrc
EXCEPTIONS
interval_not_found = 4
number_range_not_intern = 8
object_not_found = 12
quantity_is_0 = 16.
CONCATENATE 'ABC' '-' number INTO new_num. " IN THIS LINE HOW I NEED TO CONCATENATE THOSE 3 CHARACTERIC VALUES CREATED IN cvo1n additional data?
WRITE new_num TO number.
CONDENSE number NO-GAPS.
ENDIF.
*endif.
ENDMETHOD.

dear ppl of otn!!
i need to make this concatenation because i have more tables except the subdivisions i have got each subdiv_indicator table and i have made the relationship of those indicators with the subdivisions and to recognize them properly i have chosen to concatenate charachters .just for the ease of making thing recognizable plus plz also tell me that how to refressh a sequence baecause when we delete a record form a table the sequence gets disturbed and last number still remains thatof the deleted record . how to solve this problem plz suggest.
as we know already that in min_subdiv table we have got
SUBDIV-ID           SUBDIV_NAME min_id
E001               EXP ON UNIVERSITIES 0001
E002               EXP ON PRIMARY SCHOOLS     0001     
E003               EXP ON SECONDARY SCHOOLS 0001
here is small picture of the data of min_subdiv_indicators for education subdivisions
subdiv_id indicator_id inidcator_name
E001 EI01 No. of primary education inst.
E002 EI02 No.of sec.edu inst.
E003 EI03 No.of professional college
E003 EI04 Literacy Rate

Similar Messages

  • I have a 1st generation Time Capsule with current firmware. Can I define the time periods when my children's devices have access to the wi-fi network?

    I have a 1st generation Time Capsule with current firmware. Can I define the time periods when my children's devices have access to the wi-fi network?

    Can I define the time periods when my children's devices have access to the wi-fi network?
    Yes, using the Timed Access feature in AirPort Utility, you can setup specific rules for each wireless device which define the exact timeframe each day that the device will be allowed to connect to the wireless network.
    Example....junior's iPhone can connect.....
    Everyday......Between.....9 AM and 10:00 PM
    or
    Weekdays.......Between......4 PM and 9 PM
    and Weekends.....Between......9 AM and 11 PM
    At the same time, your own personal devices will have Unlimited Access at all times.

  • MAC and iTunes is not recognizing my 5th generation iPod touch with smaller charger plug. What can I do to fix?

    MAC and iTunes is not recognizing my 5th generation iPod touch with smaller charger plug. What can I do to fix?

    I susopect you have the 5G iPod
    iOS: Device not recognized in iTunes for Mac OS X
    You need iTunes 11.1 or later and that requires a Mac with OSX 10.6.8 or later

  • My ipod touch last generation dont conect with itunes

    My ipod toucht, last generation, dont conect with itunes in windows 7...
    what can i do?????????????
    i try everything, bt still dont work.

    como que sea compatible con itunes???
    lo que pasa es que funcionaba bien y de un dia para otro dejo de funcionar y no aparecio mas en itunes.
    Instale denuevo el programa, hice todo lop que aparece en la pagina pero nada.
    Gracias!

  • Automatic Generation of classes with required attribute names

    Hi ,
    I am new to XML technologies ...I am having a problem in deciding whether I
    should use JAXB or Castor for data binding.
    The problem is the attributes I am to use are named differently as that found in
    the DTD.I have creted my own classes using the required attribute names and the
    n mapped them using the Castor mapping with the attributes.
    I was wondering how should I achieve --"automatic generation of classes" with th
    e specified attribute names?
    I understand that JAXB can be used to automatically generate classes ,but this
    uses the same default names as that of the XML file ..is there a way of forcing
    JAXB to generate classes that use my name attributes rather than that of the XM
    L dtd
    If I use Castor ..is there a way to do the same.Generate Classes with the specif
    id attributes

    Hi ,
    I am new to XML technologies ...I am having a problem in deciding whether I
    should use JAXB or Castor for data binding.
    The problem is the attributes I am to use are named differently as that found in
    the DTD.I have creted my own classes using the required attribute names and the
    n mapped them using the Castor mapping with the attributes.
    I was wondering how should I achieve --"automatic generation of classes" with th
    e specified attribute names?
    I understand that JAXB can be used to automatically generate classes ,but this
    uses the same default names as that of the XML file ..is there a way of forcing
    JAXB to generate classes that use my name attributes rather than that of the XM
    L dtd
    If I use Castor ..is there a way to do the same.Generate Classes with the specif
    id attributes

  • Problem with concatenation, need output in a desired format

    Hi all,
    I have a weird problem with concatenation.
    I should get an output in such a way that the result would be
    Put C:\TEMP\test20090210.xml /FOLDER1/test20090210.xml
    For this first to get C:\TEMP\test20090210.xml format I said
    CONCATENATE  'C:\TEMP\test' sy-datum '.XML' INTO filepath.
    For this secondly to get /FOLDER1/test20090210.xml format I said
    CONCATENATE  '/FOLDER1/test' sy-datum '.XML' INTO filepath1.
    Now I need to get the format
    Put C:\TEMP\test20090210.xml  /FOLDER1/test20090210.xml
    And to get this I said
    CONCATENATE  'put' filepath INTO  filepath SEPARATED BY space.
    And the output for filepath was Put C:\TEMP\test20090210.xml.
    But I want u2026u2026u2026.Put C:\TEMP\test20090210.xml /FOLDER1/test20090210.xml.
    How can I achieve this?
    If I say
    CONCATENATE  filepath INTO  filepath1 SEPARATED BY space. It throws a syntax error saying
    u201CUnable to interpret filepathu201D
    Please help me..i am dying to figure out how to concatenate and get the required output.
    My filepath contains u2026 Put C:\TEMP\test20090210.xml
    My filepath1 contains u2026/FOLDER1/test20090210.xml
    I need final output asu2026u2026u2026u2026.
    Put C:\TEMP\test20090210.xml /FOLDER1/test20090210.xml
    How to attain this..please helpu2026where I am going wrong..i declared filepath and filepath1 as STRING

    Hi all,
    Thanks for immediate reply...now it works..
    but i also need to put a counter like thing to distinguish my files.
    for my filepath....
    i want it as C:\TEMP\test20090210110146 so i said....
    CONCATENATE '    C:\TEMP\test'    sy-datum s   y-uzeit  '.XML'.
    Actually i am generating XML files and naming them as testsystemdatesystemtime.
    But i am concerend that my filed might be overwrriten if a file gets generated in a fraction of a millisecond..so to avoid that now i want to put a counter.
    i.e my filepath should now be as follows each time loop executes...
    C:\TEMP\test20090210110146_1
    C:\TEMP\test20090210110147 _2
    C:\TEMP\test20090210110148 _3.........and son on how can i do it
    i.e testsystemdatesystemtime+ a counter(which tells how many times loop executed)
    Once again thanks to all for immediate help...

  • I have an ipod nano 5th generation. the problem with it's that it doesn't show in itunes when connected to the laptop and it switches on on its own and songs start playing the battery gets consumed too fast after full charge. what is the actual problem?

    i have an ipod nano 5th generation. the problem with it's that it doesn't show in itunes when connected to the laptop and it switches on on its own and songs start playing the battery gets consumed too fast after full charge. what is the actual problem?

    What have you tried so far in terms of troubleshooting this issue?  Are you plugging the iPod into a high powered USB 2.0 port on the back of your PC? Have you tried a different USB cable?
    What happens if you try to reset the device with it still connected to the PC?
    How to reset iPod
    Has this iPod ever worked on this PC or is this the first time you have time you have tried connecting it?
    Have you carefully worked through each and every single suggestion in this Apple support document?
    iPod not recognized in 'My Computer' and in iTunes for Windows
    B-rock

  • Ipod nano 7th generation having issues with the UI. Out of box everything worked great. Once I snyc the device and it finished, the UI becomes unuesable. You have to double tap every icon in order to open music, videos, etc.  I cannot swipe to the second

    ipod nano 7th generation having issues with the UI. Out of box everything worked great. Once I snyc the device and it finished, the UI becomes unuesable. You have to double tap every icon in order to open music, videos, etc.  I cannot swipe to the second page of icons,  black box appears around an icon and then switches to a different one anytime I swipe. A box even appears around the time and battery power. iPod & iTunes are both updated. What is the FIX on this issue?

    I had this problem as well.  This is what I found by searching online.  I tried the fix on my nano 7th gen and it worked.  I hope this helps you.  Make sure to use two fingers for sliding and double-click the icons to get into settings.  Good luck.
    It would seem that Voiceover has been enabled on your iPod Nano. The following article contains information regarding Voiceover, and how to disable it once it's been enabled.
    iPod nano (6th generation and later): How to use VoiceOver
    http://support.apple.com/kb/HT4317
    To turn off VoiceOver on iPod nano using VoiceOver gestures
    From the Home Screen, swipe right or left with two fingers until you see or hear "Page 2 of 2" on iPod nano (7th generation) or "Settings" on iPod (6th generation).
    If the icons have been rearranged, or if there are more than four Home screens, you may hear something different.
    Slide one finger around the screen until you hear Settings. 
    Double-tap to open Settings. 
    Slide your finger up or down the screen until you see or hear General, then double- tap. 
    Slide your finger up or down the screen until you see or hear Accessibility, then double-tap. 
    Slide your finger up or down the screen until you see or hear VoiceOver, then double-tap. 
    Double-tap when you hear "VoiceOver switch button on." 
    You'll hear "VoiceOver off" to confirm the setting. Now you can use standard gestures to control iPod nano.
    Note: You can also turn off VoiceOver by resetting your iPod.

  • Is the I-Pod Touch 4th generation bluetooth compatible with Nokia E72

    Is the I-Pod Touch 4th generation bluetooth compatible with Nokia E72

    No.  That type of profile is not supported by your iPod Touch. See this article for a list of profiles that are supported.
    iOS: Supported Bluetooth profiles
    B-rock

  • What do they replace a 1st generation ipod nano with now?

    What do they replace a 1st generation ipod nano with now? from the recall.

    Glad you were able to sort it out - iPod cables and USB ports can sometimes by mysterious in their variability - though in your case the symptoms suggest that a conductor may have failed inside the cable you were using.  I've found that, using a selection of cables:
    my 2G nano will occasionally be detected as being connected via USB 1.0 (even when connected to 2.0 ports)
    my 3G nano syncs fine but steadfastly refuses to charge when connected to any of the USB ports on my main computer, though using the same cable charges happily when connected to a USB AC adapter
    Such things are just sent to annoy us
    On your other question, it is possible to completely replicate your library across two or more PCs.  As long as the iTunes database (iTunes Library.itl) is duplicated as well as all your media you then have two physical copies of one logical library, with which iDevices will sync on either computer.  See turingtest2's notes on  Make a split library portable to see how to verify that your library is in a consistent structure to make replication easier, and Backup your iTunes for Windows library with SyncToy on one method for replication (typically using an external hard drive that also serves as a regular backup).  My configuration looks like this:
    where the library on my "master" system is replicated, using MS SyncToy and an external HDD, to two other systems - a secondary one at home and one in my office at work.  My iDevices will sync to any of these without the "threat" of wiping their content because iTunes detects that they've been previously synced to a different library - because of the replication method used the "unique" library identifier that iTunes uses in the sync process is actually the same on all three systems.

  • I got ipod touch which i bought 3 years agao. is that possible, could i swap new generation ipod touch with my old?

    I got ipod touch which i bought 3 years agao. is that possible, could i swap new generation ipod touch with my old?

    Apple will only give you a 10% discount for recycling if you turn a old one in.
    Apple - Recycling Program for iPod and Mobile Phones

  • Hi, Just wondering whether the iPod Classic 3rd generation is compatible with current iPod docks. Thanks

    Hi,
    Just wondering whether the iPod Classic 3rd generation is compatible with any of the current iPod docks.
    Thanks for the help.

    Hey anster101,
    Great question, and welcome to Apple Support Communities.
    The following article outlines the compatibility of the Apple Universal Dock:
    Learn about Apple Universal Dock
    http://support.apple.com/kb/HT1380
    Thanks,
    Matt M.

  • 4th and 5th generation not compatible with firewire charger

    I recently upgraded my first generation ipod (40gb) with a fifth gen ipod nano. My question is why should I have to pay for a new charger for the ipod? I want an alternative to always having to charge my ipod with my computer. I have the plug with my original ipod that has the firewire attachment but was told that Apple has weaned away from firewire hookups. I understand that things change over time but I don't feel that I should have to pay for a new one when I already have one. I'd be willing to send this plug into Apple in exchange for a new one. I'm am extremely frustrated and angry if I have to pay for a new plug.

    question is why should I have to pay for a new charger for the ipod?
    You don't have to pay anything.
    Charge it via the USB on the computer.
    I'd be willing to send this plug into Apple in exchange for a new one.
    Say, I've got an old iPod. It doesn't do video but I'd be willing to send it to Apple in exchange for a new one.
    Whatya' think?
    I'm am extremely frustrated and angry if I have to pay for a new plug.
    Again, you don't have to. But if you want a new charger, you will have to purchase one unless someone is willing to give you one.

  • Report Generation Toolkit Compatibility with Microsoft Office 2013 and LabVIEW 2012

    Hello community,
    on this page there is shown the Report Generation Toolkit Compatibility with Microsoft Office and LabVIEW.
    In our company we use actually LabView 2012 and it works perfectly with MS Office 2010.
    Has anyone ever tried the "Report Generation Toolkit" of LabVIEW 2012 with MS Office 2013? Does it really not work? Has anyone an emirical value for this topic?

    Hi digital_badger,
    as you sure have seen in the link it is not officially supported by NI, which means to you one of the following things:
    1. You could upgrade your LabVIEW and your Report Gerneration Toolkit to Version 2014 and use MS Office 2013
    2. You could just try it with MS Office 2013 which might work but if it's not working you don't get any support from NI.
    Even if someone tried it already and it worked for him does not mean that it will work on your machines. It is possible that on some of your machines it could work but not on others. Their can be a lot of problems while playing around with unsupported setups.
    3. You could leave your setup as it is and stick to your MS Office 2010.
    I hope I could give you a good answer to your question

  • How do I control a first generation airport express with 10.8.2?

    How do I control a first generation airport express with 10.8.2?
    I have an old airport express that one of my machines running mountain lion will not support.  If I upgrade all of my systems to mountain lion, is there any way I can still control and configure the airport express?

    You may need Airport Utility v. 5.6
    http://support.apple.com/kb/DL1482
    It does work with Mountain Lion.

Maybe you are looking for

  • Itab code

    hai,   Suppose itab is having 10 records, Write what will be the output of            Loop at itab.                    if sy-tabix between 1 and 5.                   write: /sy-index.                     else if : sy-index between 6 and 10.          

  • A year ago I paid to update my Pages.  If I click on the doc on the desktop the old Pages opens up and I can't save my work. Help!

    A year ago I paid to update Pages to 4.1.  If I click on a Pages doc on the desktop the old Pages opens up and I can't save my work and so I lose what I do.  So for a year I have been remembering to open Pages using the icon on the bottom of the desk

  • Excel Import of Dates while in Manual Task Mode

    It appears that I cannot do an Excel import into start/finish fields for a task that is set to manual mode.  Is this true, or am I overlooking something? This is annoying.  I am having to import into the temporary fields of start1/finish1, then copy

  • Webpage not showing up

    I have created a website and "put" it online. I am able to access it in firefox and sometimes internet explorer. when my friends try to access it (or when i use IE or safari) all that shows up is the background, except for one page that you manually

  • Linking Form to Document

    I have a question regarding linking a form to a document. The form is located at this site: http://mdotcf.state.mi.us/public/webforms/public/3093test.pdf and it is linked to the document at this site http://www.michigan.gov/documents/mdot/Application