Create Dynamic documents without screen.
Is this possible ?
Create a dynamic document (CL_DD_DOCUMENT) without creating any screen.
Thank you.
Is this possible ?
Create a dynamic document (CL_DD_DOCUMENT) without creating any screen.
Thank you.
Similar Messages
-
Creating Billing Document Without Reference
Hi all,
I'm trying to create a billing document without reference to any order or delivery, using the function module BAPI_BILLINGDOC_CREATEMULTIPLE. In the internal table field BILLINGDATAIN-ORDBILLTYP i'm using FX (Billing from External Transact).
I'm getting the error VF(027): Delivery type cannot be invoiced with billing type FX.
Does anyone know how to avoid this? Is there any configuration missing in the standard billing type FX?
Thanks in advance,
Nuno A.
Edited by: Nuno Miguel Pires Afonso on Feb 9, 2009 4:30 PMHi,
You have to enter sales document type in DOC_TYPE field, Now system will not give error.
These are the minimum fields you have to maintain in BAPI.
Sales area,DOC_TYPE,ORDBILLTYP,BILL_DATE, sold to party,ship,bill to party,payer, plant,material and quantity.
and in CONDITIONDATAIN maintain condition type,value and currency.
Regards,
Chandra -
Create Dynamic Document Library Templates
I have the following scenario within our IT Org
1. PMO office maintains a "Standards" library, to which they publish all standard templates that need to be used for Project Management.
2. Each Project Manager would like to create a document library within their "project site" based on all the documents within "Standards" library.
My question is, would it be possible to create a document library template whose contents are dynamically pulled from another library?
Thanks.Hi ,
Based on your description, my understanding is that each Project Manager
creates document library with the same template, but what they need is that their document libraries have different content type with others.
There isn’t an out of the box method to create document library templates dynamically.
For your issue, I suggest each Project Manager create one document content type with the document template which they need, and add the content type into their document libraries.
Here is a similar case, you can use as a reference:
http://social.technet.microsoft.com/Forums/en-US/7d238bb5-8af7-4027-97cf-b41f84bcdb5d/dynamically-create-document-templates-for-new-menu?forum=sharepointdevelopmentlegacy
Best Regards,
Lisa Chen -
Create pdf document without ADS
Hi,
i am trying to create a pdf document to output some context information. I don't need interactive forms - i just want to display the information.
Is there any way to generate a pdf document without using ADS?Hi Timo,
Hope the following link will be useful for you.
/people/prakash.singh4/blog/2005/04/05/create-a-pdf-file-using-java
Regards,
Santhosh.C -
Print dynamic document without viewing it
Hi Guys,
I have a problem with the class cl_dd_document.
The manual says that it is possible to print a dd_document without viewing it, it says:
1. Build document
2. Merge document
3. Print document
Until step 2 theres no Problem, but when i call the method print_document( ) the report crashes.
The dump information indicates that there's a null-pointer-exception for a html_control.
is it impossible to call this method, without displaying the document in a custom control first?Hi,
if you are in ECC 5.0 version then check the example <b>DD_STYLE_TABLE</b> there you have option to print in the output , it is working fine.place a button in the screen and when you click on it , in PAI do this code.
MODULE USER_COMMAND_0100 INPUT.
CASE SY-UCOMM.
WHEN 'BACK'. "Beenden
LEAVE PROGRAM.
<b>WHEN 'PRN'.
CALL METHOD DO->PRINT_DOCUMENT
EXPORTING REUSE_CONTROL = 'X'</b>.
regards
vijay -
How to create billing document without Excise duties.?
Dear All ,
Here is a scenario that we had done the Goods rcv of this material without capturing
any excise entry as this material is non excisable , Now an ETO is created xxx for party , After this user
wants this insulation to be given to Customer by creating an outbound delivry but here excise duty is
reflecting , Pl guide to how to create billing without having excise duties , only applicable tax should bi there in the
billing document .
Regards ,
RCDear RC
Go to J1ID, select Material and Chapter ID combination and dont maintain the material there, which you are invoicing. Now create billing and see whether duty is flowing or not.
thanks
G. Lakshmipathi -
Creating dynamic XML without String var ?
Hi all...
I am trying to create a XML to use it in a DataGrid as a
DataProvider... So far I was able to do it but only using a String
variable, is there any othe way to do it? I found/think there is
another way but i'm kinda lost on this subject... Here is how im
doing it (more or less):
private var dataPlaylist : XML;
private var xml : String = new String();
xml += ' <music>\n';
xml += ' <artist>' + player.id3.artist +
'</artist>\n';
xml += ' <track>' + player.id3.songName +
'</track>\n';
xml += ' <title>' + player.id3.title +
'</title>\n';
xml += ' <album>' + player.id3.album +
'</album>\n';
xml += ' <time>' + player.length + '</time>\n';
xml += ' </music>\n';
dataPlaylist = XML(xml);
playlist.dataProvider = dataPlaylist.musica;It's better to read the entire XML documentation located one
level up:
http://livedocs.macromedia.com/flex/2/docs/00001910.html
For your case, you can actually do this:
dataPlayList: XML =
<music>
<artist>{player.id3.artist}</artist>
<track>{player.id3.songName}</track>
</music>;
Note the use of curly braces {} to embed variables inside
your XML. There's a lot more you can do with XML as well. It's in
the docs. -
How to create XML element with out creating a document
I ve been looking for hours for a method to create an XML element without the need for the Document. I am trying to create objects that access the database, and I need in each of these objects a method that returns only an element (ie. getXMLData()). And in the class that created these object, I nee to call the getXML() methods and construct a document. However, I am not looking to create the document if I am not going to use it. In the component class I need to be able to traverse the xml element and read and modify the values. Is there a way to do so with sun's JDK ?
I ve been looking for hours for a method to create an
XML element without the need for the Document.
... I am not looking to create the document if I
am not going to use it.Hi M-A,
Though you have been told the solution, let's stick to your original issue, just for the sake of interest. I gather what you have in mind is finding the answer to the following question: is there a way of creating a document without having to bind it to any data source? The answer is yes. What you might need is the createDocument() method of the DOMImplementation interface which offers lightwight document handling by obviating the need to construct a particular DOM instance. (You could also use the getDOMImplementation() method of the DOMImplementationRegistry interface, but it has bugs.) Here's a sample code:DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder parser = factory.newDocumentBuilder();
DOMImplementation domImpl = parser.getDOMImplementation();
Document doc = domImpl.createDocument(null, "rootnode", null);The above code produces the following document:<?xml version="1.0" encoding="UTF-8"?>
<rootnode/>You can make this document even skinnier if you pass null values to all three parameters of the createDocument() method, in which case the document will only contain the prolog. I think both the creation and the structure of this document are simple enough for you to use it as some sort of utility (e.g. by putting the code in a separate class) for creating elements. -
Dynamic Documents ( CL_DD_DOCUMENT ) in background to generate spool
Hi Everyone,
Is it possible for a Dynamic Document with the use of CL_DD_DOCUMENT to run in background and generate spool output?
If it is possible, can you please tell me how?
Thanks in advance.Hi Denver,
dynamic documents are screen controls to be put in a (enjoy) container controlled by SAPGUI. In background, SAP just ignores any display processing for GUI controls.
The CL_GUI_ALV_GRID is an exception here, in background output is converted to an ALV list. I don't know and I don't think that for dynamic documents anything comparable exists.
Regards,
Clemens -
Problems creating dynamic selection screen
Hi all,
i'm trying to dynamically generate a selection screen and show it as subscreen using the two function modules FREE_SELECTIONS_INIT and FREE_SELECTIONS_DIALOG. I call the function modules in the PBO of the therefor defined subscreen. The FREE_SELECTIONS_DIALOG fm has the two import parameter "as_subscreen" and "as_window". If i use the "as_window" parameter the selection screen comes up as popup. If i use the "as_subscreen" parameter, i can't see anything in my defined subscreen.
Any suggestions ?
Thanks in Advance
DirkHi,
The above requirement is not possible without using logical database.
The reason is that the compiler identifies the below syntax only inside a LDB program .
SELECTION-SCREEN DYNAMIC SELECTIONS
FOR {NODE|TABLE} node [ID id].
The above syntax creates a subscreen container on the standard selection screen of the program during generation
and we are able to view the dynamic selections icon on the selection screen.
Hence it is not possible to use the FM 'FREE_SELECTIONS_DIALOG' as a subscreen without using a
logical database of the relevant table.
However if you dont want to create a new LDB for each table, there is a trick which needs to be performed
once in your SAP system and all custom programs can use this FM to create a dynamic selection screen
as a subscreen of the standard selection screen.
The prerequisite steps are as follows:
1: Create a dummy / test database table in SE11 with a single field i.e. for example mandt , matnr
2: Create a new logical database program for this table in SE36. Save and activate.
This will create dynamic selections for the fields of the table created in step 1.
Steps to be followed in the required custom ABAP program to create the dynamic selection screen as a subscreen.
A: Include the LDB program created in step 2, in the attributes of the custom ABAP program.
Now when you execute the program, you can see the dynamic selection icon for the dummy table created in step 1.
B: In your custom program we need to suppress the icon for 'Dynamic Selections' from the standard selection screen.
We need to perform this action, because the 'Dynamic Selections' icon always triggers a call to the
dynamic selection screen of the included LDB progam. ( In our case a dummy table created in step 1 ).
Whereas we want to trigger a call of the dynamic selection screen of our desired table.
Logic is as follows:
In 'AT SELECTION-SCREEN OUTPUT' event call the FM RS_SET_SELSCREEN_STATUS to exclude the fcode 'DYNS'.
C: Add a pushbutton / checkbox on your selection screen to trigger a call to the FM 'FREE_SELECTIONS_INIT' &
'FREE_SELECTIONS_DIALOG' in the 'AT SELECTION-SCREEN' event.
D: When the user clicks the pushbutton / checkbox for dynamic selections call the above 2 FM for the desired table
with the AS_SUBSCREEN flag of FREE_SELECTIONS_DIALOG = 'X'
Result: Your dynamic selections screen will be created as a subscreen of the standard selection screen and not as a pop-up.
Advantage: With the creation of the single custom table & LDB, you are now able to create dynamic selections as subscreen
in any program in the system. All we need to do is follow the steps A, B & C in each program.
Note: Your other restrictions with dynamic selection screen ie. submit in background , save as variant still remain and
you need to handle them accordingly.
let me know if you need sample code.
Regards,
Bhawit Kumar -
Restricting for creating the Billing Document without PGI in STO Process
We want to restrict creating the Billing Document without PGI in STO Process
Delivery Type:NL
Item cataogory:NLN
Billing Type: JEX Profroma Invoice
I have check in VTFL
At Header Level, Routine - 003. for normal sales process LF-F2
At Item Level , Routine - 004
in VTFL-- NL-JEX
At Header Level, Routine - 009.
At Item Level , Routine - 010. here when i changed to 003 and 004 for NL and JEX
i am getting error after PGI when i am doing vf01 error is coming " document is not relevant for Billing"Hi
Kindly do the belwo
1. goto the t code VOV7 item category determination and select the item category and put the billing relevance as "A"
2. once the step 1 is completed then it will show the billing relevant status AS "A"in the delivery documnt at the item level
The above configuration will be applicable in the new documents only
Regards
Damu -
Create Billing Document from Sales Order (Without Delivery)
Dear Experts,
Pls note, presently we are creating Billing Document (VF01) from Outbound Delivery Number after Post Good Issue. All sales Document like Billing Document, Output Type, Invoice Type has been configured for this process and we are doing this without any error. Fyki, we have configured lots of Z Order, Billing & Delivery type to do this processes.
But for one of this order type we need not do any delivery. We want to create Billing Documents from sales order directly (without doing any Outbound Delivery).
So, would u pls advise the steps how can we configure and assign Order Type, Billing Type or any other type to meet above requirement.
Thanks in advance.
Best Regards.
RiponHi
There are two most important configuration:-
1) In VOV8 for your Order Type maintain the Order Related Billing Document
2) Maintain the Copy control setting in VTFA betwwen your Order Type and billing Type.
Also note that if your line item is not require to be delivered then for your Item category maintain (in VOV7) not relevant for delivery and not relevant for scedule line.
Regards
Amitesh Anand
Edited by: Amitesh Anand on May 24, 2010 5:09 PM -
How to create check boxes dynamically in selection screen
Hi Experts,
I have a requirement of creating dynamic check boxes based on the number of records that are retrieved from a database table.
Can you please suggest me how to achieve it.
Regards
RP.Hey RP,
Try this way.
REPORT ztest_program .
DATA: it_data TYPE TABLE OF t001.
DATA:check TYPE char3.
DATA:sy_index TYPE char2.
DEFINE checkbox.
parameters:&1 as checkbox.
END-OF-DEFINITION.
CHECKbox:c01,c02,c03,c04,c05,c06,c07,c08,c09,c10,
c11,c12,c13,c14,c15,c16,c17,c18,c19,c20,
c21,c22,c23,c24,c25,c26,c27,c28,c29,c30,
c31,c32,c33,c34,c35,c36,c37,c38,c39,c40.
AT SELECTION-SCREEN OUTPUT.
DESCRIBE TABLE it_data LINES sy-tfill.
sy-tfill = 39. "This will be changed based on the itab records. I just hardcoded the value
sy_index = 1.
LOOP AT SCREEN.
CONCATENATE 'C' sy_index INTO check.
IF screen-name = check.
IF sy_index GT sy-tfill.
screen-active = '0'.
MODIFY SCREEN.
sy_index = sy_index + 1.
CONTINUE.
ENDIF.
sy_index = sy_index + 1.
ENDIF.
ENDLOOP.
Thanks
Venkat.O -
F4 help for a selection screen parameter with filename created dynamically
Hi All,
I have a requirement where in an F4 help should be present for a selection screen parameter. After selecting the filepath and clicking OK button on the Dialog, the filename should be dynamically get created in the selection screen parameter field. For example:
if the path is D:\DOCS then at the end of DOCS the filename should automatically get populated.
Like below string:
D:\DOCS\new.txt
Is there any function module or method which does this kind of activity.
Thanks in advance,
Deepakthis code will help:
FORM get_filename CHANGING p_filename.
DATA : lv_filename TYPE string,
lv_rc TYPE i,
li_filetable TYPE filetable.
CONSTANTS : lc_fname TYPE string VALUE 'ZRPP4000.XLS',
lc_fpath TYPE string VALUE 'C:\',
lc_extn TYPE string VALUE 'XLS'.
CALL METHOD cl_gui_frontend_services=>file_open_dialog
EXPORTING
default_filename = lc_fname
initial_directory = lc_fpath
default_extension = lc_extn
CHANGING
file_table = li_filetable
rc = lv_rc
EXCEPTIONS
file_open_dialog_failed = 1
cntl_error = 2
error_no_gui = 3
not_supported_by_gui = 4
OTHERS = 5.
IF sy-subrc = 0 .
READ TABLE li_filetable INTO lv_filename INDEX 1.
IF sy-subrc = 0.
p_filename = lv_filename.
ENDIF.
ENDIF.
REFRESH li_filetable.
CLEAR:lv_filename.
ENDFORM. "get_filename
" p_filename is selection screen parameter -
How to create dynamic selection-screen
Hi all,
I want to create dynamic selection-screen.in that dynamic selectio-screen i want to display date fields based on table name given in the selection-screen.
Regards,
BillaHi Billa,
Look into the function group SSEL, this has some SAP standard functions to work with dynamic selection screens.
Below is sample FM, I wrote making use of standard FM from the above. This FM will take table name as input and will display a screen with all the fields within that table for selection. This can also be customized to restrict the fields for display.
Hope this helps,
Sumant.
FUNCTION y_ss_test_dynamic_selection.
""Local interface:
*" IMPORTING
*" REFERENCE(TABNAME) LIKE DD02L-TABNAME
*" EXPORTING
*" REFERENCE(DS_CLAUSES) TYPE RSDS_WHERE
*" EXCEPTIONS
*" TABLE_NOT_VALID
*" OTHER_ERROR
DATA texpr TYPE rsds_texpr.
DATA twhere TYPE rsds_twhere.
DATA trange TYPE rsds_trange.
DATA BEGIN OF qcat. "Selections View for
INCLUDE STRUCTURE rsdsqcat. "Free Selectoptions
DATA END OF qcat.
DATA BEGIN OF tabs OCCURS 10.
INCLUDE STRUCTURE rsdstabs.
DATA END OF tabs.
DATA BEGIN OF fields OCCURS 10.
INCLUDE STRUCTURE rsdsfields.
DATA END OF fields.
DATA BEGIN OF efields OCCURS 10.
INCLUDE STRUCTURE rsdsfields.
DATA END OF efields.
DATA selid LIKE rsdynsel-selid.
DATA actnum LIKE sy-tfill.
DATA title LIKE sy-title VALUE 'Selection Screen'.
DATA: maxnum LIKE sy-subrc VALUE '69'.
CLEAR tabs.
tabs-prim_tab = tabname.
COLLECT tabs.
DATA: position LIKE dd03l-position.
DATA: keyflag LIKE dd03l-keyflag.
CLEAR fields.
fields-tablename = tabname.
fields-sign = 'I'.
DATA: step LIKE sy-subrc.
SELECT fieldname keyflag position
INTO (fields-fieldname, keyflag, position)
FROM dd03l
WHERE tabname = tabname
AND fieldname NOT LIKE '.INCLU%'
AND datatype NE 'CLNT'
ORDER BY position.
ADD 1 TO step.
CHECK step LE maxnum.
IF keyflag <> 'X'.
efields = fields.
APPEND efields.
ENDIF.
APPEND fields.
ENDSELECT.
IF sy-subrc <> 0.
RAISE table_not_valid.
ENDIF.
CALL FUNCTION 'FREE_SELECTIONS_INIT'
EXPORTING
expressions = texpr
kind = 'F'
IMPORTING
selection_id = selid
expressions = texpr
where_clauses = twhere
field_ranges = trange
number_of_active_fields = actnum
TABLES
tables_tab = tabs
fields_tab = fields
fields_not_selected = efields
EXCEPTIONS
fields_incomplete = 01
fields_no_join = 02
field_not_found = 03
no_tables = 04
table_not_found = 05
expression_not_supported = 06
incorrect_expression = 07
illegal_kind = 08
area_not_found = 09
inconsistent_area = 10
kind_f_no_fields_left = 11
kind_f_no_fields = 12
too_many_fields = 13.
IF sy-subrc = 0.
CALL FUNCTION 'FREE_SELECTIONS_DIALOG'
EXPORTING
selection_id = selid
title = title
IMPORTING
where_clauses = twhere
expressions = texpr
field_ranges = trange
number_of_active_fields = actnum
TABLES
fields_tab = fields
EXCEPTIONS
internal_error = 01
no_action = 02
no_fields_selected = 03
no_tables_selected = 04
selid_not_found = 05.
IF sy-subrc = 0.
CLEAR ds_clauses.
MOVE tabname TO ds_clauses-tablename.
READ TABLE twhere WITH KEY ds_clauses-tablename INTO ds_clauses.
IF sy-subrc <> 0.
RAISE other_error.
ENDIF.
ELSE.
RAISE other_error.
ENDIF.
ELSE.
RAISE other_error.
ENDIF.
ENDFUNCTION.
Maybe you are looking for
-
Hi BWers, In R/3 Production Server, I start LBWE, and click on the Job Control. Then I customized the period values, click check and click SAVE. Then I click the button schedule job, but there is an error message which says error generating job. Coul
-
Hi Gurus, I am new to ESS-MSS, my client is implementign this module. Can any one please tell me what r the steps to active Work Flows to trigger mails for "Absence/Attendance application in ESS" by employee and for CATS Time sheet filling & its app
-
[solved] docker: Error mounting: invalid argument
I'm relatively new to using docker. When I had initially set it up (weeks ago) I was able to pull and manipulate containers. Today I came back to my docker project and now I can't even successfully pull an image. $ docker pull ubuntu:14.04 ubuntu:14.
-
FMS4 -Set the Flash Media Server services to Run as Administrator (FMSCore not running)
Installed fms4 x64 on windows server 2008 to try it out. When i open up task manager to check processes running, FMSCore process does not runhttp://kb2.adobe.com/cps/862/cpsid_86205.htmlI found this in the knowledge base but step3 "Run this program
-
I don't want to have to sign in to my computer everytime my screen goes dark. Please tell me how to disable this security feature. Thank you!