BAPI Needed of uploading document in already existing Dispute Case
Hi,
I need BAPI for uploading document in already existing Dispute Case...
Thanks,
Ajit
I tried to use the following program to upload a document and it is not working, any feedback would be helpful:
*& Report ZTEMP_DISPUTE_12
REPORT ztemp_dispute_12.
PARAMETER : l_fname TYPE char255.
DATA : l_file TYPE string,
lv_xstring TYPE xstring,
l_return TYPE bapiret2,
l_filecontent TYPE bapiconten,
i_case TYPE REF TO if_scmg_case_api,
l_initial_dir TYPE string,
l_window_title TYPE string,
l_filename_disp TYPE string,
l_filename_string TYPE string,
l_user_action TYPE i,
l_rc TYPE i,
l_v_lines TYPE i,
l_mime TYPE skwf_mime,
l_filelength TYPE i,
l_component TYPE bapidoccomp,
l_skwf_filnm TYPE skwf_filnm,
li_file_tab TYPE filetable,
lwa_file_tab TYPE file_table,
li_bin_content TYPE STANDARD TABLE OF bapiconten,
l_v_size TYPE i.
DATA: BEGIN OF itab OCCURS 0,
line TYPE sdok_sdatx.
DATA: END OF itab.
DATA: BEGIN OF i_component OCCURS 0,
comp_count TYPE bapipos,
comp_id TYPE bapidocid,
mimetype TYPE bapimimetype,
comp_size TYPE bapipos,
binary_flag TYPE bapigsbool,
comp_num TYPE bapipos.
DATA: END OF i_component.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR l_fname.
l_window_title = 'Upload Document'(001).
Call the file selection dialog
CALL METHOD cl_gui_frontend_services=>file_open_dialog
EXPORTING
window_title = l_window_title
initial_directory = l_initial_dir
CHANGING
file_table = li_file_tab
rc = l_rc
user_action = l_user_action
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_file_tab INTO lwa_file_tab INDEX 1.
IF sy-subrc = 0.
l_file = lwa_file_tab-filename.
l_fname = lwa_file_tab-filename.
ENDIF.
ENDIF.
START-OF-SELECTION.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = l_file
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = ' '
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
VIRUS_SCAN_PROFILE =
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH =
HEADER =
TABLES
data_tab = itab
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
DESCRIBE TABLE itab LINES l_v_lines.
l_v_size = l_v_lines * 255.
l_filename_string = l_file.
CALL METHOD cl_gui_frontend_services=>file_get_size
EXPORTING
file_name = l_filename_string
IMPORTING
file_size = l_v_size
EXCEPTIONS
OTHERS = 1.
convert binary255 to binary1024 table
CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
EXPORTING
input_length = l_v_size
IMPORTING
buffer = lv_xstring
TABLES
binary_tab = itab
EXCEPTIONS
failed = 1
OTHERS = 2.
IF sy-subrc <> 0.
rv_failed = 'X'.
RETURN.
ENDIF.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = lv_xstring
TABLES
binary_tab = li_bin_content.
l_skwf_filnm = l_file.
CALL FUNCTION 'SKWF_MIMETYPE_OF_FILE_GET'
EXPORTING
filename = l_skwf_filnm
X_USE_LOCAL_REGISTRY =
IMPORTING
mimetype = l_mime.
l_component-comp_count = 1.
l_component-comp_id = l_fname.
l_component-mimetype = l_mime.
l_component-comp_size = l_v_size.
l_component-binary_flag = 'X'.
l_component-comp_num = 1.
APPEND l_component TO i_component.
DATA:
lo_case_api TYPE REF TO cl_scmg_case_api,
lo_case_api_intf TYPE REF TO if_scmg_case_api.
CALL METHOD cl_scmg_case_api=>if_scmg_case_api~open_case
EXPORTING
im_case_guid = 'E99B284FC272B720E100000092D79319'
im_enqueue = 'X'
RECEIVING
re_case = lo_case_api_intf
EXCEPTIONS
failed = 1
enqueue_failed = 2
invalid_guid = 3
cx_srm_gsp_back = 4
OTHERS = 5.
lo_case_api ?= lo_case_api_intf.
*DATA : l_if_case_api TYPE REF TO if_scmg_case_api.
CALL METHOD cl_scmg_case_api=>open_case
EXPORTING
im_case_guid = 'E99B284FC272B720E100000092D79319'
RECEIVING
re_case = l_if_case_api
EXCEPTIONS
failed = 1
enqueue_failed = 2
invalid_guid = 3
cx_srm_gsp_back = 4
no_authority = 5
OTHERS = 6.
CALL FUNCTION 'UDM_BD_CREATE_ATTACHMENT'
EXPORTING
i_guid = 'E99B284FC272B720E100000092D79319' "E99B284FC272B720E100000092D79319
i_case = lo_case_api
i_testrun = space " '003A3A4FAD54D97CE100000092D79319'
TABLES
bin_content = li_bin_content
components = i_component
CHANGING
es_return = l_return.
IF sy-subrc = 0.
COMMIT WORK.
ENDIF.
CALL FUNCTION 'DEQUEUE_ALL'.
break 50120i1120.
Similar Messages
-
ERROR ITMS-9000:"Redundant Binary Upload. There already exists a binary upload with build version '1.1' for ipa '1.1'".
I need to change the build number, but not the version number. So I can upload a new build for same version to ITC. What step should I do in FB4.7?Hi mobisa,
Can you try the solution in this post? ios - ERROR ITMS-9000: "Redundant Binary Upload. There already exists a binary upload with build version '1.0' for train…
Thanks,
Preran -
ICO already exists in case same sender IDoc has to be used.
Hi,
I had a scenario where it used and IDoc as Sender (eg. XYZ.xyz) and a corresponding ICO was created. This is working absolutely fine. It is an IDoc to File scenario.
Now I wanted to create anothe scenario using the same sender IDoc. As creating an ICO with the sender interface mentioned gave an error that "ICO already exists". So I tried creating a service interface in which I gave the Request message as the IDoc. As expected on triggering IDoc , it is getting processed with ICO having sender interface as the IDoc and not the one I created.
Please help me out in this, multiple scenarios with same sender IDoc (Creation of ICOs).
Thanks & Regards,
Vikas Kumar SinghHello,
Use the same ICO with same IDOC as sender interface and channel
In the receiver tab multiple system and in the interface tab add multiple interfaces.
Now the same Idoc will be triggered to 2 interfaces -
FM/BAPI needed to change document status
Hi,
I have a requirement wherein i need to change the document status field in table DRAW. I have document number and document type as input, based on a condition i will be changing the document status. is there any FM or BAPI available to change the document status?
Thanks in advance,
Srilakshmi.Hi Srilakshmi
The following BAPI could help you,
BAPI Name: Document.SetStatus
Document.SetStatus
Set document status
Functionality
With this method, a new status is set for the document. Optionally, with the help of the field STATUSLOG, one more entry can be made in the status log field.
Notes
The internal or the external status is specified. The internal status defines how the status on the DB is saved; the user can see the external status based on the login language on the screen.
In principle: If the internal status is specified, this has priority, otherwise, the internal status is read via the external status code.
Sample program
**define required variables
DATA: lf_doctype LIKE bapi_doc_draw-documenttype,
lf_docnumber LIKE bapi_doc_draw-documentnumber,
lf_docpart LIKE bapi_doc_draw-documentpart,
lf_docversion LIKE bapi_doc_draw-documentversion,
lf_statusextern LIKE bapi_doc_draw-statusextern,
lf_statusintern LIKE bapi_doc_draw-statusintern,
lf_statuslog LIKE bapi_doc_draw-statuslog.
Bapi-Return structure
DATA: ls_return LIKE bapiret2.
Assign the document data
the status should be changed by this document
lf_docnumber = 'Documentnumber'.
lf_doctype = 'DRW'.
lf_docversion = '00'.
lf_docpart = '000'.
lf_statusintern = 'AR'.
**Call BAPI
CALL FUNCTION 'BAPI_DOCUMENT_SETSTATUS'
EXPORTING: documenttype = lf_doctype
documentnumber = lf_docnumber
documentpart = lf_docpart
documentversion = lf_docversion
statusextern = lf_statusextern
statusintern = lf_statusintern
statuslog = lf_statuslog
IMPORTING: return = ls_return.
Errors occurred ??
IF ls_return-type CA 'EA'.
ROLLBACK WORK.
MESSAGE ID '26' TYPE 'I' NUMBER '000'
WITH ls_return-message.
ELSE.
COMMIT WORK.
ENDIF.
Regards
S.Sivakumar -
MIRO- Document number already exists on Subsequent Debit/Credit for 3rd pty
We have problem in invoicing a third party Purchase order, we get the message as " Document -<SD invoice> already assigned".
Error: F5152
Our Flow is: SO created-- PO Created--MIGO MIRO VF01.
Now the Vendor sends a Debit/Credit for the same PO.
While posting a vendor invoice in MIRO for subsequent Dr/Cr, the system(FI_DOCUMENT_NUMBER_CHECK) checks the number range of already invoiced SD document# and we get the error message " Document -<SD invoice> already assigned".
I checked the other question posted for this but did not see the solution.
NimitPlease dont cross post in different forums per forum rules.
As mentioned in the other forum check OSS Note 414742 - Error F5 512 during the billing document update.
Regards, -
Bank Upload : Statement 00227 already exists; entry ignored
Hi
We have uploaded the bank using FF.5 for two days 13.7.09 and 14.07.09 seperately. The batch SM35 processed for 14.07.09 first and 13.07.09 second. Now when we are trying to upload 15.07.09, the system is displaying the following error. Is there any way to fix this other than manual upload?
I have seen this error in the forum and reply to it, but this seems to be slightly different.
Appreciate your help.
Regards,
VenuSometimes due to user error (Do not post option selected) or some technical buffering issues, Bank statement is uploaded but not posted (then it will give you this error as well). Please try to post statement 00227, and if the system has already done the posting then it will not post otherwise it will process and post the uploaded invoice.
If it is not posting then it can be user error that while uploading statement for 14th, statement for 15th got included. Please check this by running FEBA_BANK_STATEMENT REPROCESS (or FEBA in older version) to check and reconcile if all the postings that you expect for 00227 have been posted correctly.
This can be user upload error, because mostly you will do previously day upload but you have the option to upload current day along with previous day for most banks
Thanks
Ron -
Need Steps or documents to connect existing 10g agent to 11g oms
Hi All,
Just installed 11g oms on oel 5.5 linux and it runs good. We have several hp servers run 10205 agents and they are monitored by 10205 oms on window. We want to use this new 11g oms to replace the 10205 oms. How to make this 11g linux oms to find the 10g hp agents?
Has anyone known the steps to configure an existing 10205 hp agent to connect to linux 11g oms? Or generally the steps to modify an existing 10g agent to see the 11g oms?
Thanks in advance for any help!Sorry my mistake.
You should
1.
Stop the Management Agent.
2.
Locate the emd.properties file in the Management Agent home directory:
AGENT_HOME/sysman/config/emd.properties
3.
Use a text editor to open the file and locate the REPOSITORY_URL property.
4.
Modify the value for the REPOSITORY_URL property so it references the new Management Service. For example:
REPOSITORY_URL=http://mgmthost2.acme.com:4889/em/upload
5.
Modify the value for the emdWalletSrcUrl property so it references the new Management Service. For example, if the new Management Service is on a host called mgmthost2.acme.com , modify the property as follows:
emdWalletSrcUrl=http://mgmthost2.acme.com:4889/em/wallets/emd
6.
Save your changes and close the emd.properties file.
7.
To ensure that the Management Agent is no longer holding any specific data or settings from the previous Management Service, delete all the files in the following directories:
AGENT_HOME/sysman/emd/upload/
AGENT_HOME/sysman/emd/state/
AGENT_HOME/sysman/emd/collection/*
AGENT_HOME/sysman/emd/lastupld.xml
AGENT_HOME/sysman/emd/agntstmp.txt
AGENT_HOME/sysman/emd/blackouts.xml
AGENT_HOME/sysman/emd/protocol.ini
Note that this action removes all user-defined metrics (UDM)s and custom changes to metric and policy collections.
Note:
You can use the emctl clearstate agent command to delete the files in the state directory.
8.
Restart the Management Agent.
as directed by mnazim (sorry)
http://download.oracle.com/docs/cd/E11857_01/em.111/e16790/ha_agent.htm#BABDFBGA -
How can I include documents in already existed one?
Hi all,
I do not mean etc. <include file="" ..
Let's say you have a file called index.html. In this file you have a form with two fields cusName and custID. After I submit this page I need to have a page with the name of the ealier one which was. It must show me something like this
---->Index and also it must include some other file with links.
Now I click one of those links and fill form fields. This form fields must be included in the index generated page.
I hope you understand my point.
Thank you
AjlearNot really sure what your asking, but it looks like
you are trying to pass parameters along through the url.
If you are you would need to do somthing like this..
"><%=courseBean.getName() %></a>
but it really wouldnt do you much good to pass 'variable'
along to a static html page, because you couldnt process
it in any way. -
Document already exist error for our user screen
Hi All,
In SAP 2007 PL 13,after Removing record by right click remove ,I am not able to add the document. It gives error "Document no already exist". After diagnosis Of ONNM and NNM1 table ,I got that next no does not increases in NNM1and ONNM Table.
but this problem came after upgrading from 2005 to 2007.
it happens for some times.
I could not find any reason because I had generated Document no by sap object.
Is it any patch required,I had already run PL 09,10,13
please help me
thanks in advance.Hi Atun,
This issue comes if the connectivity is poor.
Standard procedure.
Step 1
open SAP Business one
check the last added record.
Note down the number.
Step 2
Open SQL server
open the table ONNM
Check for the specific number of the object(your user documents)
Note down the number.
The number in this table should be (last addded record in SAP business one + 1)
Generally this error comes when the ONNM table number and SAP business one last added record number is equal. -
Upload documents in background
Hi gurus,
I need to upload documents in background.
Is there anyboby who could explain which function I have to use and how I can do to tranfer a zip file in a folder (competitive scenario).
...I must create a collaborative area after BID creation and upload in a specific folder the zip file.
ThanksI've created the public area in collaborative scenario with META_CFOLDER_COL_CREATE.
Now I need to create a link between bid & cFolder.
I've tried to use BBP_PD_BID_UPDATE but the system gives me a RABAX STATE. The problem should be in the function BBP_PDATT_UPDATE when the system try to get ITS_URL...
Anyone could help me
Regards -
F-22, Need to upload the document using BAPI
we have requirement to use BAPI for uploading document to f-22,
For the BAPI when we input data all the data are correctly posted except posting keys,
Our requirement is to use the customized posting for crediting customer and standard posting key for debiting GL account,
We have input the required posting key in BAPI but still its not picking the posting key, its taking the standard posting key,
Document type used is DC and DB,
so is there any relation between document type and posting key, any idea from where BAPI is picking Posting key?Hello,
it was originally not intended to use the BAPI to post
payment documnents. For simplicity the posting keys are not
at the BAPI's interface, instead they are defaulted with
the standard posting keys depending on account type and debit/credit
indicator.
Please see note 487722 which explains how to pass addditional data
to the BAPI in parameter EXTENSION1. You can implement the
Business Transaction Event (BTE) RWBAPI01 to populate the posting
key (t_accit-bschl) from EXTENSION1 parameter.
I hope this helps!
BR,
Raquel -
Hi there,
In my SP 2010 document library - When I try to save an Excel file from File > Save As menu to the document library it always prompts me "File already exists. Do you want to replace it?" even though the file does not exist in that document library.
To the same document library - if I upload a file then it accepts it all fine.
Any clues why I cannot save files using File > Save As menu?
Thanks.Hi,
As I understand, the notification pops up when you save an excel file to SharePoint library, while when directly upload file to library, there is no wrong.
Please confirm if the issue occurs to other machines.
Please open Microsoft Office Upload Center on the issue machine, then click settings, clear cache via checking Delete files from the Office Document Cache when they are closed.
http://office.microsoft.com/en-in/excel-help/office-document-cache-settings-HA010388664.aspx
If the issue occurs to client, I’d recommend you also ask the question in Excel forum:
http://social.technet.microsoft.com/Forums/office/en-US/home?forum=excel
Regards,
Rebecca Tu
TechNet Community Support -
SPD 2010 - How to know if a file with a given name already exists in a document library
Hi,
I've created a workflow using SPD. One of the steps in there is changing the name of the document to a clean name. This workflow fails if a document with this same name already exists in my document library. Is there a way to check in a SPD workflow if
a document with a given name already exists in my document library ?
Marc NemegeerHi,
According to your post, my understanding is that you wanted to know if a file with a given name already exists in a document library.
You can use a SharePoint Designer workflow to achive it.
To test to see if a document exists, you need to use condition:
If Current List:Name equals [%Current Item:Title%].docx
Here is a similar thread for you to take a look at:
http://social.technet.microsoft.com/Forums/en-US/cc227020-ce81-4c08-aee0-a66789d8ad05/test-to-see-if-document-exists?forum=sharepointcustomizationprev
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
I need to upload file to quicken loans I click the blue button that says Browser on it so I can search what documents to upload it doesn't open the folders to look for the documents to select.
Hi there. you have '''search.conduit''' set up as your '''about:newtab''' page.
This could be add-ware. Is this what you want?
'''[https://addons.mozilla.org/en-US/firefox/addon/searchreset/ Mozilla Search Reset]''' {web link}
This add-on is very simple: on installation, it backs up
and then resets your search preferences and home page
to their default values, and then uninstalls itself. This
affects the search bar, URL bar searches, and the home
page. -
Please tell which BAPI need to be used to Upload AP upload ability ie F-43
Hi Friends,
This Is the Requirement
functionality of being able to enter an SAP AP invoice using an excel upload. The t-code should post to a vendor account, allow for both cost center and profit center postings and have the ability to pass charges across company codes. This ability will allow for more efficient processing of invoices that are charged to multiple account numbers and entities.
Please tell which BAPI need to be used to post vendor invoice.
Thanks,
Ravi
<LOCKED BY MODERATOR - URGENT, PLEASE HELP OR SIMILAR ARE FORBIDDEN>
Edited by: Alvaro Tejada Galindo on Aug 22, 2008 5:41 PMThx
Maybe you are looking for
-
Asset aquisition date ????
Hi All, Previously at the time of asset acquisition, it was picking the document date as asset value date & capitalisation date and calculates the depreciation accordingly. But now with the same process, it is picking the posting date as asset value
-
Create windows folder with PL/SQL only
Hi I need to create a folder using PL/SQL only. We are using Oracle 10.2.0.1.0 Thanks.
-
Archlinux is moving to systemd
Hello! As far as I know Archlinux is moving now to systemd. Personally I fine with systemd, because I'm using it already. I'm also fine with SysVinit. I use systemd, because a dev told me that the move will likely happen in future and I had to instal
-
Outbound exchange mail being sent via SMTP instead of activesync
This is kind of an advanced configuration and question, I'm pretty sure this is a bug but not sure how to get it to the right audience. I have several email accounts configured on my iPhone, two of the accounts share the same email address but are on
-
Question-Star Rating in Elements 11
Please Help--Question about Star ratings...There are no stars under any of my photos. It has always been that way. Can't figure out how to activate stars under my downloaded photos. Is something turned off or did I get a broken version of photosho