Create document using BAPI_DOCUMENT_CREATE2
Hi Experts,
i am using BAPI_DOCUMENT_CREATE2 to create document like transaction CV01N. When i create it through CV01N, it is fine and I can see the attached file.
but when i run my program, the document is created without attached file. can anyone have some solutions for me? following is the code.
REPORT ztest_fw.
DATA:
lv_docnum TYPE BAPI_DOC_AUX-DOCNUMBER,
LW_DOCDATA TYPE BAPI_DOC_DRAW2,
LW_RETURN TYPE BAPIRET2,
LW_DSP TYPE BAPI_DOC_DRAT,
LW_OBJLINK TYPE BAPI_DOC_DRAD,
LW_DOCFILE TYPE BAPI_DOC_FILES2,
LT_DSP TYPE STANDARD TABLE OF BAPI_DOC_DRAT,
LT_OBJLINK TYPE STANDARD TABLE OF BAPI_DOC_DRAD,
LT_DOCFILE TYPE STANDARD TABLE OF BAPI_DOC_FILES2.
START-OF-SELECTION.
CLEAR LW_DOCDATA.
LW_DOCDATA-DOCUMENTTYPE = 'DRW'.
LW_DOCDATA-documentversion = '00'.
LW_DOCDATA-documentpart = '000'.
LW_DOCDATA-laboratory = '001'.
CLEAR LW_DSP.
LW_DSP-DESCRIPTION = 'Test created by Fang wei-SD'.
LW_DSP-LANGUAGE = 'E'.
APPEND LW_DSP TO LT_DSP.
LW_DOCFILE-DOCFILE = 'D:\Function study\Inbound & Outbound IDoc user exits.pdf'.
LW_DOCFILE-ORIGINALTYPE = '1'.
LW_DOCFILE-STORAGECATEGORY = 'SAP-SYSTEM'.
LW_DOCFILE-STORAGECATEGORY = 'DMS_C1_ST'.
LW_DOCFILE-WSAPPLICATION = 'PDF'.
LW_DOCFILE-LANGUAGE = 'E'.
LW_DOCFILE-CHECKEDIN = 'X'.
LW_DOCFILE-ACTIVE_VERSION = 'X'.
APPEND LW_DOCFILE TO LT_DOCFILE.
CLEAR LW_OBJLINK.
LW_OBJLINK-OBJECTTYPE = 'IFLOT'.
LW_OBJLINK-OBJECTKEY = '1350'.
LW_OBJLINK-DOCUMENTDIRECTION = 'X'.
APPEND LW_OBJLINK TO LT_OBJLINK.
CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
EXPORTING
DOCUMENTDATA = LW_DOCDATA
IMPORTING
DOCUMENTNUMBER = lv_docnum
RETURN = LW_RETURN
TABLES
DOCUMENTDESCRIPTIONS = LT_DSP
OBJECTLINKS = LT_OBJLINK
DOCUMENTFILES = LT_DOCFILE.
IF LW_RETURN-TYPE CA 'EA'.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
MESSAGE ID LW_RETURN-ID
TYPE LW_RETURN-TYPE
NUMBER LW_RETURN-NUMBER.
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
CLEAR lw_return.
CALL FUNCTION 'BAPI_DOCUMENT_CHECKIN2'
EXPORTING
DOCUMENTTYPE = 'DRW'
DOCUMENTNUMBER = lv_docnum
DOCUMENTPART = '000'
DOCUMENTVERSION = '00'
IMPORTING
RETURN = lw_return
TABLES
DOCUMENTFILES = lt_docfile
IF LW_RETURN-TYPE CA 'EA'.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
MESSAGE ID LW_RETURN-ID
TYPE LW_RETURN-TYPE
NUMBER LW_RETURN-NUMBER.
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
WRITE: / 'document number = ', lv_docnum.
ENDIF.
ENDIF.
Hi Wei,
based on your description I would kindly ask you to check if the flag 'USE KPRO' is set for the document type 'DRW'. Because as storage category you hand over the value 'SAP-SYSTEM' and this is not a KPRO storage category. So if the 'USE KPRO' flag is set then this original won't be displayed in CV03N.
Is there maybe a difference in display between transaction CV02N and CV03N?
Best regards,
Christoph
Similar Messages
-
Problem creating documents using BAPI_DOCUMENT_CREATE2
Dear all,
I am using
BAPI_DOCUMENT_CREATE2
to create a quality document attachment ( PDF file) for one of our dynpro screen..
then I retrive the document information using 'BAPI_DOCUMENT_CHECKOUTVIEW2
and show the document using function module
CV120_START_APPLICATION
1) it works fine only for the person who is creating the document as the bapi is creating a reference to his directory path.
2) it doesnt work if the user is moving the file into another directory on his local computer as the directory reference path is gone..
3) if a different user is trying to acess file it doesnt even show up as he will never have the direcory path created by some body else.
how to over come this situation.
I have done lot of investigation and I found that 'BAPI_DOCUMENT_CHECKOUTVIEW2 has some paraneters
pf_http_dest = 'SAPHTTPA'
pf_ftp_dest = 'SAPFTPA'
but could not able to understand it properly. Please kindly help..
Thank you very much in Advance.
Regards
syam.
Edited by: syambabu g on Oct 22, 2008 1:39 PM
Edited by: syambabu g on Oct 22, 2008 1:47 PM
Edited by: syambabu g on Oct 22, 2008 1:50 PMPlease refer to this thread, it tells why you need a data carrier you can also configure the same in DC20.
Data Carriers for Storage the Originals of DMS -
Problems in creating and storing new documents using BAPI_DOCUMENT_CREATE2
Hi experts,
I'm getting problems in creating and storing new documents using BAPI_DOCUMENT_CREATE2.
I have a scenario where is defined the document type ZC1, document part 200, authorization group 0002 and for all of these documents the storage category "Cofre DMS1". And the status which demands the storage category is 'FR'.
I've been fullfiling the BAPI_DOCUMENT_CREATE2 in this way:
"Tables
data: it_doc like bapi_doc_draw2,
it_return like bapiret2,
it_files like bapi_doc_files2 occurs 0 with header line,
it_objs like bapi_doc_drad occurs 0 with header line.
"Variables
data: wl_doctype like bapi_doc_draw2-documenttype,
wl_docnumber like bapi_doc_draw2-documentnumber,
wl_docpart like bapi_doc_draw2-documentpart,
wl_docversion like bapi_doc_draw2-documentversion.
it_doc-documenttype = 'ZC1'.
it_doc-documentpart = '200'.
it_doc-documentversion = '00'.
it_doc-description = 'Test of documents creation via BAPI'.
it_doc-username = sy-uname.
it_doc-statusextern = 'FR'.
it_doc-authoritygroup = '0002'.
refresh it_files[].
clear it_files.
it_files-originaltype = '1'.
it_files-storagecategory = 'Cofre DMS1'.
it_files-wsapplication = 'PDF'.
it_files-docfile = 'c:\110307.pdf'.
it_files-description = 'Test file'.
append it_files.
refresh it_objs[].
clear it_objs.
it_objs-objecttype = 'EKPO'.
it_objs-objectkey = '47000497600010'.
append it_objs.
CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
EXPORTING
documentdata = it_doc
IMPORTING
documenttype = wl_doctype
documentnumber = wl_docnumber
documentpart = wl_docpart
documentversion = wl_docversion
return = it_return
TABLES
objectlinks = it_objs
documentfiles = it_files.
After execute the BAPI process I got the following error:
E26 087 - Data carrier COFRE DMS1 not defined
Does anybody have a sugestion to help me, please?
Thks
David
Edited by: David Tsutsui on Mar 18, 2010 10:52 AMPlease refer to this thread, it tells why you need a data carrier you can also configure the same in DC20.
Data Carriers for Storage the Originals of DMS -
Not able to upload Documents using BAPI_DOCUMENT_CREATE2 (From SE37)
Hi
Not able to upload and created Document in SAP DMS Repository using Function BAPI_DOCUMENT_CREATE2.
I'm using this BAPI directly from SE37.
Alwasy it is giving Error - E26 253 Error while checking in and storing:c:\ZANALYSIS_PATTERN.XLS
Inputs I have given -
In Document Data -
Document Type - SDC
Document Version- 00
Document Part - 000
Description - TEST
In Document Files -
Document Type - SDC
Document Version- 00
Document Part - 000
Storage Category - ZHCL_CS
WS Application - XLS
DocPath - C:\
DocFile - C:\ZANALYSIS_PATTERN.XLS
Language - EN
CheckedIn - X
PF_FTP_DEST - SAPFTPA
PF_HTTP_DEST - SAPHTTPA
DEFAULTCLASS - X
Please advice if I had skipped something and mentioned anything wrong.
Thanks
PrashantHI,
I am also uploading a pdf file to dms through bapi_document_checkin.
I am getting error E26 253 Error while checking in and storing:C:\DOCUMENTS AND SETTINGS\AGARW01S\DESKTOP\10 2_VIEW 1.PDF
Inputs I have given -
In Document Data -
Document Type - SPE
Document Version- A
Document Part - 000
Description - UPLOAD
In Document Files -
Document Type - SPE
Document Version- A
Document Part - 000
Storage Category - DMS_C1_ST
WS Application - PDF
DocPath - C:\DOCUMENTS AND SETTINGS\AGARW01S\DESKTOP\10 2_VIEW 1.PDF
DocFile - 10 2_VIEW 1.PDF
Language - EN
CheckedIn - X
PF_FTP_DEST - SAPFTPA
PF_HTTP_DEST - SAPHTTPA
can u please help me as it is urgent.
Shilpa -
Create document using SharePoint Designer workflow
I am using SharePoint Online (2013 version) and SharePoint Designer 2013. I have tried to create a document library using "Create Item in List" action. A word document is created after the workflow executes, but the created document is corrupt.
It doesn't open in Word Web App. When I open it using Word, it shows a blank page.
I have some library columns inserted as quickparts in the template (tried both docx and dotx), but none of that appears in the document created by the workflow.
Has anyone tried this successfully? Please share your experiences.
Rajesh ElumalaiAfter migrating from 2010 to 2013 i too have ran into this issue. The 'create list item' action does not appear to work. Documents are created but cannot be opened
"No details Found" is the error message when opening the document. I have tried this on several Farms all with the same issue. Appears to be a bug running 2010 workflows in 2013. -
PDF file getting corrupted while creating document
Dear experts ,
we are creating DMS document using BAPI_DOCUMENT_CREATE2 , its all working fine in DEV and Quality system but in production system in case of PDF file bapi is returning success message , but user is not able to display or see the document , getting an error saying 'There was an error opening this document. The file is damagedand could not be repaired'.
my fuction module getting call from java webdynpro application , I have doubt on the OPEN DATASET statments
I am using below code to transfer data to application server ,
IF iv_file_path IS NOT INITIAL.
SPLIT iv_file_path AT '.' INTO lv_filename lv_ext.
CALL FUNCTION 'CV120_DOC_GET_APPL'
EXPORTING
pf_file = iv_file_path
IMPORTING
pfx_dappl = lv_file_type.
TRANSLATE lv_file_type TO UPPER CASE.
OPEN DATASET log FOR OUTPUT IN BINARY MODE
TRANSFER lv_ext TO log.
ls_documentfiles-wsapplication = lv_file_type.
TRANSLATE ls_documentfiles-wsapplication TO UPPER CASE.
CONCATENATE
lv_filename
lv_ext
INTO lv_file_name.
CONDENSE lv_file_name NO-GAPS.
TRANSFER lv_file_name TO log.
OPEN DATASET lv_file_name FOR OUTPUT IN BINARY MODE MESSAGE lv_msg.
**Transfer Attachment Content to Application Server
TRANSFER iv_file_data TO lv_file_name.
CLOSE DATASET lv_file_name.
Please helpAfter convert PDF file you have to use following FM the u send file.
DATA: pdf TYPE REF TO cl_hrasr00_pdf_generation.
DATA : lt_data TYPE solix_tab.
OPEN DATASET filename FOR INPUT IN BINARY MODE.
IF sy-subrc EQ 0.
READ DATASET filename INTO filex.
ENDIF.
IF filex IS NOT INITIAL.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = filex
IMPORTING
output_length = file_length
TABLES
binary_tab = gt_objbin.
ENDIF.
CLOSE DATASET filename. -
I apologise in advance for having so many questions, but I am considering purchasing an Ipad and these answers will help me to come to a decision on whether to purchase or not and if I purchase whether I need a 4g enabled ipad or wifi only.
1) Is there an app to enable you to produce Microsoft documents ie word document, excel documents etc using an ipad?
2) Is there a facility to be able to amend a Microsoft created document using an Ipad?
3) If I sent a document that was created using an Ipad via an email to anyone who only uses a Windows computer, would they be able to read it?
4) What app would I need to be able to use any software that normally requires adobe flash player?
5) I tether my Iphone to my Windows based laptop using a USB cable. How would I be able to tether my Iphone to my Ipad?
6) Once tethered would it use my Iphone's unlimited 3g network or the wifi network?
Thank youDocsToGo
• VIEW/EDIT/CREATE Word & Excel files(Office 2007/2008/2010)
• VIEW PowerPoint, PDF, iWork, Text, .RTF, and more!
• Send & receive attached supported documents using the built-in Mail app
• FREE desktop application with your purchase! Compatible on Win & Mac allows you 2-way file sync with a WIFI connection.
• Open & Edit files within DocsToGo from any 3rd party app that supports the “Open In” feature
• Supports iTunes File Sharing via USB cable for manually moving files
https://itunes.apple.com/us/app/documents-to-go-office-suite/id317117961?mt=8
Quickoffice Pro HD
Create and edit ALL Microsoft® Office -- document, spreadsheet, and presentation formats, as well as view PDF files, on the go. Our advanced file manager lets you manage local files, access Google Drive or other cloud accounts, and works with your iPad email attachments so you can work anywhere, anytime - online and offline.
https://itunes.apple.com/us/app/quickoffice-pro-hd-edit-office/id376212724?mt=8 -
How 2 creat report for displaying the details of a Delivery Document using
how to create report for displaying the details of a Delivery Document using the tables LIKP, LIPS
thank you
regards,
jagrut bharatkumar shukla
points will be rewardedHI
I AM GIVING YOU MY DELIVERY DOCUMENT CODE...MODIFY IT ACCORDING TO YOUR REQUIREMENT
*& Report ZDELIVERY *
report zdelivery message-id z9bhu .
types: begin of t_likp,
vbeln type likp-vbeln, "Delivery
erdat type likp-erdat, "Date for rec creation
* LFDAT TYPE LIKP-LFDAT, "Delevery Date
* WAERK TYPE LIKP-WAERK, "Currency
kunnr type likp-kunnr, "Ship-To Party
kunag type likp-kunag, "Sold-to party
traty type likp-traty, "Means-of-Transport
end of t_likp.
types: begin of t_lips,
vbeln type lips-vbeln, "Delivery
posnr type lips-posnr, "Delivery item
matnr type lips-matnr, "Material Number
arktx type lips-arktx, "Short Text for Sales Order Item
lfimg type lips-lfimg, "Actual quantity delivered
netpr type lips-netpr,
* MEINS TYPE LIPS-MEINS, "Base Unit of Measure
vgbel type lips-vgbel, "Doc no of the reference document
end of t_lips.
types: begin of t_vbpa,
vbeln type vbpa-vbeln, "SD DocumenT Number
posnr type vbpa-posnr, "Item number
parvw type vbpa-parvw, "Partner function
kunnrb type vbpa-kunnr, "Customer Number 1
end of t_vbpa.
types: begin of t_kna1,
kunnr type kna1-kunnr, "Customer Number 1
name1 type kna1-name1, "Name 1
ort01 type kna1-ort01, "City
adrnr type kna1-adrnr, "Address
end of t_kna1.
types: begin of t_li_vbpa,
vbeln type likp-vbeln, "Delivery
erdat type likp-erdat, "Date for rec creation
* LFDAT TYPE LIKP-LFDAT, "Delevery Date
* WAERK TYPE LIKP-WAERK, "Currency
kunnr type likp-kunnr, "Ship-To Party
kunag type likp-kunag, "Sold-to party
traty type likp-traty, "Means-of-Transport
vbeln1 type lips-vbeln, "Delivery
posnr type lips-posnr, "Delivery item
matnr type lips-matnr, "Material Number
arktx type lips-arktx, "Short Text for Sales Order Item
lfimg type lips-lfimg, "Actual quantity delivered
netpr type lips-netpr, "Net Price
* MEINS TYPE LIPS-MEINS, "Base Unit of Measure
vgbel type lips-vgbel, "Doc no of the reference document
vbeln3 type vbpa-vbeln, "SD DocumenT Number
parvw type vbpa-parvw, "Partner function
kunnrb type vbpa-kunnr, "Customer Number 1
end of t_li_vbpa.
types: begin of t_final,
vbeln type likp-vbeln, "Delivery
erdat type likp-erdat, "Date for rec creation
kunnr type likp-kunnr, "Ship-To Party
kunag type likp-kunag, "Sold-to party
traty type likp-traty, "Means-of-Transport
vbeln1 type lips-vbeln, "Delivery
posnr type lips-posnr, "Delivery item
matnr type lips-matnr, "Material Number
arktx type lips-arktx, "Short Text for Sales Order Item
lfimg type lips-lfimg, "Actual quantity delivered
netpr type lips-netpr, "Net Price
vgbel type lips-vgbel, "Doc no of the reference document
vbeln3 type vbpa-vbeln, "SD DocumenT Number
parvw type vbpa-parvw, "Partner function
kunnrb type vbpa-kunnr, "Customer Number 1
name1 type kna1-name1, "Name 1
ort01 type kna1-ort01, "City
adrnr1 type kna1-adrnr, "Address
name2 type kna1-name1, "Name 1
ort02 type kna1-ort01, "City
adrnr2 type kna1-adrnr, "Address
name3 type kna1-name1, "Name 1
ort03 type kna1-ort01, "City
adrnr3 type kna1-adrnr, "Address
end of t_final.
* D A T A D E C L A R A T I O N
*&*********Internal Table Declaration****************&*
data: it_likp type standard table of t_likp.
data: it_lips type standard table of t_lips.
data: it_vbpa type standard table of t_vbpa.
data: it_kna1 type standard table of t_kna1.
data: it_li_vbpa type standard table of t_li_vbpa.
data: it_li_vbpa_temp type standard table of t_li_vbpa.
data: it_final type standard table of t_final.
*&*********Work Area Declaration********************&*
data: wa_likp type t_likp.
data: wa_lips type t_lips.
data: wa_vbpa type t_vbpa.
data: wa_kna1 type t_kna1.
data: wa_li_vbpa type t_li_vbpa.
data: wa_li_vbpa_temp type t_li_vbpa.
data: wa_final type t_final.
*&*********Data Declaration************************&*
data: d_vbeln type likp-vbeln.
data: flag type i value 0.
* S E L E C T I O N S C R E E N D E C L A R A T I O N
selection-screen begin of block block2 with frame title text-001.
select-options: s_vbeln for d_vbeln obligatory. "Delivery no
selection-screen end of block block2.
* A T S E L E C T I O N - S C R E E N E V E N T S
*AT SELECTION-SCREEN.
*PERFORM VALIDATE_DATA.
* S T A R T O F S E L E C T I O N E V E N T S
start-of-selection.
perform fetch_data.
perform merge_data_kna1.
*INCLUDE Z9BT_SH_***4_FORMS.
call function 'OPEN_FORM'
exporting
* APPLICATION = 'TX'
* ARCHIVE_INDEX =
* ARCHIVE_PARAMS =
device = 'PRINTER'
* DIALOG = 'X'
* FORM = ' '
language = sy-langu
* OPTIONS =
* MAIL_SENDER =
* MAIL_RECIPIENT =
* MAIL_APPL_OBJECT =
* RAW_DATA_INTERFACE = '*'
* SPONUMIV =
* IMPORTING
* LANGUAGE =
* NEW_ARCHIVE_PARAMS =
* RESULT =
exceptions
canceled = 1
device = 2
form = 3
options = 4
unclosed = 5
mail_options = 6
archive_error = 7
invalid_fax_number = 8
more_params_needed_in_batch = 9
spool_error = 10
codepage = 11
others = 12
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
sort it_final by vbeln.
loop at it_final into wa_final.
call function 'START_FORM'
exporting
* ARCHIVE_INDEX =
form = 'Z9BT_DELIVERY'
language = sy-langu
* STARTPAGE = ' '
* PROGRAM = ' '
* MAIL_APPL_OBJECT =
* IMPORTING
* LANGUAGE =
exceptions
form = 1
format = 2
unended = 3
unopened = 4
unused = 5
spool_error = 6
codepage = 7
others = 8
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 'WRITE_FORM'
exporting
element = 'ITEM_LIST'
function = 'SET'
type = 'BODY'
window = 'MAIN'
* IMPORTING
* PENDING_LINES =
* EXCEPTIONS
* ELEMENT = 1
* FUNCTION = 2
* TYPE = 3
* UNOPENED = 4
* UNSTARTED = 5
* WINDOW = 6
* BAD_PAGEFORMAT_FOR_PRINT = 7
* SPOOL_ERROR = 8
* CODEPAGE = 9
* OTHERS = 10
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 'END_FORM'
* IMPORTING
* RESULT =
exceptions
unopened = 1
bad_pageformat_for_print = 2
spool_error = 3
codepage = 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.
endloop.
call function 'CLOSE_FORM'
* IMPORTING
* RESULT =
* RDI_RESULT =
* TABLES
* OTFDATA =
exceptions
unopened = 1
bad_pageformat_for_print = 2
send_error = 3
spool_error = 4
codepage = 5
others = 6
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
*& Form VALIDATE_DATA
* text
* --> p1 text
* <-- p2 text
form validate_data .
select single vbeln into wa_likp-vbeln
from likp where vbeln in s_vbeln.
append wa_likp to it_likp.
if sy-subrc <> 0.
flag = 1.
endif.
endform. " VALIDATE_DATA
*& Form FETCH_DATA
* text
* --> p1 text
* <-- p2 text
form fetch_data .
select a~vbeln
a~erdat
a~kunnr
a~kunag
a~traty
b~vbeln
b~posnr
b~matnr
b~arktx
b~lfimg
b~netpr
b~vgbel
c~vbeln
c~parvw
c~kunnr
into table it_li_vbpa
from likp as a
left outer join lips as b on a~vbeln = b~vbeln
inner join vbpa as c on b~vgbel = c~vbeln
where a~vbeln in s_vbeln and
c~parvw = 'RE'.
endform. " FETCH_DATA
*& Form MERGE_DATA_KNA1
* text
* --> p1 text
* <-- p2 text
form merge_data_kna1 .
if it_li_vbpa[] is not initial.
it_li_vbpa_temp[] = it_li_vbpa[].
sort it_li_vbpa_temp by kunnr.
delete adjacent duplicates from it_li_vbpa_temp comparing kunnr.
loop at it_li_vbpa into wa_li_vbpa.
read table it_li_vbpa_temp into wa_li_vbpa_temp with key kunnr =
wa_li_vbpa-kunag.
if sy-subrc <> 0.
wa_li_vbpa_temp = wa_li_vbpa.
append wa_li_vbpa_temp to it_li_vbpa_temp.
endif.
read table it_li_vbpa_temp into wa_li_vbpa_temp with key kunnr =
wa_li_vbpa-kunnrb.
if sy-subrc <> 0.
wa_li_vbpa_temp = wa_li_vbpa.
append wa_li_vbpa_temp to it_li_vbpa_temp.
endif.
endloop.
endif.
if it_li_vbpa_temp[] is not initial.
select kunnr
name1
ort01
adrnr into table it_kna1 from kna1
for all entries in it_li_vbpa_temp
where kunnr = it_li_vbpa_temp-kunnr.
endif.
loop at it_li_vbpa into wa_li_vbpa .
wa_final-vbeln = wa_li_vbpa-vbeln.
wa_final-erdat = wa_li_vbpa-erdat.
*it_final-LFART = it_li_vbpa-LFART.
wa_final-kunnr = wa_li_vbpa-kunnr.
wa_final-kunag = wa_li_vbpa-kunag.
*it_final-VSTEL = it_li_vbpa-VSTEL.
wa_final-traty = wa_li_vbpa-traty.
wa_final-vbeln1 = wa_li_vbpa-vbeln.
wa_final-posnr = wa_li_vbpa-posnr.
wa_final-matnr = wa_li_vbpa-matnr.
wa_final-arktx = wa_li_vbpa-arktx.
wa_final-lfimg = wa_li_vbpa-lfimg.
wa_final-netpr = wa_li_vbpa-netpr.
*wa_final-GEWEI = it_li_vbpa-GEWEI.
*it_final-VOLUM = it_li_vbpa-VOLUM.
*it_final-VOLEH = it_li_vbpa-VOLEH.
wa_final-vgbel = wa_li_vbpa-vgbel.
wa_final-vbeln3 = wa_li_vbpa-vbeln.
*wa_final-PARVW = wa_li_vbpa-PARVW.
wa_final-kunnrb = wa_li_vbpa-kunnrb.
read table it_kna1 into wa_kna1 with key kunnr = wa_li_vbpa-kunnr.
if sy-subrc = 0.
wa_final-name1 = wa_kna1-name1.
wa_final-ort01 = wa_kna1-ort01.
wa_final-adrnr1 = wa_kna1-adrnr.
endif.
read table it_kna1 into wa_kna1 with key kunnr = wa_li_vbpa-kunag.
if sy-subrc = 0.
wa_final-name2 = wa_kna1-name1.
wa_final-ort02 = wa_kna1-ort01.
wa_final-adrnr2 = wa_kna1-adrnr.
endif.
read table it_kna1 into wa_kna1 with key kunnr = wa_li_vbpa-kunnrb.
if sy-subrc = 0.
wa_final-name3 = wa_kna1-name1.
wa_final-ort03 = wa_kna1-ort01.
wa_final-adrnr3 = wa_kna1-adrnr.
endif.
append wa_final to it_final.
clear wa_final.
endloop.
endform. -
I have an ipad mini. From one moment to another a document that was created and used on pages app ( on the ipad mini) does not want to open ( When pressed it states " document cant be opened). How can I make this document open again?
I have tried back ups and restoring, resetting, and even updating the pages app. And nothing has worked.I have an ipad mini. From one moment to another a document that was created and used on pages app ( on the ipad mini) does not want to open ( When pressed it states " document cant be opened). How can I make this document open again?
I have tried back ups and restoring, resetting, and even updating the pages app. And nothing has worked. -
How can I re-arrange the pages in a Pages document now?? I used to be able to click on the thumbnails and shift their position which is important in creating documents. Any ideas?
This feature has been removed from Pages 5 along with over 90 others:
http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&mforum=iworktipsn trick
Pages '09 is still in your Applications/iWork folder.
Trash/archive Pages 5 and rate/review it in the App Store.
Peter -
Creating a new document using XQuery
Hello everyone,
I wondered if there was a way to create a new document using XQuery. What I am trying to do is to run a query on XML file and try to print the results in HTML for viewing purpose.
The HTML is spitted out on DOS prompt. Instead I wanted to write that HTML to a file on disk. Is this possible with the XQuery tools provided by Oracle?
Thanks in advance for all the help
KFolks,
Kinda answering to my question. Just send the DOS output to some file. Pretty Simple huh!
Thankyou anyways
K -
Error while creating billing document using VF04 transaction
Hi All,
User is trying to create billing document using VF04 with ference to delivery number. When pressing save in invoice creation system SAP gives invoice document number (No accouting document generated). but no documents are actually created. When user trying for second time log is showing this sales order is currently processed by the user(user is same who is trying to create invoice)
Please let us know what is causing this issue since this issue is happening in production and we can not debug this.
We checked for number range also but its not.
Waiting for your inputs.
Regards,
Jyothi CH.When pressing save in invoice creation system
SAP gives invoice document number (No accouting document generated).
but no documents are actually created
Check there is any clash with internal number range of billing type vs other billing types ?
Try to create billing document using VF01,see any messages were poping while saving ?
Check for abap dump in ST22 ?
Edited by: Jeyakanthan A on Feb 9, 2011 9:52 PM -
I am using Pages 4.3. I created a Document using Pages 4.3 that is 280 MB (it is 350 pages long). Will I be able to open it in Pages 5.0?
Hi,
WARNING
it´s impossible (for me) to open Pages 5 documents in Pages 4, which is absolutely no go. You can open any f..... word.doc but no pages 4.
Apple is getting worser every day, it´s a shame. There is no information about this before you buy it.
So now you have to ask your friends or colleagues to convert a pages 5 document to a word document, so you can open it with pages 4. Hoiw ridiculous is that?
Pages 5 is a joke. In 5.0 they forgot to manage the task-bar, which came shortly after 4 weeks or so in 5.1.
The only good: you can run ist parallelly to pages 4.3 but it´s not worth the money.
APPLE MAKE A BETTER JOB -
Create Sales Order With Reference to Billing Document Using BAPI_SALESORDER
Hi,
How can i create a sales order With Reference to Billing Document Using BAPI_SALESORDER_CREATEFROMDAT2?
Thanks in advance,
Alejandro.I have to create sales order with reference to existing billing document. I have tried to following bapis.
1. BAPI_SALESORDER_CREATEed
I have successfully created document with following details.
-->ORDER_HEADER_IN:
DOC_TYPE = ZRK
SALES_ORG = 3000
DISTR_CHAN = 00
DIVISION = 00
ORD_REASON = 100
SD_DOC_CAT = L
CURRENCY = EUR
REF_DOC = 100000028
REF_DOC_CA = M
-->ORDER_ITEMS_IN:
ITM_NUMBER = 000010
MATERIAL = 701791
TARGET_QTY = 0000000001000
CURRENCY = EUR
REF_DOC = 100000028
REF_DOC_CA = M
-->ORDER_PARTNERS:
PARTN_ROLE = SP
PARTN_NUMB = W12001
COUNTRY = NL
by providing this input i am able to create the document but it is not picking up the net value. so i have passed some extra paramters in ORDER_ITEMS_IN
COND_TYPE = PNET
COND_VALUE = 14,56
COND_D_UNT = PC.
folowing error is occured: Condition PNET is missing in pricing procedure A V Z0000.
is it something related to configuration problem?
2.BAPI_SALESORDER_CREATEFROMDAT1 or BAPI_SALESORDER_CREATEFROMDAT2
I have used same test data that is used for BAPI_SALESORDER_CREATEFROMDATA (where in i coudl succefully create doc). but here i encounterd following error.
Unpermitted combination of business object BUS2032 and sales doc. category L. -
Dear Experts,
My scenario is:
We have batch split scenario, where the parent line item of billing document has 0 quantity and its subsequent item (item with batch number) holds actual quantity data.
When we create billing document using VF01 against delivery document, system creates billing document along with excise invoice document (J1IIN Document). And in excise document contain same number of line items that of billing document. Please see the below attachment:
Biiling document screen shot:
While creating billing document, the J1IIN Document created automatically. Below is the screen-shot for the same.
Now the issue is:
When we create billing document using BAPI: BAPI_BILLINGDOC_CREATEMULTIPLE system creating only billing document and not creating excise invoice document.
When we create excise document manually using J1IIN the zero quantity line items are excluded in excise invoice document.
Please see the below screen-shot for the same; The z quantity line items are missing.
We want excise document to be created while creating billing document using BAPI BAPI_BILLINGDOC_CREATEMULTIPLE. Or is there any other BAPI for the same purpose.
Customization is also maintained for creating excise invoice document automatically.
Regards,
Rajesh Sadula.HI
Pricing will be carried basing on the pricing
procedure.
Case1: Prices will be carried out automatically if
necessary condition records are maintained for the
condition type.
For this you can go to Sales Order-> Item Conditions
In the screen you can click on command button Analysis,
which gives you the list of condition types associated
to the pricing procedure. By clicking on the condition
type you can know the action that has taken place.
Case2: Manually forcing prices for Items.
To do this, you have to populate ORDER_CONDITIONS_IN &
ORDER_CONDITIONS_INX. Also note to identify the item
numbers, you manually pass the item number for each item
in the sales order, use the same item number for
populating conditions.
Parameters required:
ORDER_CONDITIONS_IN:
ITM_NUMBER, COND_TYPE, COND_VALUE, CURRENCY
ORDER_CONDITIONS_INX:
ITM_NUMBER, COND_TYPE, UPDATEFLAG, COND_VALUE,CURRENCY.
Hope the above info helps you. Do revert back if you
need more info.
Kind Regards
Eswar
Maybe you are looking for
-
How do I add links to my buttons?
Hi, I am new to the Flash platform, but have some Dreamweaver experience......I have designed a page with a top logo and a horizontal and a verticle menubar. I went to test it and it all works fineas far hover colors, hit etc..... Now I need to make
-
Varying font size based on information entered in a field
Please let me know if there is a way to adjust the font on a fillable field so that whatever is keyed in the field will fit. We can do this in Word with autofit and were hoping that there was a way to do this in Acrobat. We are using Acrobat Pro 7, b
-
Can not use FN+F6/F7 to set screen brightness on my Tecra M2
Hello!! I bought laptop Tecra M2 but when I format it with Windows XP SP2 the keys FN+F7/F6 doesn't Active For Display Screen Quality and I formatted it Appliance Please I want responses.
-
Strange things happen: mail disappears/appears/is shown wrong
Strange things happen: mail appears in "drafts"/mail disappears after "send"/title-content doesn't match I'm having some Problems with mails that get worse and worse First thing I remember is, that I found mails in "Drafts" that weren't drafts, but j
-
No video after Flash 8 Video Encoder
I have read some other posts and although they are similar, none of the solutions posted helps me fix my specific issue. Using Flash 8 on Windows XP Pro SP2, I have a MPEG-2 file. I can play the MPEG file using Windows Media Player 11 and RealPlayer