EasyDMS : Function module to define allowed document types
Hello together,
I am working on EasyDMS 6.00 and have implemented the function module "Z_EASYDMS_GETDOCTYPES" to have a filtered list of allowed document types for creating folders and documents in EasyDMS.
But this FM does not seem to work, the list still contains all document types that are customized in R3.
Here is my implementation:
FUNCTION z_easydms_getdoctypes.
*"*"Lokale Schnittstelle:
*" IMPORTING
*" VALUE(FOLDERDOCUMENT) TYPE BAPI_DOC_KEYS OPTIONAL
*" VALUE(ISFOLDER) LIKE BAPI_DOC_DRAW2-CADINDICATOR OPTIONAL
*" EXPORTING
*" VALUE(RETURN) TYPE BAPIRET2
*" TABLES
*" DOCUMENTTYPES STRUCTURE TDWAI OPTIONAL
* default implementation: define some document types
* for documents and folders
DATA: ls_tdwai TYPE tdwai.
REFRESH: documenttypes.
IF isfolder IS INITIAL.
ls_tdwai-dokar = 'IMP'.APPEND ls_tdwai TO documenttypes.
ls_tdwai-dokar = 'TST'.APPEND ls_tdwai TO documenttypes.
ls_tdwai-dokar = 'DMO'.APPEND ls_tdwai TO documenttypes.
ls_tdwai-dokar = 'DRW'.APPEND ls_tdwai TO documenttypes.
ELSE.
ls_tdwai-dokar = 'IMP'.APPEND ls_tdwai TO documenttypes.
ls_tdwai-dokar = 'DMO'.APPEND ls_tdwai TO documenttypes.
ENDIF.
ENDFUNCTION.
Any help would be great!
Thanks in advice,
Andreas
Hi Andreas,
concerning the used function module I can tell you that it is called in Easy DMS. Before Easy DMS calls this module an availability check is made if it is activated too. So please check if the mentioned function module is activated in your system.
Further I can recommend you to delete the RFC Cache in Easy DMS and check again if the desired functionality is available now.
If this doesn't help the problem may be caused by the implementation of the function module.
Best regards,
Christoph
Similar Messages
-
Function modules to create a movement type 105 and 104
Hi folks,
I have created a custom screen and attached to MIGO Transaction. If my user enter data and click 'PASS' on my screen, a movement type 105 to be triggered in back ground. And if he click 'FAIL', movement type 104 need to be triggered. is there any BAPI or Function Module to create goods movement type. I have searched some function modules in SE37 and found some stuff. But i am confused which one to use...Could you pls guide me regarding this...
for ur information, i am thinking to use these FM's
MB_READ_GOODS_MOVEMENT
MB_CREATE_GOODS_MOVEMENT
MB_CANCEL_GOODS_MOVEMENT
Will it be useful for me.
Thanks in advance,
Shyam.
Edited by: shyam prasad on Jan 7, 2009 10:24 AMHi
Yes you can use this function modules.
Thanks & Regards
Kishore -
Down Payments Error: Account type K is not defined for document type DZ T
I am getting the error message: Transaction code: F-29
Account type K is not defined for document type DZ
Message no. F5243
In this case i am trying to post a customer down payment in t.code: F-29.
In the document type DZ in OBA7 we tick only G.L and Customer tab as this is not a vendor document.
Also the settings in T. Code : OBXR where we maintain configuration for customers has been maintained with a special G/L reconciliation account.
any help will be really appreciated,
Regards
SatishI have checked all the settings
OBXR for Customer Down Payments. It is with indicator A and a Special G/L Account has been configured.
The special G.L Account is of the Recon account type Customers with FSG as Recon accounts
The document type DZ in OBA7 is ticked for G.L and Customer and this is how i think it should be as i am not paying a vendor downpayment
but it still gives me the same error.
Regards
Satish -
Error:Account type D is not defined for document type RE
Hi! I encountered this error msg: "Account type D is not defined for document type RE" while posting IR in mir6. What does this error msg mean? Thanks!
hi,
RE stands for Gross postings...
When you block the document for payments...its never possible to the post the payments for such documents...
The invoice seems to get posted, but is internally blocked for payment and later you need to delete the payment block indicator and process the invoice further for payments...
check OMBA as well for the settings...
Regards
Priyanka.P -
Account type D is not defined for document type RE - Credit Memo
I tried to key in credit memo of fixed asset at MIRO but prompt out this errors "Account type D is not defined for document type RE". I checked OMBA - account type for vendor is selected. Any advise to resolve this problem?
Hi Sanil,
It is just a debit Vendor and Cerdit Fixed Asset. Is anything wrong here? -
Function Module to find Business Event type
Hi Experts,
Do we have any Function Module to get Business Event Type(BET) if Person(P) is the input.Go to SE37 and give application component PE and search for you requirement
RH_CHECK_EVENT_ASSIGNMENT
RH_CHECK_EVENT_LOCATION
RH_GET_EVENT_DEMAND
RH_GET_FIX_EVENTS
RH_GET_FOLLOW_UP_EVENTS
RH_GET_ATTENDEE_ACTIVITIES
RH_GET_ATTENDEE_WORKITEMS
RH_GET_CANCELLATION_DATA
RH_GET_EVENTS_FOR_MOVE
RH_GET_EVENT_CAPACITY
RH_GET_EVENT_DATA
RH_GET_EVENT_OCCUPATION
RH_GET_EVENTTYPE_SCHEDULE
RH_GET_EVENT_SCHEDULE -
Error - Account type D is not defined for document type WL
I am getting error while doing PGI (Post Goods Issue).
Error - Account type D is not defined for document type WLAs we had the same problem for a document in our system, I was also browsing for the answer. I saw this thread and now we have found the solution, so could not resist sharing, although it is an old posting.
In these cases it can be that a user wants to create a purchase order of the type UB. But if you have stock transport between two companies, you should not use this order type. You have to use order type NB.
If the user creates the PO with NB then probably they will not get the message. -
Need functional module or table for user type
Hi all,
I need table or a functional module for getting the user type. plz helpHi,
Can you explain your requirement in a bit more detail. You can also provide all the relevant information regarding this topic.
Hope this will help.
Thanks,
Samantak. -
Any functional module to get financial document based on billing document
hi all,
do we have any functional module to get accounting document (bseg-BELNR) based on billing document (bseg-VBELN)?
i have a requirement to retrieve the clearing document (bseg-augcp) & date(bseg-augdt) from BSEG with billing document.
billing document is not a key, so i would like to retrieve the accounting document from any function module and use that to get clearing document (bseg-augcp) & date(bseg-augdt).
thanks.hi all,
i got other option to get this....thanks.
select single * from bkpf
where bukrs = <data>-werks
and AWTYP = 'VBRK'
and AWKEY = billing doc.
if sy-subrc EQ 0.
select single * from bseg
where bukrs = bkpf-bukrs
and belnr = bkpf-belnr
and gjahr = bkpf-gjahr.
if sy-subrc EQ 0.
<data>-AUGDT = bseg-augdt.
<data>-AUGBL = bseg-augbl.
endif. -
Function module CVAPI_DOC_VIEW for opening document by webdynpro applicatio
Hello all,
i have a requierement to open the document when user click in filename i am using this function module but it is giving me error
'Screen output without connection to user.'
CALL FUNCTION 'CVAPI_DOC_VIEW'
EXPORTING
pf_dokar = ls_final-dokar
pf_doknr = ls_final-doknr
pf_dokvr = ls_final-dokvr
pf_doktl = ls_final-doktl
PF_HOSTNAME = '10.141.104.40'
pf_appl_start = 'X'
PF_GET_URL = 'X'
pf_apptp = '1'
PF_ASK_FILENAME = ' '
pf_filename = lv_filep
PS_FILE =
PF_PARENT =
PF_USE_DYNP = 'X'
PS_DRAP_AUDIT =
IMPORTING
PFX_FILE =
PFX_URL =
PFX_VIEW_INPLACE =
EXCEPTIONS
error = 1
not_found = 2
no_auth = 3
no_original = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.Hi Shilpi,
I had the same error. I got round them by pulling parts of the FM out as below
call function 'CV120_DOC_GET_APPLICATION'
exporting
pf_dokar = ls_drad-dokar
pf_doknr = ls_drad-doknr
pf_dokvr = ls_drad-dokvr
pf_doktl = ls_drad-doktl
importing
psx_file = lv_file
exceptions
not_found = 1
no_auth = 2
error = 3
others = 4.
concatenate 'file://' lv_file-filename into lv_url.
lv_url2 = lv_url.
call method lo_window_manager->create_external_window
exporting
url = lv_url2
modal = abap_false
has_menubar = abap_true
is_resizable = abap_true
has_scrollbars = abap_true
has_statusbar = abap_true
has_toolbar = abap_true
has_location = abap_true
receiving
window = lo_window.
lo_window->open( ).
Regards
Bruce -
How to define certain document type (BKPF-BLART) for certain movement (101)
Sometimes ( I think it is becuase of the tcode) certain purchase 101 movements create a WA type FI document and some other times purchase 101 movements create WE type FI documents. I have seen a table ( accessing from omba transaction) in which for diffenent tcode´s we have either WE or WA. If we always use migo transaction why sometimes in bkpf we have migo_tr, migo_gi, ....;....
How should I do in order to create always WE FI documents for purchase 101 movements?
Thanks in advance.Check the settings in SPRO-MM-Inventory Management-Number assignemnt-Define number ranges for accounting documents.
Here you assign accounting document type to tcodes.
Normally , WA is used in receipts for MB1C/MIGO_GI tcode - for e.g for 561 mvmt type.
SAP recomends keeping this setting as it is.
SAP help text copied here for reference:
Define Number Assignment for Accounting Documents
In this step, you set the number ranges for the accounting documents which are created when goods movements or inventory differences are posted.
Accounting documents in inventory management
For accounting-relevant goods movements, the system creates two different documents:
material document
accounting document
Both the material documents and the accounting documents have their own document numbers. When inventory differences are posted, the system also creates an accounting document for the physical inventory document.
In this step, you only maintain the number assignment for accounting documents.
Document types
Accounting documents are split into document types to allow differentiated document number assignment, which is the basis for distinguishing between the various accounting operations. A number range is assigned to each document type. In a company code, you have to define number intervals for each number range and fiscal year.
In inventory management, the transaction determines which document type is used.
Example: Goods receipt for purchase order
Requirements
You have already defined the company code.
Default Settings
In the standard SAP System, the following document types are predefined for inventory management:
WA for goods issues, transfer postings, other goods receipts
WE for goods receipts with reference to purchase orders
WF for goods receipts with reference to production orders
WI for inventory differences
WL for goods issues with reference to deliveries (SD)
WN for net posting of goods receipts
PR for revaluation documents
Each document type is already assigned a number range. In company code 0001, number intervals are defined for each number range both for the current and the previous fiscal year.
Number range 49 with the year-related interval 4900000000 to 4999999999 is assigned to the document types for all goods movements, except goods movements with reference to purchase/production orders.
Document type WE is used for goods receipts with reference to purchase orders and production orders. This document type is assigned number range 50 with the year-related interval 5000000000 to 5099999999.
Please note that net postings of goods receipts (document type WN) are not active in the standard SAP System. If you want to post goods receipts net, you have to assign document type WN (instead of WE) to the transaction MB01.
Document type WI is used for posting inventory differences. This document type is assigned the number range 01 with the year-related interval 0100000000 to 019999999999.
SAP Recommendation
Activities
1. Check whether you can use the standard settings.
2. If not, you have to add new document types to satisfy your requirements:
a) Define a new document type under Financial accounting document
b) types.
c) Assign a number range to the document type.
d) Under Financial accounting number ranges, define the year-related number intervals for the given number range in your company code. If you do not want to use the year-related number assignment method, enter 9999 in the Year field.
e) Under Allocate document type to transaction, assign the relevant document type to the transaction codes of inventory management.
Document type PR (revaluation documents) is already assigned.
Notes on transport
You transport number range objects as follows:
Choose Interval -> Transport in the accounting document Number Range screen.
All intervals for the selected number range object are deleted in the target system first. After the import, only the intervals you export are present. The number statuses are imported with their values at the time of export.
Dependent tables are not transported or converted.
All other activities are linked to the automatic transport.
Edited by: Saurav on Jan 24, 2011 6:03 PM -
Function Module to get Material Document Number
Hi All,
I want to get the Material Document Number based on the Material, batch ,movement type and plant. Is there any function module to achieve this, without going to MSEG table.check this might help you..
Get Material Document Number and Material Document Year
Regards
Kumar -
Require input agreement number for new defined PO document type
Hi guys,
We have defined a new purchase order type.
This order type can only be converted from contract.
How can we process that? I cannot find this setup neither in documen type nor screen layout.
Jason.Hi
If you feel that system should not allow you to proceed further wihtout without flagging the return check box at line item level, you have set it in configutaion and the step is as follow..
First you have to creeate a new field selction key under Materiaal Management --> Purchasing >Purchase Order>Define Screen Layout at Document Level
Select NBF field selection and click on Copy icon
Change the Field slection key code and description as you like, say for example ZNBF
Now double click on created field selection by that you will get list of field selection group
Double click on GR/IR Control, system displays list of fields with different options of selection and by default you can find all the fields are have been checked under optional entry
Check on Requried Entry check box of field "Return Indicator" and save it.
Now the next step is assigning the newly created field selection key (ZNBF) in to docuemnt type
For this, click on Define Document Type, select the newly created field slection key for the newly created PO document type for return and save.
Now when you try to create PO with the newly created document type, system will not allow you to save the document until unless you check the retrun item check box.
I hope this will help..
Best Regards.. -
Function Modules for Parking FI Documents
Hi Experts,
Which function modules are same as the T-Code F-65 for parking FI documents?
You will be rewarded if your tips is helpful.
Thanks and Regards
JoeHi Joe,
Check this,
https://forums.sdn.sap.com/click.jspa?searchID=5303620&messageID=806864
Thanks,
Reward If Helpful. -
Function Module/BAPI for updating Document Status.
Hi Experts,
Is there any Function Module/BAPI available for updating the document status ?
Thank You,
Radhika.unresolved!
Maybe you are looking for
-
Billing plan type determination based on Variant configuration characterist
Hi All, We have a process where in to determine the Billing plan of the contract based on the Characteristic value of the material. If the characteristic value is 'M' Monthly billing plan and assign corresponding billing plan to FPLA, if value is 'Q'
-
How do I know what item has been selected in a select list?
I built a select list where the user selects one item from the list and then searches using the searchfield. I need to know what item has been selected in the select list so that I can do branching and branch the user to a particular page. Can someon
-
LOAD_TYPE_VERSION_MISMATCH Error in LSMW
Hi, We have changed some custom fields in BUT000 and imported into PreProduction. And the table is adjusted and its active now. However, When I run LSMW program (Convert Data), I am getting the following dump. Error: LOAD_TYPE_VERSION_MISMATCH. Error
-
Can't connect Bonjour Printer since 10.4.6 Update
OK. I have a Dual Processor PPC G5 and up until the OSX 10.4.6 update, I had been using (without problem for over a year) my HP Officejet 7310 All-In-One Printer, using OSX 10.3.?. This connection is through a LAN at my home via a Netgear Router w/Pr
-
Every time I open a new safari window, an ad pops up. how do I get rid of it?
every time I open a new safari window, an ad pops up. how do I get rid of it?