Creating a preset title with animation
Hello all,
I'm trying to create a title (or lower 3rd/name strap to be precise) which can be set up for use on other machines running PPro CS5.
I designed and created everything in After Effects, thinking I could save this as a title preset for Premiere (just like you can with Motion to FCP). I've since learnt that this can't be done (is this right? Am I missing something?). I've almost worked out how to recreate the same animation etc. in Premiere. My question is how do I package or collect the layers and assets into one simple title preset? One which I can save onto other machines for other users without them having to do any fiddly recreation of my animation? Unfortunately I need the text to remain editable, otherwise I'd just hand over a movie or image sequence with an alpha embedded.
I thought this would be a relatively simple job seeing as Motion and FCP have it working so smoothly — After Effects is infinitely better than Motion and Dynamic Link seems too powerful a tool to not be able to make animated title presets somehow possible for Premiere. Hopefully I'm missing something.
I also have no preset titles from Adobe. We downloaded the production premium trail then brought the serials — could this be why I don't have the presets installed? Is it worth reinstalling form the same download link?
Thanks in advance.
The artwork started out as an exported frame from AE, so the positioning, scale and resolution were all perfectly set before coming into PrPro.
I tried a PSD, TIF and PNG, all gave much the same (very poor) results when imported as a logo. I realise I could have tried to create my elements in the titler to start with but the tools seem very limited.
My workaround was to create layered artwork in Photoshop and import them all one by one into the titler as logos, and edit the opacity there. The end product seems ok, with a few tiny alterations to the design, but such an incredibly laborious and seemingly stupid process to get there.
My original brief was to create title templates for non-editors (journalists throwing video clips together) to use without any fiddly workarounds, so I couldn't rely on them to import logos or animations to overlay onto the strap text or anything similar — it all had to be contained in the titler and saved as a preset.
The job's done now, but I find it hard to believe Adobe are so far behind Apple with this kind of thing. As I think I've mentioned previously in this thread, you can save Motion projects as templates for FCP, animations, imported assets and all. I assumed something similar would exist between AE and PrPro, but it either does not or it's very well hidden. That aside (maybe AE, being so much better than Motion, is just too complex to save as a title preset), I find it remarkable that the titler tool is so clunky and limited in what it can do — I can't even get it to import movie files, this is video editing software! I know AE can do everything, I've been working with it for years and I still learn something everyday, but that's no good if you need to make a PrPro title template for someone who doesn't use or even have AE.
I know all my moaning and whinging is useless until I make a feature request, but I'd be very grateful if someone can categorically confirm such features just aren't possible yet or whether I'm at fault and just haven't worked it out properly.
Many thanks for such quick and helpful responses.
Similar Messages
-
Titles with animation / motion ...
I've only made two movies thus far with PP CS6. I used a number of very basic titles, although in my last movie leveraged the title templates to jazz them up a bit. Before I switched to PP I used Videostudio (consumer app), which came with a bunch of premade motion titles that you could browse and easily change somewhat along the lines of the new title from template feature in PP. I didn't see anything along those lines in PP unless I missed something. Are titles that have animation and motion something one would create with After Effects?
As Sal mentions above, PrPro can do Title Animation, but there are basically only two Title Animation Presets: Roll & Crawl. However, PrPro offers Animation via Keyframing the Fixed Effects>Motion>Position. That Fixed Effect is Keyframed most easily from the Effects Control Panel.
Beyond that, one can Animate many other Effects for Titles. I use the Fixed Effects>Opacity, Motion>Scale, as well as added Effects, such as Blur, to do what I require.
When I run out of either control, or the exact Effect, that I want to Animate in PrPro, I then go to AE, but within reason, PrPro is easy, and highly effective. Once one grasps the concept of Keyframing Effects over time, it's really just a bunch of clicks.
Good luck,
Hunt
PS - I Animate Titles, Stills and Video - all pretty much the same way, so it is not limited to just Titles. -
Sharing a Presentation with animations, but no audio
How do I get a presentation I created without audio but with
animations to display in a Connect meeting so the presenter can
click through it like a Powerpoint? Currently the presentation just
clicks from slide to slide with no animations, so the items that
I've animated are skipped.
Help!! We go live tomorrow!Casper,
Okay I want to sing the friendly ghost from the show when I see your name.
I burn avi all the time in Toast 7.1.2 Toast and I usually convert them to divx to fit 10-11 hours of video on there, but I've done it with DVD video. A friend lent me a movie once with no sound and here is the problem that will work everytime. You need to download the VLC player to get it to work right. Here is the link: http://www.videolan.org/
Didn't even know they had an intel one as I have the other version on my Powerbook and just transferred it to my intel one. Once it is downloaded you click on the orange striped cone and then you will see a little VLC box come up. The most effective way to view any file is to go to File up top and then scroll to open file (I've down the quick open file too and then you see a open box and a button that says browse next to it. Click the browse and find the movie or divx you want to watch and click open and then okay, then click the play arrow that is on your desktop and viola. You can go up top too and go to video and click full size screen etc.
If this was helpful or solved your problem please click the helpful or solved button up top. If this doesn't work let me know too.
S. -
How to save expression together with animation preset?
I am trying to understand expressions and animation presets.
I have one single slider control, which controls the opacity of a layer, where the value is the slider value + slightly changed using an expression.
I can save the slider control as an animation preset, but the expression gets lost.
Yes, this is so basic that it can be, this is the way I like to learn. And as far as I know, expressions can be saved together with animation presets. I hope someone can tell me how!The reason that the expression is not removed when you delete the slider is that the expression is only reading the slider value, the slider doesn't know that the expression is there. There's no reverse link.
You can build more professional effects but that involves editing the xml file that tells AE what effects are applied. This still would not generate a reverse link to an expression.
Enabling or disabling an effect only changes the way things are rendered. If you have keyframes on a Lens Flair Brightness and you disable the effect the Lens Flair will not render but the keyframe values will still be available to an expression. Again, there's no reverse link. Since an expression slider does not make a change in the pixel values of a layer turning the FX switch on or off will have no effect on an expression reading the value.
The "trick" in creating an Animation Preset that uses expressions and is removed with the "effect" is removed from the Effects Control Window is to only write expressions for properties that are available in the effects used. You could do this by applying the Transform Effect, or the Levels Individual Controls Effect, or the CC Composite Effect to the layer and writing the expression there instead of placing your expression in the Layer's opacity property. Take a look at this screenshot. -
HELP! i need to create a photo album with pictures titles!
Does someone know how to create a photo album with title on each picture?
I tried some apllications but i don't see the title of each picture. Please i need it for an exhibition.
ThanksThanks for your fast response.
I have a file in my pc with a lot of images. I did a sync with my ipad and i found all the files with pictures but they appear without title, but i can see titles on my pc!!
maybe i need a specific application? -
What is the workflow for creating a children's ebook with animated illustration?
I would like to animate and create a children's book with animated illustrations for the iPad but I am confused as to what the workflow is. I am proficient in Flash, Edge, Photoshop and getting to grips with indesign and DPS. but I cannot find the answer as to how to create an interactive children's book anywhere, Would I be able to create it with DPS? How can I make the accelerometer? e.g. getting things falling when you turn the iPad? Ultimately what I would like is to animate in Edge or Flash and then create a page turner/table of contents (illustrated) etc. Can someone please help?
Impossible to answer, I’m afraid. There’s just not enough details here and the very fact that you’re asking tells me that you should be very careful in choosing how to get this project done.
-
I want to create rolling credits with a picture of each actor alongside the actor's name. What is the easiest way to add rolling images to the rolling title?
Tim,
One was would be to create your credits in Titler, and then add a Logo, which would be the thumbnail of the actor.
Another would be to create your Title w/ embedded Image in Photoshop, Save_As PSD, and Import that into PrPro, then use Motion>Position Keyframing to do the animation.
Yet another would be to do the thumbnail as a PiP in the Title (above it, on a higher Video Track), then animate the credits Title with Motion>Position Keyfarmes, and do the same for that Image, so that they move together. You should be able to Keyframe, say the Title, then Rt-click that, choosing Copy. Next, Select the PiP Clip, Rt-click it, and choose Paste Attributes. [I've never tried this with a Title and a Still Image, but will experiment, in case there is some limitation there, but do not think there will be.]
Good luck,
Hunt
[Edit] In my test, those Motion>Position Keyframes Copied over perfectly. -
Problem in creating a generic datasource with infoset
Dear Expert,
I have to create a generic datasource with infoset. I linked the infoset with a test program below. In the program, I have one selection option, which is s_order. After creating an infoset and a datasource, this selection option 'SELECT_S_ORDER' is added to my extract structure. However, after try filtering with this SELECT_S_ORDER, it doesn't filter data at all. Why? I want to filter data with my s_order.
REPORT ZBI_DS_TEST.
tables: vbak.
* DATA
field-symbols: <vbak> type vbak.
data: t_vbak type table of vbak,
w_vbak type vbak,
t_vbak2 type table of vbak,
w_vbak2 type vbak.
* SELECT-OPTIONS
selection-screen begin of block b1 with frame title text-001.
select-options: s_order for vbak-vbeln.
selection-screen end of block b1.
start-of-selection.
* <Query_head>
perform sub_select_data.
loop at t_vbak into w_vbak2.
move-corresponding w_vbak2 to vbak.
* <Query_body>
endloop.
*& Form sub_select_data
* Select data
FORM sub_select_data .
select *
into table t_vbak
from vbak
where vtweg = 'IP'.
ENDFORM. " sub_select_dataWhat do you mean by linking program with infoset?
Do you get the field in your RSA3 Tcode? -
I want to create a HD disc with my Adobe Premier Elements but I am getting low resolution. When I go to share the DVD to disc the form only offers 8pixels at the bottom. How do I burn this DVD in HD with higher number of pixels? I have read other forums on burning HD DVD's but I do not see the option to turn the 8 pi into 40 pi the one forum recommended. I want my DVD to be HD so I may sell these videos online for my business. I can't sell them the low quality they are burning now. Hopefully you can help me. Thanks.
desalvom
Thank you for your reply.
You cannot burn your high resolution video that you can view on your computer to an AVCHD on DVD disc
that will replay through a regular DVD player. But players are marketed under a variety of names with
different support opportunities. One manufacturer may call its product MultiMedia Player, media player, Blu-ray player,
etc.The bottom line is the specifications for each of the players that are candidates for the playback of
the AVCHD format on DVD disc or the format of interest.
If you upload your HD (1920 x 1080) video to YouTube, YouTube converts the video to flash format, but it goes up as the HD video.
But, beware. Look at the YouTube viewing setting when your uploaded video is playing back. The YouTube default is not
HD. It might be 360p, 480p. If you have a 1080p video, then before the YouTube playback, you should be looking
at the video with the YouTube 1080p HD setting for best viewing. That is a YouTube matter.
Best results depend on you
a. setting up the Premiere Elements project preset to match the properties of the source media. That means, if
you have 1080p source, you (manually) or the project (automatically) set the project preset at
NTSC
DSLR
1080p
DSLR [email protected]
or the PAL counterpart, depending on your region need.
b. if you upload your video to YouTube using the Premiere Elements feature, there is a HD preset, but you cannot
customize it.....if you need customization, then you can export your Timeline to a file...in this example
Publish+Share
Computer
AVCHD
with Presets = MP4 H.264 1920 x 1080p30 or PAL counterpart
and then customize the preset under the Advanced Button/Video Tab of that preset. In increase quality, you might look to increase
the Bitrate under Advanced Button/Video Tab settings - without compromising the file size.
Then you would upload that file to YouTube at the YouTube web site.
All of the above are factors that need looking into in order to determine the why for what you wrote
I have published a shortened advertisement video to YouTube- say 5 minutes-
and it is low quality
Often SD video upscaled to HD can present poorly. But, you are dealing with a HD workflow so that should not be introduced into the matter. The setup of the project and
the properties of the source video are important, but let us start with the above and rule in or out those considerations first.
Thank you. As always, any clarification needed, please do not hesitate to ask.
ATR -
Creating Loadable Preset Settings
Hi,
I am trying to create loadable preset settings for my controls. I wasn't sure of the best method so I started by allowing the user to save the preset as a text file. The problem I am having is how to load the presets from the text file. I was thinking that I could try Read from Spreadsheet, but a few problems/questions arise from that.
Problem #1: My text file has two columns. For the sake of aesthetics I made it so the data of each column was perfectly aligned (Column 1 contains the name of the control and Column 2 contains the value of that control). This leaves me with instances where different amounts of space exist between elements in the same row. I am not sure how to parse the data in each row. The easiest way I can see would be if i could have an offset per line since my control values are all the same length from the start of the line. I can't figure out how to implement it, if it is even possible.
Problem #2: If I manage to parse the data in the rows properly, I would be left with an array of control values. How would I go about loading those values into the controls of the VI. I am not sure how I would do that from an array.
I have attached a text file with the formatting I described above to give some reference. The file contains channel names with "inactive" next to them. Those are supposed to correspond with 0's, which I figured I could convert to numbers before they were loaded into the proper boolean controls.
Thanks
Solved!
Go to Solution.
Attachments:
IncrementTest1.txt 1 KBHi Tom,
Thanks for the response. I checked out the library and it was pretty helpful. I ended up figuring out a solution that didn't come directly from the library due to my curiosity. It is able to read in my files and load the presets to controls. Thanks for your suggestion! I attached the VI I made in case anyone stumbles upon this thread with the same problem I had.
Thanks!
Attachments:
Read and Load Preset.vi 11 KB -
How do I create Blu Ray Disc with DVD Studio Pro ?
Folks, I think that I'm in trouble... I created 3 HD projects with DSP (i do not have the tapes and fcp project anymore, neither the HDV 1080i mov file) and I need to be burned it with a Blu-Ray Media, and play it with a BR Player... So far I made the following steps:
1-) In FCP, I exported some Quicktime Movies with HDV 1080i60 codec (movie with chapters, menu bg movie, extras).
2-) In Compressor, I used the preset HD MPEG-2 19,0 MBPS for videos, and Dolby digital professional 2.0 for audios.
3-) In DSP I created a HD DVD Project (DISC window, GENERAL tab, DVD STANDARD = HD DVD; DISC WINDOW, DISC/VOLUME tab, DISC MEDIA = BLUE LASER, LAYER OPTION = OTP) with movies, extras, menus...
4-) In ADVANCE BURN (under FILE MENU) I chose BUILD.
5-) Now I got a HVDVD_TS folder, with my movie compilation...
NOW, my doubt is... The folder HVDVD_TS can be burned on a BR Media and be played on a BR Player ?
If not, what can I do with my HVDVD_TS folders to be compatible with Blu Ray ?
thanks a lot for any help.
Best Regards
MarceloThat can't be done. Get the tapes back and start over. Get the new Toast in the tutorial I posted to make a Blu ray disc.
You could try this tool to demux the streams, transcode to QT then re-encode for Blu Ray but I wouldn't go that direction unless you know what your doing. You would also be encoding twice which is not good.
Get the original source back and go the toast route from the start.
Message was edited by: Eric Pautsch1 -
Can you adjust preset title effects on Final Cut Pro X
Im trying to play with the anchor points on a preset title effect called DRAMATICA. The lettes LEAVE too quickly and don´t allow enough time to be read.
Can that be done? Is it possible to adjust the titles setting? Can the anchor point be adjusted for duration?
Thanks!If you mean changing the relative duration of the various phases of the title, you'd have to open a copy in Motion; but be warned that, at least for an inexperienced user of Motion like myself, it seems to be a quite sophisticated title. There are complex behaviors involved, so it is not like some where you'd just publish another parameter and be done with it.
-
Create a Java Object with Dynamic Variables
Hi ,
I am constructing a web based system which stores personal information on people. I have created a Person class with all the obvoius variables, forename, surname, address etc.. My problem is that some clients wish to make use of some of the variables, some want other variables and as i meet others they wish to add in some new variables eg
Client 1 wishes to store; Forename, Surname and Address
Client 2 wishes to store Forename, AltForename, Surname, AltSurname and Address ( AltForename - this is an alternative Forename in this case the Irish translation of their English name)
Client 3 wishes to store Forename, Surname, Title, Address, Height, Weight, DOB, School, Occcupation.
Each of the clients above need to submit these in an online form with each form looking different due to the fields they have to enter and also with different validation rules.
At present i have a Person object handling all fields i can think of and different validation methods depending on the client, but there must be a better way of doing this as each time a new field is added by a new or existing client, i not only have to update the java and jsp but also the DB.
This is all web based and i wish to use the same code base and data source for all clients. I also wish it to be all web based. So in theory if a client asked to add in a "middle name" field to their form and make it mandatory, i could go to an admin page which lists all the possible input element types and select the "field type" then set validation rules on it.
All the web based and DB parts can be ignored - the main issue here is creating a Person class which can have any number of variables of varying types ( String, Int, etc)
Regards,
Cormac
Edited by: cormacodonnell on Jun 27, 2008 6:33 AMcormacodonnell wrote:
Hi ,
I am constructing a web based system which stores personal information on people. I have created a Person class with all the obvoius variables, forename, surname, address etc.. My problem is that some clients wish to make use of some of the variables, some want other variables and as i meet others they wish to add in some new variables eg
Client 1 wishes to store; Forename, Surname and Address
Client 2 wishes to store Forename, AltForename, Surname, AltSurname and Address ( AltForename - this is an alternative Forename in this case the Irish translation of their English name)
Client 3 wishes to store Forename, Surname, Title, Address, Height, Weight, DOB, School, Occcupation.You could extend the Person class with 3 sub classes, but that might be overkill just to store personal info.
Each of the clients above need to submit these in an online form with each form looking different due to the fields they have to enter and also with different validation rules.
At present i have a Person object handling all fields i can think of and different validation methods depending on the client, That's probably how I'd do it if it's not too much trouble. But to be OO you should probably go the inheritence route.
but there must be a better way of doing this as each time a new field is added by a new or existing client, i not only have to update the java and jsp but also the DB. Welcome to software development. It's called "feature creep" or "scope creep". As soon as you get your code working right and deploy it and get ready to go on vacation, the customer always comes back with something else they "need" or "forgot". The app I'm building right now I've rewritten or changed 7 times in 3 months because nobody has a clue what they really need. -
I want to experiment with applying develop adjustments from a plug-in. noticed the photo:applyDevelopPreset( preset, plugin ) function.
Question:
Is there a way to create a preset on the fly within the plug-in, for example a preset for setting the Exposure2012 to +10.
A little piece of code would be appreciated much!If you were expecting catalog to be available upon return from the function posted - it won't be: function's locals are out of scope in context external to the function where they're declared, so catalog will be expected in the global environment instead (everywhere but inside that function), but it's not - thus the error, probably.
-- in other words:
local catalog
local function yada()
catalog = LrApplication.activeCatalog()
end
yada()
LrDialogs.message( tostring( catalog ) )
-- works, whereas
local function yada()
local catalog = LrApplication.activeCatalog()
end
yada()
LrDialogs.message( tostring( catalog ) )
-- will give the error you're getting
Either that, or there was a typo somewhere...
PS - you may want to spend some more time reading that lua manual . -
Create dynamic internal table with dynamic structure
I have an internal table itab1 that have 12 amount fields from period1 thru period12. I need to create a dynamic table with dynamic structure for the period column if the total amount of each column is > 0. Any idea on how to do that?
For example if my itab1 has 20 rows and the sum of period1 = 35, sum of period2 = 0, sum of period3 = 5, sum of period4 =0, sum of period5 = 2 then I need to create a dynamic structure for the field column that have the total > 0, i.e structure struct1 have field period1, period3 and period5 only. Then I will need to load the data to itab2 from itab1. Can someone help.
Thanks. I am on 4.7 and will upgrade to ERP 6.0 soon.go throgh this....
REPORT yusmm_text1 NO STANDARD PAGE HEADING
LINE-SIZE 199.
T A B L E S
TABLES: MARA,
MAKT,
THEAD.
GLOBAL TYPE-POOLS
TYPE-POOLS : SLIS.
GLOBAL TYPES
TYPES : BEGIN OF TP_FINAL,
MATNR TYPE MARA-MATNR,
BEGRU TYPE MARA-BEGRU,
MTART TYPE MARA-MTART,
MAKTX TYPE MAKT-MAKTX,
SPRAS TYPE MAKT-SPRAS,
LTXT(2000) TYPE C ,
SRNO TYPE N ,
END OF TP_FINAL.
TYPES : BEGIN OF TP_T002,
SPRAS TYPE T002-SPRAS,
LAISO TYPE T002-LAISO,
SRNO TYPE N ,
END OF TP_T002.
TYPES : BEGIN OF TP_MARA_MAKT,
MATNR TYPE MARA-MATNR,
BEGRU TYPE MARA-BEGRU,
MTART TYPE MARA-MTART,
SPRAS TYPE MAKT-SPRAS,
MAKTX TYPE MAKT-MAKTX,
END OF TP_MARA_MAKT.
Types: BEGIN OF tp_matnr,
matnr TYPE mara-matnr,
END OF tp_matnr.
GLOBAL ELEMENTARY VARIABLES
DATA : gv_date TYPE sy-datum.
DATA : gv_repid TYPE sy-repid.
DATA : g_var1(10) TYPE C.
DATA : gv_index TYPE sy-tabix.
DATA: gv_strg TYPE string,
gv_strg1(2000) TYPE C.
DATA : gv_lang TYPE sy-langu.
DATA : g_v(3) TYPE N .
DATA : gv_lines(3) TYPE N .
DATA : gv_var(3) TYPE N .
DATA : gv_var1(3) TYPE N.
DATA: gv_str TYPE STRING.
DATA: gv_str1 TYPE STRING.
DATA : gv_li TYPE I,
gv_lit TYPE I,
gv_lin TYPE I.
DATA: g_var11(3) TYPE N,
gv_li1(3) TYPE N,
g_var2(3) TYPE N.
DATA : gv_i1 TYPE I.
DATA : gv_i TYPE I.
DATA: gl_lenght TYPE I.
GLOBAL STRUCTURES
DATA: T_NEWTABLE TYPE REF TO DATA,
T_NEWLINE TYPE REF TO DATA,
T_FLDCAT1 TYPE SLIS_T_FIELDCAT_ALV,
T_FLDCAT TYPE LVC_T_FCAT,
WA_IT_FLDCAT TYPE LVC_S_FCAT,
WA_IT_FLDCAT1 TYPE SLIS_FIELDCAT_ALV,
WA_COLNO(2) TYPE N,
WA_FLNAME(5) TYPE C,
L_LT TYPE SLIS_LAYOUT_ALV.
GLOBAL INTERNAL TABLES (WITH INCLUDE STRUCTURE)
DATA : IG_MARA_MAKT TYPE STANDARD TABLE OF TP_MARA_MAKT,
WG_MARA_MAKT TYPE TP_MARA_MAKT.
DATA : IG_T002 TYPE STANDARD TABLE OF TP_T002,
WG_T002 TYPE TP_T002.
DATA : IG_FINAL TYPE STANDARD TABLE OF TP_FINAL,
WG_FINAL TYPE TP_FINAL.
data : IG_MATNR TYPE STANDARD TABLE OF TP_MATNR WITH HEADER LINE,
WG_MATNR TYPE TP_MATNR.
DATA:BEGIN OF IG_THEAD OCCURS 0.
INCLUDE STRUCTURE THEAD .
DATA: END OF IG_THEAD.
DATA:BEGIN OF IG_TLINE OCCURS 0.
INCLUDE STRUCTURE TLINE .
DATA:END OF IG_TLINE.
FIELD-SYMBOLS
FIELD-SYMBOLS: <T_DYNTABLE> TYPE STANDARD TABLE,"Dynamic internal
"tablename
<FS_DYNTABLE>, "Field symbol to create work area
<FS_FLDVAL> TYPE ANY. " Field symbol to assign values
COMPULSORY
FIELD-SYMBOLS: <FS_DATA> TYPE REF TO DATA,
<FS_DATA1> TYPE REF TO DATA,
<FS_2> TYPE STANDARD TABLE,
<FS_22> TYPE STANDARD TABLE,
<FS_1>,
<FS_11>,
<F>,
<FA>,
<LWA_LINE_WA>,
<LWA_LINE_WA1>.
------- Create Dyn Table From FC
DATA: LT_DATA TYPE REF TO DATA,
LT_DATA1 TYPE REF TO DATA,
LWA_LINE TYPE REF TO DATA,
LWA_LINE1 TYPE REF TO DATA,
LI_FIELD_CAT TYPE LVC_T_FCAT,
LWA_FIELD_CAT TYPE LVC_S_FCAT.
PARAMETERS & SELECT-OPTIONS
SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS : S_SPRAS FOR MAKT-SPRAS NO INTERVALS DEFAULT 'EN'
OBLIGATORY ,
S_MATNR FOR MARA-MATNR,
S_MTART FOR MARA-MTART.
PARAMETERS: GP_SIZE TYPE I DEFAULT '200'.
SELECTION-SCREEN : END OF BLOCK B1.
INITIALIZATION
INITIALIZATION.
gv_repid = sy-repid.
gv_date = sy-datum.
AT SELECTION-SCREEN
AT SELECTION-SCREEN.
IF GP_SIZE < 0.
MESSAGE E002(00).
ENDIF.
IF GP_SIZE > 50000.
MESSAGE W130(26) WITH TEXT-004.
SET CURSOR FIELD 'gp_size'.
ENDIF.
START-OF-SELECTION
START-OF-SELECTION.
PERFORM FIELDCAT.
PERFORM LAYOUT.
PERFORM DATA_FETCH.
PERFORM READ_DATA_TO_FINAL.
SORT ig_final BY matnr spras.
gv_lin = gv_li.
gv_li = gv_li - 2.
LOOP AT ig_final INTO wg_final.
ASSIGN COMPONENT 1 OF STRUCTURE <LWA_LINE_WA1> TO <FA>.
<FA> = 'Material Number'.
ASSIGN COMPONENT 2 OF STRUCTURE <LWA_LINE_WA1> TO <FA>.
<FA> = 'Authorization Group'.
g_VAR11 = wg_final-srno + 2.
gv_li1 = gv_li1 + 2.
MOVE : g_var11 TO gv_i1.
ASSIGN COMPONENT g_var11 OF STRUCTURE <LWA_LINE_WA1> TO <FA>.
<FA> = 'MatDesc'.
g_var2 = g_var11 + gv_lines.
ASSIGN COMPONENT g_var2 OF STRUCTURE <LWA_LINE_WA1> TO <FA>.
<FA> = 'BasicData'.
APPEND <LWA_LINE_WA1> TO <FS_22>.
EXIT.
ENDLOOP.
LOOP AT ig_final INTO wg_final.
AT NEW matnr.
gv_index = sy-tabix.
ASSIGN COMPONENT 1 OF STRUCTURE <LWA_LINE_WA> TO <F>.
<F> = wg_final-matnr.
ENDAT.
AT NEW MATNR.
GV_INDEX = SY-TABIX.
ASSIGN COMPONENT 1 OF STRUCTURE <LWA_LINE_WA1> TO <FA>.
<FA> = wg_final-matnr.
ENDAT.
ASSIGN COMPONENT 2 OF STRUCTURE <LWA_LINE_WA> TO <F>.
<F> = wg_final-begru.
ASSIGN COMPONENT 2 OF STRUCTURE <LWA_LINE_WA1> TO <FA>.
<FA> = wg_final-begru.
gv_var = wg_final-srno + 2.
gv_li = gv_li + 2.
MOVE : gv_var TO gv_i.
ASSIGN COMPONENT gv_var OF STRUCTURE <LWA_LINE_WA> TO <F>.
<F> = wg_final-maktx.
ASSIGN COMPONENT gv_var OF STRUCTURE <LWA_LINE_WA1> TO <FA>.
<FA> = wg_final-maktx.
gv_var1 = gv_var + gv_lines .
ASSIGN COMPONENT gv_var1 OF STRUCTURE <LWA_LINE_WA> TO <F>.
<F> = wg_final-ltxt.
ASSIGN COMPONENT gv_var1 OF STRUCTURE <LWA_LINE_WA1> TO <FA>.
<FA> = wg_final-ltxt.
AT END OF matnr.
APPEND <LWA_LINE_WA> TO <FS_2>.
CLEAR <LWA_LINE_WA>.
ENDAT.
AT END OF matnr.
APPEND <LWA_LINE_WA1> TO <FS_22>.
CLEAR <LWA_LINE_WA1>.
ENDAT.
ENDLOOP.
PERFORM display..
*& Form data_fetch
text
--> p1 text
<-- p2 text
FORM DATA_FETCH .
SELECT matnr
from mara up to gp_size rows
appending corresponding fields of table ig_matnr
where matnr in s_matnr
and mtart in s_mtart.
loop at ig_matnr.
SELECT MARA~MATNR
MARA~BEGRU
MARA~MTART
MAKT~SPRAS
MAKT~MAKTX FROM MARA INNER JOIN MAKT
ON MARAMATNR = MAKTMATNR
appending corresponding fields of TABLE ig_mara_makt UP TO GP_SIZE
ROWS
WHERE makt~spras IN s_spras
AND mara~matnr IN s_matnr
AND mara~mtart IN s_mtart
AND mara~matnr EQ ig_matnr-matnr.
endloop.
IF sy-subrc = 0.
SORT ig_mara_makt.
ENDIF.
ENDFORM. " data_fetch
*& Form read_data_to_final
text
--> p1 text
<-- p2 text
FORM READ_DATA_TO_FINAL .
LOOP AT ig_mara_makt INTO wg_mara_makt .
wg_final-MATNR = wg_mara_makt-MATNR.
wg_final-BEGRU = wg_mara_makt-BEGRU.
wg_final-MTART = wg_mara_makt-MTART.
wg_final-SPRAS = wg_mara_makt-SPRAS.
wg_final-MAKTX = wg_mara_makt-MAKTX.
READ TABLE ig_t002 INTO wg_t002 WITH KEY spras = wg_final-spras.
IF sy-subrc = 0.
wg_final-srno = wg_t002-srno.
ENDIF.
CLEAR ig_thead[].
ig_thead-TDOBJECT = 'MATERIAL'.
ig_thead-TDNAME = wg_final-matnr.
ig_thead-TDID = 'GRUN'.
ig_thead-TDSPRAS = wg_final-spras.
CALL FUNCTION 'TEXT_READ'
EXPORTING
I_HEADER = IG_THEAD
I_READONLY = 'X'
IMPORTING
E_HEADER = IG_THEAD
TABLES
T_LINES = IG_TLINE[]
EXCEPTIONS
NOTFOUND = 1.
IF sy-subrc EQ 0.
LOOP AT ig_tline.
gv_strg = ig_tline-tdline.
IF gv_strg1 <> ' '.
CONCATENATE gv_strg1 ';' gv_strg INTO gv_strg1.
ELSE.
gv_strg1 = gv_strg.
ENDIF.
ENDLOOP.
wg_final-ltxt = gv_strg1.
APPEND wg_final TO ig_final.
CLEAR wg_final.
gv_strg1 = ' '.
ELSE.
APPEND wg_final TO ig_final.
ENDIF.
ENDLOOP.
ENDFORM. " read_data_to_final
" read_data_to_final
*& Form layout
text
--> p1 text
<-- p2 text
FORM LAYOUT .
CLEAR L_LT.
L_LT-ZEBRA = 'X'.
L_LT-COLWIDTH_OPTIMIZE = 'X'.
L_LT-WINDOW_TITLEBAR = 'MATERIAL DETAILS'.
ENDFORM. " layout
*& Form fieldcat
text
--> p1 text
<-- p2 text
FORM FIELDCAT .
SELECT SPRAS
LAISO FROM t002 INTO CORRESPONDING FIELDS OF TABLE ig_t002
WHERE spras IN s_spras.
DESCRIBE TABLE ig_t002 LINES gv_lines.
LOOP AT ig_t002 INTO wg_t002.
g_v = g_v + 1.
Wg_t002-srno = g_v.
MODIFY ig_t002 FROM wg_t002 TRANSPORTING SRNO.
ENDLOOP.
LOOP AT ig_t002 INTO wg_t002.
CLEAR WA_IT_FLDCAT.
MOVE SY-INDEX TO WA_COLNO.
CONCATENATE 'MD-' wg_t002-LAISO
WA_COLNO
INTO WA_FLNAME.
WA_IT_FLDCAT-FIELDNAME = WA_FLNAME.
WA_IT_FLDCAT-DATATYPE = 'CHAR'.
WA_IT_FLDCAT-SELTEXT = WA_FLNAME.
WA_IT_FLDCAT-INTLEN = 250.
WA_IT_FLDCAT-TABNAME = '<FS_2>'.
APPEND WA_IT_FLDCAT TO T_FLDCAT.
CLEAR wg_t002.
ENDLOOP.
LOOP AT ig_t002 INTO wg_t002.
CLEAR WA_IT_FLDCAT.
MOVE SY-INDEX TO WA_COLNO.
CONCATENATE 'BD-' wg_t002-LAISO
WA_COLNO
INTO WA_FLNAME.
WA_IT_FLDCAT-FIELDNAME = WA_FLNAME.
WA_IT_FLDCAT-DATATYPE = 'CHAR'.
WA_IT_FLDCAT-SELTEXT = WA_FLNAME.
WA_IT_FLDCAT-INTLEN = 250.
WA_IT_FLDCAT-TABNAME = '<FS_2>'.
APPEND WA_IT_FLDCAT TO T_FLDCAT.
CLEAR wg_t002.
ENDLOOP.
MOVE 'MATNR' TO WA_FLNAME.
WA_IT_FLDCAT-FIELDNAME = WA_FLNAME.
WA_IT_FLDCAT-DATATYPE = 'CHAR'.
WA_IT_FLDCAT-SELTEXT = 'Material No'.
WA_IT_FLDCAT-INTLEN = 18.
WA_IT_FLDCAT-TABNAME = '<FS_2>'.
INSERT WA_IT_FLDCAT INTO T_FLDCAT INDEX 1.
MOVE 'BEGRU' TO WA_FLNAME.
WA_IT_FLDCAT-FIELDNAME = WA_FLNAME.
WA_IT_FLDCAT-DATATYPE = 'CHAR'.
WA_IT_FLDCAT-SELTEXT = 'Authorization Group'.
WA_IT_FLDCAT-INTLEN = 4.
WA_IT_FLDCAT-TABNAME = '<FS_2>'.
INSERT WA_IT_FLDCAT INTO T_FLDCAT INDEX 2.
DESCRIBE TABLE T_FLDCAT LINES gv_li.
ASSIGN LT_DATA TO <FS_DATA>.
Creating the Dynamic Internal Table
CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
EXPORTING
IT_FIELDCATALOG = T_FLDCAT " Fieldcatalogue
IMPORTING
EP_TABLE = <FS_DATA> " Dynamic Internal Table
EXCEPTIONS
GENERATE_SUBPOOL_DIR_FULL = 1
OTHERS = 2.
Assign Dyn Table To Field Sumbol
ASSIGN <FS_DATA>->* TO <FS_1>.
Assigning the Internal Table TYPE ANY to Standard internal Table
ASSIGN <FS_1> TO <FS_2>.
Creating a Workarea
CREATE DATA LWA_LINE LIKE LINE OF <FS_2> .
Assigning the Content to the workares as a Pointer
ASSIGN LWA_LINE->* TO <LWA_LINE_WA>.
LOOP AT T_FLDCAT INTO WA_IT_FLDCAT.
WA_IT_FLDCAT1-FIELDNAME = WA_IT_FLDCAT-FIELDNAME.
WA_IT_FLDCAT1-TABNAME = WA_IT_FLDCAT-TABNAME.
WA_IT_FLDCAT1-SELTEXT_L = WA_IT_FLDCAT-SELTEXT.
WA_IT_FLDCAT1-REF_TABNAME = 'MARC'.
APPEND WA_IT_FLDCAT1 TO T_FLDCAT1.
CLEAR : WA_IT_FLDCAT,WA_IT_FLDCAT1.
ENDLOOP.
ASSIGN LT_DATA1 TO <FS_DATA1>.
CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
EXPORTING
IT_FIELDCATALOG = T_FLDCAT " Fieldcatalogue
IMPORTING
EP_TABLE = <FS_DATA1> " Dynamic Internal table
EXCEPTIONS
GENERATE_SUBPOOL_DIR_FULL = 1
OTHERS = 2.
Assign Dyn Table To Field Sumbol
ASSIGN <FS_DATA1>->* TO <FS_11>.
Assigning the Internal Table TYPE ANY to Standard internal Table
ASSIGN <FS_11> TO <FS_22>.
Creating a Workarea
CREATE DATA LWA_LINE1 LIKE LINE OF <FS_22> .
Assigning the Content to the workares as a Pointer
ASSIGN LWA_LINE1->* TO <LWA_LINE_WA1>.
ENDFORM. " fieldcat
*& Form show
text
--> p1 text
<-- p2 text
FORM Display .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = GV_REPID
I_CALLBACK_PF_STATUS_SET = 'PF_STATUS_SET'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
I_CALLBACK_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE =
I_GRID_SETTINGS =
IS_LAYOUT = L_LT
IT_FIELDCAT = T_FLDCAT1[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
I_HTML_HEIGHT_TOP = 0
I_HTML_HEIGHT_END = 0
IT_ALV_GRAPHICS =
IT_HYPERLINK =
IT_ADD_FIELDCAT =
IT_EXCEPT_QINFO =
IR_SALV_FULLSCREEN_ADAPTER =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = <FS_2>
EXCEPTIONS
PROGRAM_ERROR = 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.
ENDFORM. " display
FORM PF_STATUS_SET USING RS_EXTAB TYPE SLIS_T_EXTAB.
SET PF-STATUS 'DISPLAY' .
ENDFORM. "PF_STATUS_SET
*& Form Name: user_command *
*& Form Desc: For Handling USER_COMMAND *
FORM USER_COMMAND USING IF_UCOMM TYPE SY-UCOMM
IS_SELFIELD TYPE SLIS_SELFIELD.
CASE IF_UCOMM.
WHEN 'DOWNLOAD'.
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
TITLEBAR = ' '
DIAGNOSE_OBJECT = ' '
TEXT_QUESTION = 'Data download to excel'
TEXT_BUTTON_1 = 'Ja'(001)
ICON_BUTTON_1 = ' '
TEXT_BUTTON_2 = 'Nein'(002)
ICON_BUTTON_2 = ' '
DEFAULT_BUTTON = '1'
DISPLAY_CANCEL_BUTTON = 'X'
USERDEFINED_F1_HELP = ' '
START_COLUMN = 25
START_ROW = 6
POPUP_TYPE =
IMPORTING
ANSWER =
TABLES
PARAMETER =
EXCEPTIONS
TEXT_NOT_FOUND = 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.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
FILENAME = 'C:\Material-Text.xls'
FILETYPE = 'ASC'
APPEND = ' '
WRITE_FIELD_SEPARATOR = 'X'
HEADER = '00'
TRUNC_TRAILING_BLANKS = 'X'
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = 'X'
IMPORTING
FILELENGTH = GL_LENGHT
TABLES
DATA_TAB = <FS_22>
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
IF GL_LENGHT NE 0.
MESSAGE S398(00) WITH 'DATA downloaded to EXCEL'.
ENDIF.
ENDCASE.
ENDFORM. "user_command
Thanks
Maybe you are looking for
-
Creative Cloud Subscription cancelled???
Hi Support, I got an automatic reply from Adobe confirming my subscription of Creative Cloud was cancelled, even though I didn't cancelled it. There's no recollection on my account's purchase history of such association either, even though I did use
-
Input values in bex selction screen
Hi Experts-- Iam facing a peculiar functionality in bex reporting. We are maintaining ZBATCH (Length 10)as the masterdata in BW. Created a variable for ZBATCH, in the selection screen if i give values as 36789 as input it displays the data i mean th
-
Arch Linux Weekly Newsletter *Jason Chu and Ben Mazer* Opening Welcome to the Arch Linux Newsletter. This attempts to give you an ``at a glance'' look at the world of Arch Linux. News Front Page News 1. There's a new glibc in the Testing r
-
Wrong Base amount calculated for JEC1 & JSEP
Hello All, I am using TAXINN procedure, while creating a PO, in invoice tab, BED (JMOP) is getting calculated correctly, but for JEC1 ( 2% Edu Cess) & JSEP (1% H&SEcess) , the base value is calculated wrongly, and because if this the duty amount is s
-
I'm Fetching data from a digitizer card using the niHSDIO Fetch Waveform VI. After Fetching the data I want to keep the Timestamp and Digital Pattern which I'll stream to TMDS file. What is the most efficient method of striping out the Arrays I'm in