DMS Document not getting created thru Webdynpro ABAP Strange Problem
Dear all,
My requirement is that I have a Webdynpro ABAP application sitting on SAP Server1 and I am having a FileUploadUI Element in there for uploading files and we have SAP Server2 with the DMS configured. So, what we have done is we have an RFC in SAP Server2 and we are calling it from our webdynpro ABAP application sitting on SAP Server1. And we are calling BAPI_Create2 with all the necessary parameters in this RFC to create the DMS document with the file from webdynpro ABAP application. But its not working. I am passing the Presentation Server File Path of the File to the BAPI_create2.Even if I write the file to the application server of SAP Server2 and then pass this file path to the BAPI_Create2 then also it doesn't work but when I execute this RFC locally in the SAP Server2 with the presentation server file path It executes successfully.
I don't know what I am missing.
Please help.
Thanks and regards,
--Sonal
Dear Thomas,
Suppose I have got the file copied to the application server in SAP Server2 using datasets from WDA in SAP server1.
Now I have an RFC say ZFILE_UPLOAD in SAP Server2 for which we have made an SAP ABAP RFC Connection from SAP Server1. In this RFC I am calling BAPI_create2 using the application server filepath(of SAP Server2) in docfile parameter along with ur suggested destination then also it doesn't work. Gives an error that "error in storing and checking file" i.e. Error 253.
One more query how to handle the file upload of different file types say I am uploading a pdf file from my webdynpro abap application in SAP server1. Then I get the xstring and pass it to ZFILE_UPLOAD and convert it into binary and write it there in SAP Server2 using datasets. Is it possible to upload any kind of file and then creating the DMS document out of it?
and how to call this RFC?
Thanksn and regards,
--Sonal
Similar Messages
-
Error while posting payroll results to FI - Documents not getting created
Hi all,
While posting payroll results to FI for Dec 2011 a failure of our Production Server resulted in erroneous posting of payroll
results. Posting run no: 1756 did not get posted at all though the run
status shown was "document posted". The issue was resolved by resorting
to manual posting of entries.
Now we are unable to post payroll results for Jan 2012 for the same
range of employee numbers for whom the manual posting was made for Dec
2011. No posting documents are getting created.
Kindly suggest how to resolve the issue.
Regards,
SunilHi All,
I raised an OSS for the issue. SAP Support provided a solution for the problem. The solution involved cancelling a reversal which we had tried and failed followed by re posting the run no 1756. Our manual entries had to be reversed.The solution is given below.
Please follow these steps:
- Select the posting run 1756
- Menu => Edit => Reversal => Reset after termination
- After last step the status of the posting run should appear as
'documents posted'
- Go to transaction SM13
- Select by user 8273 and date 02.01.2012
- You should see an entry like this:
400 8273 02.01.2012 15:26:57 @07\QEnqueues released@ Error
- Select the entry and press the button 'Single test'
- In case the system shows an error, please send the message back to us
- In case the system shows no errors => press button 'Repeat update'
- Then check in PCP0 and FI is the document has been correctly posted.
Regards
Sunil -
Billing document not getting created.
Hello SAP gurus,
I have a situation where billing document is not getting genrated. Its a delivery related billing and i have checked following.
Sales order is complete
Delivery is complete
No billing blocks at header or item level
GI is also done.
However when i see in delivery go to --> item --> processing tab and see at item status against billing document it shows blank(niot relevant for billing ) which i believe is not correct , it should either be A(not yet processed) , B(partially processed) or C(Fully processed) as the case may be.
Also same staus under delivery ->goto -> header-> processing in overall status section.
Want to know how these status are updatd from. Are there any standard programmes which can update these statuses.
Or can anyone suggest anything else which i can check.
Thanks in advance.
VivekHi,
The Status in the table is updated by some settings
1. Check in the VOV8 whether the Billing document maintained or not in the field DELIVERY-RELATED Billing
2. If the document is maintained then check whether the COPY CONTROLS maintained or not from DELIVERY TO BILLING in VTFL
3. As also suggested check the Billing Relevance field in the VOV7 for your ITEM CATEGORY.
Mainly the issue is due to not maintaining the COPY CONTROLS from Delivery to Billing
you can get more details information on this issue when you try to create the Billing manually from the Delivery document in VF01.
It will give the Error Log
Pleaes check and revert back if any of the above are not apt
regards,
santosh -
Profitability document not getting created (related to RRB)
Hi Gurus,
I have created a service order and a billing request (RRB thru DP90) wrt the service order. The debit memo request contains the Service Order assigned in the account assignment field by default.
When i invoice this debit memo request no profitability analysis document is created.
Is it because the debit memo request is account assigned to the service order?
Kindly suggest how to remove the default account assignment (as service order) from the debit memo request.
Regards and Thanks,
AbhishekHi,
The Status in the table is updated by some settings
1. Check in the VOV8 whether the Billing document maintained or not in the field DELIVERY-RELATED Billing
2. If the document is maintained then check whether the COPY CONTROLS maintained or not from DELIVERY TO BILLING in VTFL
3. As also suggested check the Billing Relevance field in the VOV7 for your ITEM CATEGORY.
Mainly the issue is due to not maintaining the COPY CONTROLS from Delivery to Billing
you can get more details information on this issue when you try to create the Billing manually from the Delivery document in VF01.
It will give the Error Log
Pleaes check and revert back if any of the above are not apt
regards,
santosh -
Accounting document not getting created
Hi..
I am trying to post transaction in SAP R3 in inventroy management but system is unable to generate any accounting documents. is there any way out..where i have to activating any settings,
Suggestions will be worth rewarding.Dear Baig,
Please check following settings.
1) Accounting View created in Material Master
2) For thsi material type whether Quantity & Value updation is dine in Basic setting for Material Type in SPRO
You have to do setting in two places in SPRO under material Master - Basic setting -Define attributes for material type
1) When you select material type detail screen click radio button under value updating .
2) Then go to subfolder -Qty & value updating & choose your valuation area ( plant or company code) & ensure that value update radio button is clicked.
This will solve your problem,
Reward suitably,
Vivek Maitra -
Accounting doucment not get created for Credit Memo
Hi
When creating a cancellation doucment(vf11) for credit memo accounting document not get created.While I go for analysis then it is determining the G/L account.But not getting created the accounting doucment.
When i select "Release to accounting" then it is giving a message like this:
"Automatic clearing of billing document 951
and canc. doc. 90000572 not poss." as informatiion first
and then later it is throwing an error message that "maintain correct number range"
While for the same material or earlier cancellation happened and accounting doucment get created.
Please help me out;How would i get this solved?
Thanks in advanceHi,
You may also check for Number Range - Maintainance & Assignment.
T. Code: SNRO
Table/ View: RV_BELEG
Here, Mantain Number Range.
To Assign,
T. Code: SM30
T.Code: Bill_Num (or select if different in your case)
Assign No. range to your combination of Sales OrgDist.ChannelBill Type i.e. for Cancelled Billing Doc. Type
To Maintain Number Range for Accounting Documents,
T. Code: FBN1
Best Regards,
Amit -
SRM PR is not getting created in ECC backend
Hello Experts,
We are running SRM 7.0 with SRM-MDM Catalog, we are using SRM for shopping. We do have PI 7.11 running in the Environment as well.
We are on ECC 6.0 with Ehp 4.0
Purchase Order:
However we can see the PO creating successfully using PI.
Question, in the SRM table (BBP_FUNCTION_MAP), we see the object type: BUS2012 for ERP 4.0 has adapter name: /SAPSRM/CL_SOA_ADPT_PO_CRT_ERP for when creating PO. Please see teh screen shot.
is this the reason that we need PI?
Purchase Requisition:
PR Creation is not working:
PR is not getting created in the ERP, PR uses Object type: BUS2105, Adpater CL_BBP_BS_ADAPTER_RQ_CRT_470 for ERP 4.0 System type, can you please tell me if the adapter is correct for ERP 4.0 system type?
I also have a question to ask:
1) Where did you see that PR/PO was send to PI System (PI1)? My understanding is that since ERP amd SRM are 2 ABAP Systems, why we cannot send the PR/PO directly to ERP system from SRM? Why do we need a middleware(PI) in between for this process? We should be able to USE BAPI function to do it correct?
Please advice.
Thanks
Kumaryes, i could see a PR number with all this additional details as below.
Table BBP_PDBEI
CLIENT 453 Client
GUID 4CAEFA58EB9D005CE1008000AC1C2031 Globally Unique identifier
BE_LOG_SYSTEM QA1400 Logical System of Logistics Backend
BE_OBJ_ITEM Follow-On Object Item in Back-End System
BE_OBJECT_TYPE BUS2105 Follow-On Document Object Type in Back-End System
BE_OBJECT_ID 2000000167 Follow-On Document Object ID in Back-End System
BE_REFOBJ_TYPE Reference Object Type in Back-End System
BE_REFOBJ Reference Object in Back-End System
BE_REFOBJ_ITEM Reference Object Item in Back-End System
BE_REFOBJ_SBITM Reference Object Sub-Position in Backend System
BE_REFOBJ_TYPE2 Reference Object Type in Back-End System
BE_REFOBJ2 Reference Object in Back-End System
BE_REFOBJ_ITEM2 Reference Object Item in Back-End System
BE_REFOBJ_FYEAR2 0000 Reference Document Object - Fiscal Year in Back-End System
BE_STGE_LOC Storage location
BE_PLANT 2016 Plant
BE_BATCH Batch Number
BE_VAL_TYPE Valuation type
BE_MOVE_REAS 0000 Reason for Movement
BE_EXPERYDATE 00000000 Shelf Life Expiration Date
BE_PUR_GROUP 206 Purchasing group
BE_PUR_ORG 2000 Purchasing organization
BE_CO_CODE 2000 Company Code
BE_DOC_TYPE CLRQ Purchase Requisition Document Type
BE_ACCREQUIRED Account Assignment for Logical Backend Required
BE_SP_STK_IND Key for Special Stock Section
BE_INFO_REC Number of purchasing info record
BE_MOVE_TYPE 201 Movement type (inventory management)
BE_PACKNO 0000000000 Package number
BE_INTROW 0000000000 Internal line number for limits
BE_ITEM_TEXT Short Text of a Service Purchase Order Item
BE_PO_PRICE 1 Price from Backend
BE_UNLOAD_PT 200 Unloading Point in Backend
BE_DEL_IND Deletion Indicator in Backend Documents
BE_TRACKING_NO Requirement Tracking Number
BE_COND_TYPE Condition Key
BE_COND_STEP 000 Level Number
BE_COND_COUNTER 00 Condition counter -
In EBS document not get auto clear Algorithms 11
In Electronic bank statment document not get clear automatically while batch run.
I update check no to payment document. even though it is not get auto clear.
in OT51 assign Interpretation Algorithms 11 011:(Outgoing check: Check number not identical to document number)
why it is not get auto clear with check number.011 = Outgoing check: Check number not identical to document number
012 = Outgoing check: Check number identical to document number
The "document number" in the descriptions is the payment document number - the FI doc that cleared the invoice. If you use the payment document number as the check number - and thus that is the number the bank includes in the bank statement - then you would use algorithm 012. If you create a check in the check register that is a different number than the payment document - and the check number is the number in the bank statement - then you would use algorithm 011.
Search SAP Help for a document titled "Interpretation Algorithms". This document includes descriptions of all the standard interpretation algorithms.
Regards,
Shannon -
Excise invoice should not get created without PGI
Hi,
I have a scenario where the billing document is being generated by the customer without PGI after creation of outbound delivery for exports. (This is as per customer's requirement - Copy control maintained in VTFL for the same - copying requirements 11 )
This creates a situation - excise invoice can be created without PGI - which creates problems for customer. This should not happen.
Customer wants a check during the excise invoice creation - excise invoice should not get created if PGI has not been done.
Kindly advise as to how this can be done.
Regards,
T SaravananDear Saravanan
Two options are there
- in your existing routine itself, you can specify the control in such a way that unless the preceding document is PGId
- apply excise user exits like J_1I7_USEREXIT_EXCISE_BEF_SAVE to achieve the requirement.
thanks
G. Lakshmipathi -
Invoice is not getting created in Order related billing
Dear all,
I am trying to do a Order related billing. After creating the order i am going to VF01 and selecting the billing type i have created and trying to create the invoice. I am getting the error "No billing documents were generated. See log" when i am checking the Log its showing now errors.
In case if my account determination procedure is wrong, system should allow me to create a Sales invoice and accounting document will not be generated. But in this case even the sales invoice is also not getting created.
Please suggest me if there are any configuration changes i need to do to overcome this problem.Apart from the suggestion already given, also ensure that
the order is not showing in incomplete log
the order is not blocked for credit limit
You can also cross check in VF04 whether system is fetching that sale order. For information, once you execute VF04, by default, system will check only "Delivery related" check box. You have to manually select "Order related" check box.
G. Lakshmipathi -
Attachment not getting created in PI from CRM
Hi Everyone,
I am trying to create attachments in PI from CRM but it is not getting created there. I am executing the following steps:
By default I am getting the attachment data in Binary format so I am using this function module to convert it into XSTRING format.
CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
EXPORTING
input_length = lv_input_length
first_line = lv_first_line
last_line = lv_last_line
IMPORTING
buffer = lv_xbuffer
TABLES
binary_tab = file_content_binary.
2. Then I am getting the server context and the protocol.
obj_server_context = cl_proxy_access=>get_server_context( ).
obj_attch_protocol ?= obj_server_context->get_protocol( if_wsprotocol=>attachments ).
* Assign File naame to STRING Variable
lv_name = lv_filename.
* Attach file to the service response.
obj_attachment = obj_attch_protocol->get_attachment_from_binary(
data = lv_xbuffer
type = if_ai_attachment=>c_mimetype_pdf
name = lv_name ).
APPEND obj_attachment TO t_prx_attach.
obj_attch_protocol->set_attachments( t_prx_attach ).
3. Then I am using a proxy class which has Input and Output structures for sending data to PI and getting the response respectively. And then in the end I am calling the proxy and passing the structures.
With this I am unable to see the attachmenmts in sxmb_moni transaction. Please help.Hi Gurus,
Can you please help with some pointers on this.
I have used below links as reference for coding.
Link 1 :
http://help.sap.com/saphelp_nw04/helpdata/en/a7/3b2a2d45a34a23b75e3b18745c63bc/content.htm
Link 2:
http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/10/19/abap-proxy-protocols-use-cases-and-examples
After setting attachment(Method SET_ATTACHMENTS) i am not getting any exceptions,but still i am not able to see any attachment created in SXMB_MONI.
Thanks in Advance,
Manil. -
Controlling Document Not Getting Posted
Dear All,
We have a peculiar scenario of Controlling Document not getting posted. Any pointers on wat could be the issue will be highly helpful.
Scenario:
We have an interface which posts an accounting document.
Dr. Expense
Cr. Balance Sheet.
The Cost Center is supplied thru the interface and FI document and Profit Center Document is posted without any issues. However, CO document is not generated, not sure wat could be the issue. We have performed the basic checks. Also, for the same expense account, we observe some postings have gone into CO where are some didnt'. The difference between documents posted with corresponding CO and documents without corrsponding CO posting is only the "Transaction Key". When we maintain blank Transaction key.. the system posts CO document, when transaction key is "WRX" for that specific GL the system doesn't post.
Not sure why Standard SAP behaves like that. Please advice wat items i need to check to resolve
this.
regards
DiwakarHello,
Make sure in OBYC, for key WRX, you have maintained the GL accounts.
Regards,
Ravi -
Material Document not getting posted.
Hi Guys:
Material document is not getting created when i try post the inventory difference using transaction LI21 ( Clearing of differences in Inventory Management ).
we are using WM , so physical inventory is carried out at Bin Level.
Did I miss anything in the config setting?
Thanks
Sweth.Hi Jurgen:
do you have a pick or putaway quantity in this quant in storage type 999 ?
Yes , in the available quantity I could see the -ve quant ( Goods Issue/Pick) and + Quant (Goods Receipt/Putaway)
is the quant locked?
Quant is showing with unlocked logo.
is somebody else in change mode in that quant?
Nope
is this the only item in your inventory document?
yes
have you tried to execute LI21 in background?
I don't how to do that ,
do you require to enter a reason for the difference?
I didn't see that question Popped Up.
Thanks for the help.
Sweth -
Spool not getting created in batch job
Hello experts,
We have a requirement of printing BA00, BA01 and LD00 from different application.
We have done same code for all BA00, BA01, and LD00.
Normally the code is working fine except in few cases, when batch job is created but spool is not created.
DATA: job_name TYPE tbtcjob-jobname,
number TYPE tbtcjob-jobcount,
print_parameters TYPE pri_params,
wv_pripar TYPE pri_params,
wv_arcpar TYPE arc_params,
wv_val TYPE c VALUE 'X',
wv_false TYPE c VALUE 'X',
gv_mandt TYPE tsp01-rqclient,
gv_user TYPE tsp01-rqowner.
CLEAR: gv_mandt, gv_user, number.
gv_mandt = sy-mandt.
gv_user = sy-uname.
job_name = 'DELIVERY_PRINTING'.
CLEAR: range1.
range1-sign = 'I'.
range1-option = 'EQ'.
range1-low = 'LD00'.
CLEAR: range1-high.
APPEND range1 TO range.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = job_name
IMPORTING
jobcount = number
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
IF sy-subrc = 0.
SUBMIT sd70av2a WITH rg_kschl IN range
WITH rg_vbeln IN deli_tab
TO SAP-SPOOL
SPOOL PARAMETERS print_parameters
WITHOUT SPOOL DYNPRO
VIA JOB job_name NUMBER number
AND RETURN.
IF sy-subrc = 0.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = number
jobname = job_name
strtimmed = 'X'
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
OTHERS = 8.
IF sy-subrc <> 0.
ENDIF.
ENDIF.
WAIT UP TO 10 SECONDS.
** to give the data to the printer***
* CLEAR gv_rqident.
SELECT SINGLE listident INTO gv_listident FROM tbtcp
WHERE jobname = job_name
AND jobcount = number.
IF sy-subrc = 0.
MOVE gv_listident to gv_rqident.
CALL FUNCTION 'RSPO_OUTPUT_SPOOL_REQUEST'
EXPORTING
spool_request_id = gv_rqident.
ENDIF.
The same code is for all the output BA00, BA01 and LD00.
The issue is that for few batch jobs (which is created in the above code) , spool is not getting created.
Thanks and Regards,
Paritosh PandeyHi,
The code starting from WAIT UP TO 10 SECONDS. - not only does it look attrocious, is error prone (if no free process for executing batch job is available for 10 seconds, or if the job runs for more than 10 seconds, what will happen...?), but seems utterly unnecessary... Is there any reason immediate spool output can not be handled by simply setting PRINT_PARAMETERS-PRIMM = 'X'?
cheers,
Janis
Edit in:
Ok, i just read Document in spool but not printed... Do not use an output device relying on frontend access methods to do printing from background processing. Frontend is not available during background processing, period. To my knowledge there is no easy, clean solution to this problem other than defining and assigning, per user, output devices not relying on frontend printing. What if the dialog user has logged off by the time batch job finishes..? May the spool remain unprinted?
Has the SAP Basis refused to define output devices (I have hard time believing this...)? Well, tell them one time to stop being silly and if they do not cooperate, tell the owner of the requirement that it can not be implemented due to uncooperative Basis then... and that the users will have to keep going to SP01 and manualy start the output!
Message was edited by: Jānis B -
Transfer Requirement not getting created
Hi All,
My query as below;
Production order is created using KANBAN (Control Cycle/Supply Area is defined) using classic KANBAN.
WM is in place and all the setting related to TR/TO creation for WM movement type 103 is in place.
When i am trying to receive this Production after completion it is not creating the TR/TO, while as material document is getting generated and shows the stock directly in interim storage type 901 without creating TR and TO.
Further i checked there is indicator in Production order i.e "Kanban indicator" that gets checked automatically when Production order is created using KANBAN Processs and if i remove that indicator forcefully, TR and TO is getting created normally.
Please provide some inputs where can be the problem and how TR and TO can be created normally eventhough KANBAN indicator is checked in Production order and where i can found the setting related to "KANBAN INDICATOR".
Appreciate your help.Hi Maddy
Thanks very much for your response.
1. When you use KANBAN, you define separate KANBAN storage location, which is different from WM-managed replenishment storage locations, and separate KANBAN interim storage area with storage bin.
Yes different storage location is defined which is not WM-managed in supply area.
As you said Control Cycle is defined, see if the interface is properly defined for both of these Sloc.
Where i can check whether interface is properly defined or not.
2. See if you have defined the KANBAN replenishment strategy with Control type Transfer Requirements from a Storage Location which is being controlled by WM in the Customizing for Production under KANBAN > Replenishment Strategies > Define Stock Transfer Strategies
Actually for a material two strategies are defined like;
1) In-house Production strategies-0003-
supply area is defined with storage location which is IM managed.
And when this order is completed and i am trying to receive this in WM SLOC (usally whatever SLOC we have defined in supply area it proposes that SLOC at the time of receipt but i am changing this manually to WM managed SLOC) using transaction MIGO, it is directly taking the stock to 901 interim storage type and in total the stock increases but the problem is when TR is not getting created i am not able to take this to the storage bin as per strategies defined.
2) Stock Transfer Strategies-This is working fine and in that TR/TO is working fine.
3. For TO to get created automatically by the system from the transfer requirement, see if an indicator Automatic TO creation in the replenishment strategy is set or not. Yes this is set for stock transfer strategies but i didn't find option to check the TO creation automatically for in-house production strategy
4. Also, check that you have set up a suitable replenishment movement type for KANBAN in the Customizing for Warehouse Management under Activities > Transfers > Define Movement Types (i.e.standard is 350 for KANBAN replenishment)-Yes this is also defined correctly.
Appreciate your more inputs on this.
Maybe you are looking for
-
At 96% completion of Reader install Windows gives above error msg. I close that window, then new window says "Installation complete." I click finish. New window opens with "Installation successful - you are now running Adobe Reader." Yet Reader does
-
Hello I'm developing a series of learning aids and the final screen requires the user to input some text. I have it working correctly but now need to make it a little more user friendly. At the moment the only way for the user to input the text is to
-
TS3276 how to delete emails stuck in the sent folder which continues to try and send them?
I tried sending a big file on Mail with attachment. It got stuck and now the sent file on my macbook is constantly trying to act on the message and my entire Mail folder is now stuck, doesn't react on anything. I want to delete the message to free my
-
CS4 - CS5 Upgrade? (Performance in mind)
I currently own AE CS4. Now that CS4 is out, I only want to upgrade if there are decent performance upgrades. My thing is this, I work in primarily high resolution 1900x1080 projects, and I want to cut down the ram preview / render times as much as
-
How do I stop files from opening as "Word Work File C_3.tmp."?
I have MS Word 2011 for Mac. Whenever I open a file that I have saved, it opens with the title "Word Work File C_3.tmp." To save whatever work or editing I want to do, I then have to go back to the saved file, pick up the actual title, go back to the