Regarding Collective Documents
Dear All,
I have to create One Commercial Invoice with reference to more than one order, how it is possible.Also PO nos are differents.
Also i have to create one order with reference to more than one quotations.
one Invoice with reference to One or more Delivery.
Plz send soluntion.
Award pts for useful answers.
Thx & Regards,
Pankaj
Hi
You can create One order with many quotations.First create the order with reference to Quotation.In sales order screen again create with reference to quotation,the item will added in the sales order.
For Creating one Invoice with reference to one or more delivery the below are prerequisite. All the below should be same.
payer
billing date
payment terms
Use T-code VF04 and select the invoices and execute the collective document this will combine the delivery documents into one invoice.Hope this will clear your doubts to certain extent
Regards
Ramesh
Similar Messages
-
Issue in WAD 7.0 regarding opening document from MIME repository
Hi Experts,
I am facing an issue in WAD 7.0 regarding opening document from MIME repository..
My requirement
I want to have a button , on clicking of this button one excel file ( already located at MIME Repository) should open in a new window.
To achieve the same, I have added one button. and also added one java script web item in my web template.
And as per my understanding, I need to write command/code in the script web item.
I have tried with several standard commands available, but not yet succeeded.
Please suggest the appropriate command or code , that I can put into the java script web item.
Also please provide me, if there is any other solution.
Thanks and Regards,I think you might be posted in the frong forum, what is WAD 7?
this forum is for WebIntelligence related questions, part of Business Objects software suite. -
WAD 7.0 issue regarding opening document from MIME repository
Hi Experts,
I am facing an issue in WAD 7.0 regarding opening document from MIME repository..
My requirement
I want to have a button , on clicking of this button one excel file ( already located at MIME Repository) should open in a new window.
To achieve the same, I have added one button. and also added one java script web item in my web template.
And as per my understanding, I need to write command/code in the script web item.
I have tried with several standard commands available, but not yet succeeded.
Please suggest the appropriate command or code , that I can put into the java script web item.
Also please provide me, if there is any other solution.
Thanks and Regards,
Biswarup GhoshYes I tried it at first with Script Item but it did not work. I am not sure how should I change the path because of the portal:
"/sap/bw/Mime/Customer/.../file.htm" - this path is not working anymore
Another option that you mentioned I do not want to use. I have about 20 different html files in MIME repository so I would have to create 20 different web application. I do not like this solution.
Regards
Erwin -
This is regarding appaisal document.
Hi
This question is regarding Appraisal document. On clicking a pushbutton in portal, a new outlook compose email should popup with Subject line and PDF attachment populated in the email fields. Once it gets popup with these things populated then the user can send it to who ever he wants by typing the recepient in the TO section of the email.
We were suggested to implement a BADI to this. The name of the defination is HRHAP00_LINK. There is a method called show_link. Inside this method we have pasted the below code.
METHOD if_ex_hrhap00_link~show_link.
DATA : lw_header_appraiser TYPE hap_s_header_appraiser,
lw_header_appraisee TYPE hap_s_header_appraisee,
lt_header_appraisee TYPE hap_t_header_appraisee,
lw_header_others TYPE hap_s_header_others.
DATA : name TYPE text40.
*Check if appraiser then only mail window gets trigger with icon.
READ TABLE t_header_appraiser INTO lw_header_appraiser INDEX 1.
IF sy-subrc = 0.
*To get appraisee name
CALL FUNCTION 'HRHAP_DOCUMENT_GET_DETAIL'
EXPORTING
ADD_ON_APPLICATION =
MODE = ' '
UI_MODE = ' '
plan_version = plan_version
s_appraisal_id = s_appraisal_id
IMPORTING
t_header_appraisee = lt_header_appraisee
DATA : s_pdf_document TYPE hap_s_pdf_document,
pdf_xstring TYPE fpcontent,
t_output TYPE tsfixml,
output_length TYPE i,
pdf_content TYPE solix_tab,
lp_pdf_size TYPE so_obj_len,
document TYPE REF TO cl_document_bcs,
send_request TYPE REF TO cl_bcs.
S_RETURN TYPE BAL_S_MSG.
s_pdf_document-s_appraisal_id-appraisal_id = s_appraisal_id.
DATA: test TYPE REF TO cl_im_hrhap00_offline01.
CREATE OBJECT test.
CALL METHOD test->if_ex_hrhap00_offline~download
EXPORTING
flt_val = 'STANDARD'
s_pdf_document = s_pdf_document
IMPORTING
t_output = t_output
pdf_xstring = pdf_xstring
output_length = output_length
s_return = S_RETURN
IF sy-subrc = 0.
ENDIF.
send_request = cl_bcs=>create_persistent( ).
get PDF xstring and convert it to BCS format
lp_pdf_size = XSTRLEN( pdf_xstring ).
pdf_content = cl_document_bcs=>xstring_to_solix(
ip_xstring = pdf_xstring ).
document = cl_document_bcs=>create_document(
i_type = 'PDF'
i_hex = pdf_content
i_length = lp_pdf_size
i_subject = 'test created to send mail' ).
add document to send request
send_request->set_document( document ).
LOOP AT lt_header_appraisee INTO lw_header_appraisee.
name = lw_header_appraisee-name.
Function module to get a new outlook mail window
Attachment cannot be exported without path
CALL FUNCTION 'ZS_REFLEX_REVIEWER'
EXPORTING
appraisee_name = name
attachment = 'D:\Documents and Settings\id823291\Desktop\test.txt'. "c:\temp\test.txt' "c:\temp|test.txt is only for test
ENDLOOP.
ENDIF.
COMMIT WORK.
READ TABLE t_header_appraisee INTO lw_header_appraisee INDEX 1.
IF sy-subrc = 0.
EXIT.
ENDIF.
READ TABLE t_header_others INTO lw_header_others INDEX 1.
IF sy-subrc = 0.
EXIT.
ENDIF.
ENDMETHOD.
In the Z FM the code is as follows :
FUNCTION ZS_REFLEX_REVIEWER.
""Local Interface:
*" IMPORTING
*" VALUE(APPRAISEE_NAME) TYPE TEXT40
*" VALUE(ATTACHMENT) TYPE TEXT_72
INCLUDE : OLE2INCL.
DATA: OUT TYPE OLE2_OBJECT,
OUTMAIL TYPE OLE2_OBJECT,
DESTI TYPE OLE2_OBJECT,
ATT TYPE OLE2_OBJECT,
ATTS TYPE OLE2_OBJECT.
DATA : Name1 type text40,
Name2 type text40,
subject type string.
Name1 = 'Evaluation input requested for'.
Name2 = APPRAISEE_NAME.
Concatenate Name1 Name2 into subject separated by ' '.
CREATE OBJECT OUT 'Outlook.Application'.
CALL METHOD OF OUT 'CREATEITEM' = OUTMAIL EXPORTING #1 = 0.
SET PROPERTY OF OUTMAIL 'SUBJECT' = subject.
CALL METHOD OF OUTMAIL 'RECIPIENTS' = DESTI.
CALL METHOD OF OUTMAIL 'ATTACHMENTS' = ATTS.
CALL METHOD OF ATTS 'ADD' EXPORTING #1 = ATTACHMENT .
CALL METHOD OF OUTMAIL 'DISPLAY'.
free object out.
CLEAR : Name1,Name2,subject,APPRAISEE_NAME.
ENDFUNCTION.
Earlier we thought that the PDF would be stored in a link but now we are informed that it would be generated at Runtime.
Please let me know how to proceed.
Thanks
sandeepHi
This question is regarding Appraisal document. On clicking a pushbutton in portal, a new outlook compose email should popup with Subject line and PDF attachment populated in the email fields. Once it gets popup with these things populated then the user can send it to who ever he wants by typing the recepient in the TO section of the email.
We were suggested to implement a BADI to this. The name of the defination is HRHAP00_LINK. There is a method called show_link. Inside this method we have pasted the below code.
METHOD if_ex_hrhap00_link~show_link.
DATA : lw_header_appraiser TYPE hap_s_header_appraiser,
lw_header_appraisee TYPE hap_s_header_appraisee,
lt_header_appraisee TYPE hap_t_header_appraisee,
lw_header_others TYPE hap_s_header_others.
DATA : name TYPE text40.
*Check if appraiser then only mail window gets trigger with icon.
READ TABLE t_header_appraiser INTO lw_header_appraiser INDEX 1.
IF sy-subrc = 0.
*To get appraisee name
CALL FUNCTION 'HRHAP_DOCUMENT_GET_DETAIL'
EXPORTING
ADD_ON_APPLICATION =
MODE = ' '
UI_MODE = ' '
plan_version = plan_version
s_appraisal_id = s_appraisal_id
IMPORTING
t_header_appraisee = lt_header_appraisee
DATA : s_pdf_document TYPE hap_s_pdf_document,
pdf_xstring TYPE fpcontent,
t_output TYPE tsfixml,
output_length TYPE i,
pdf_content TYPE solix_tab,
lp_pdf_size TYPE so_obj_len,
document TYPE REF TO cl_document_bcs,
send_request TYPE REF TO cl_bcs.
S_RETURN TYPE BAL_S_MSG.
s_pdf_document-s_appraisal_id-appraisal_id = s_appraisal_id.
DATA: test TYPE REF TO cl_im_hrhap00_offline01.
CREATE OBJECT test.
CALL METHOD test->if_ex_hrhap00_offline~download
EXPORTING
flt_val = 'STANDARD'
s_pdf_document = s_pdf_document
IMPORTING
t_output = t_output
pdf_xstring = pdf_xstring
output_length = output_length
s_return = S_RETURN
IF sy-subrc = 0.
ENDIF.
send_request = cl_bcs=>create_persistent( ).
get PDF xstring and convert it to BCS format
lp_pdf_size = XSTRLEN( pdf_xstring ).
pdf_content = cl_document_bcs=>xstring_to_solix(
ip_xstring = pdf_xstring ).
document = cl_document_bcs=>create_document(
i_type = 'PDF'
i_hex = pdf_content
i_length = lp_pdf_size
i_subject = 'test created to send mail' ).
add document to send request
send_request->set_document( document ).
LOOP AT lt_header_appraisee INTO lw_header_appraisee.
name = lw_header_appraisee-name.
Function module to get a new outlook mail window
Attachment cannot be exported without path
CALL FUNCTION 'ZS_REFLEX_REVIEWER'
EXPORTING
appraisee_name = name
attachment = 'D:\Documents and Settings\id823291\Desktop\test.txt'. "c:\temp\test.txt' "c:\temp|test.txt is only for test
ENDLOOP.
ENDIF.
COMMIT WORK.
READ TABLE t_header_appraisee INTO lw_header_appraisee INDEX 1.
IF sy-subrc = 0.
EXIT.
ENDIF.
READ TABLE t_header_others INTO lw_header_others INDEX 1.
IF sy-subrc = 0.
EXIT.
ENDIF.
ENDMETHOD.
In the Z FM the code is as follows :
FUNCTION ZS_REFLEX_REVIEWER.
""Local Interface:
*" IMPORTING
*" VALUE(APPRAISEE_NAME) TYPE TEXT40
*" VALUE(ATTACHMENT) TYPE TEXT_72
INCLUDE : OLE2INCL.
DATA: OUT TYPE OLE2_OBJECT,
OUTMAIL TYPE OLE2_OBJECT,
DESTI TYPE OLE2_OBJECT,
ATT TYPE OLE2_OBJECT,
ATTS TYPE OLE2_OBJECT.
DATA : Name1 type text40,
Name2 type text40,
subject type string.
Name1 = 'Evaluation input requested for'.
Name2 = APPRAISEE_NAME.
Concatenate Name1 Name2 into subject separated by ' '.
CREATE OBJECT OUT 'Outlook.Application'.
CALL METHOD OF OUT 'CREATEITEM' = OUTMAIL EXPORTING #1 = 0.
SET PROPERTY OF OUTMAIL 'SUBJECT' = subject.
CALL METHOD OF OUTMAIL 'RECIPIENTS' = DESTI.
CALL METHOD OF OUTMAIL 'ATTACHMENTS' = ATTS.
CALL METHOD OF ATTS 'ADD' EXPORTING #1 = ATTACHMENT .
CALL METHOD OF OUTMAIL 'DISPLAY'.
free object out.
CLEAR : Name1,Name2,subject,APPRAISEE_NAME.
ENDFUNCTION.
Earlier we thought that the PDF would be stored in a link but now we are informed that it would be generated at Runtime.
Please let me know how to proceed.
Thanks
sandeep -
Regarding : Material document data and PO data do not match (Plant)
Hi Gurus,
Please go through this BAPI program.
While uploading it is giving an error ' Material document data and PO data do not match (Plant) '.
Please help regarding this issue.For all Other moment types it is working fine except this 351 moment type.
dATA: i_excel TYPE truxs_t_text_data. "work table for excel upload
DATA: BEGIN OF it_itab OCCURS 100,
docdate(10),
postdate(10),
mvt_type(3), "Movement Type
plant(4), "Plant
lgort(4),
pur_doc(10), "Purchase Document No
po_item(3), "Purchase Document Item No
material(18), "Material Number
delnote(16),
erfmg(13),
uom(3),
lfmng(13), "Quantity
batch(10) TYPE c,
vfdat TYPE vfdat,
END OF it_itab.
DATA: it_goodsmvt_head TYPE TABLE OF bapi2017_gm_head_01 INITIAL SIZE 100,
it_goodsmvt_code TYPE TABLE OF bapi2017_gm_code INITIAL SIZE 100,
it_goodsmvt_item TYPE TABLE OF bapi2017_gm_item_create INITIAL SIZE 100.
DATA: wa_goodsmvt_head LIKE LINE OF it_goodsmvt_head,
wa_goodsmvt_code LIKE LINE OF it_goodsmvt_code,
wa_goodsmvt_item LIKE LINE OF it_goodsmvt_item.
DATA: w_mat_doc TYPE bapi2017_gm_head_ret-mat_doc,
w_year TYPE bapi2017_gm_head_ret-doc_year.
DATA: BEGIN OF it_errmsg_goodsmvt OCCURS 10.
INCLUDE STRUCTURE bapiret2.
DATA: END OF it_errmsg_goodsmvt.
DATA : obj_type LIKE bapiache09-obj_type,
obj_key LIKE bapiache09-obj_key,
obj_sys LIKE bapiache09-obj_sys.
DATA: v_date1 TYPE sy-datum.
DATA: v_date2 TYPE sy-datum.
DATA: w_lines TYPE i.
DATA: errflag.
SELECTION-SCREEN BEGIN OF BLOCK bk1 WITH FRAME TITLE text-100.
PARAMETERS: p_file TYPE rlgrap-filename.
SELECTION-SCREEN END OF BLOCK bk1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
field_name = 'P_FILE'
IMPORTING
file_name = p_file.
Start-of-selection processing
START-OF-SELECTION.
CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
EXPORTING
i_line_header = 'X'
i_tab_raw_data = i_excel
i_filename = p_file
TABLES
i_tab_converted_data = it_itab[]
EXCEPTIONS
conversion_failed = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
LOOP AT it_itab.
REFRESH it_goodsmvt_head.
REFRESH it_goodsmvt_item.
CONCATENATE it_itab-docdate6(4) it_itab-docdate3(2) it_itab-docdate+0(2) INTO v_date1.
CONCATENATE it_itab-postdate6(4) it_itab-postdate3(2) it_itab-postdate+0(2) INTO v_date2.
wa_goodsmvt_head-pstng_date = v_date2.
wa_goodsmvt_head-doc_date = v_date1.
wa_goodsmvt_head-ref_doc_no = it_itab-delnote.
wa_goodsmvt_head-pr_uname = sy-uname.
APPEND wa_goodsmvt_head TO it_goodsmvt_head.
Maintain it_goodsmvt_code
wa_goodsmvt_code-gm_code = '04'.
Maintain it_goodsmvt_item
*LOOP AT it_itab.
IF wa_goodsmvt_item-po_number IS INITIAL.
wa_goodsmvt_item-po_number = it_itab-pur_doc.
wa_goodsmvt_item-move_type = it_itab-mvt_type.
wa_goodsmvt_item-MOVE_PLANT = it_itab-plant.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = it_itab-material
IMPORTING
output = it_itab-material.
wa_goodsmvt_item-material = it_itab-material.
wa_goodsmvt_item-stge_loc = it_itab-lgort.
wa_goodsmvt_item-po_item = it_itab-po_item.
wa_goodsmvt_item-entry_qnt = it_itab-erfmg.
wa_goodsmvt_item-ENTRY_UOM_ISO = it_itab-uom.
wa_goodsmvt_item-po_pr_qnt = it_itab-lfmng.
wa_goodsmvt_item-batch = it_itab-batch.
wa_goodsmvt_item-expirydate = it_itab-vfdat.
wa_goodsmvt_item-NO_MORE_GR = 'X'.
wa_goodsmvt_item-mvt_ind = 'B'.
APPEND wa_goodsmvt_item TO it_goodsmvt_item.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = wa_goodsmvt_head
goodsmvt_code = wa_goodsmvt_code
IMPORTING
materialdocument = w_mat_doc
TABLES
goodsmvt_item = it_goodsmvt_item
return = it_errmsg_goodsmvt.
Process of commit work
IF it_goodsmvt_head[] IS NOT INITIAL.
DESCRIBE TABLE it_goodsmvt_head LINES w_lines.
ENDIF.
IF it_goodsmvt_item[] IS NOT INITIAL.
DESCRIBE TABLE it_goodsmvt_item LINES w_lines.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
IMPORTING
RETURN =
CLEAR errflag.
READ TABLE it_errmsg_goodsmvt INDEX 1.
IF it_errmsg_goodsmvt-type EQ 'E'.
WRITE:/'Error in function', it_errmsg_goodsmvt-message.
errflag = 'X'.
ELSE.
WRITE:/ it_errmsg_goodsmvt-message.
ENDIF.
IF errflag IS INITIAL.
COMMIT WORK AND WAIT.
IF sy-subrc NE 0.
WRITE:/ 'Error in updating'.
EXIT.
ELSE.
WRITE:/ 'Material Document created successfully and the Document Number for the Material',
wa_goodsmvt_item-material,'is:', w_mat_doc, w_year.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.Hey,
Just wanted to post that in my case this was the error of MVT_IND field in item table. When I made it from 'B' to blank then it worked.
Mine is solved....
Thanks -
Hi Guys,
Does any one has material or link regarding SAP Workflows ? please can you send the documents to the given mail id.
[email protected]
Points will be rewarded.
Thanks,
SachinHello
SAP workflow is basically used to define roles, tasks and responsibilities in an organization. you can go through the transaction pfac, pftc for roles and responsibilitues defininig and ppoc for definingand assigning roles to employees ni an organization.
. This becomes handy when a request has to pass through some approval then you can define workflow to route a request to various persons. In case an errorr occurs a workflow item is sent to responsibele person and to all persons who are identified for those roles. The flowflow items generated can be executed and you will know cause of errorr then remove it and start process again.
For SAP objects go to transaction SWO1 and give objects as IDOC, IDOCTYPE, IDOCPKT and you will see attributes, methods,events defines for all workflow objects. attributes represents properties, methods are actually code for processing the task and events are programs which are triggered in case when a error occurs in a workflow item.
Regards,
Amit
Please reward any help
For details refer to below
You can refer to the links
http://searchsap.techtarget.com/bestWebLinks/0,289521,sid21_tax283318,00.html
http://help.sap.com/saphelp_46c/helpdata/ru/c5/e4a930453d11d189430000e829fbbd/content.htm
http://www.insightcp.com/res_23.htm
Regards,
Amit
Please reward any help
Message was edited by: amit bhadauria -
Regarding Performance documents
hai
my project is in Integration testing phase . From monday , performance testing is going on.... .
So i need some performance testing documents for knowing about performance testing in testing phase .
So please send to my mail-id [email protected] or tell me immediately please
byeHi,
try to refer to these oss notes
130253 and 417307
Also try the BW Performance Tuning Knowledge Center
Business Intelligence Performance Tuning [original link is broken]
Hope it helps....let me know
Regards,
RV. -
Regarding Invoice document attachment -VF03
Hello friends..
when I go to transaction vf03. In some invoice documents I am getting the preview of the document attached to that document.the attachemnt you can see in attachment list of 'Service for Object'. does anybody have idea about this whether it is done manually or it is done automically on the time of firing output. if there is no attachment the attachment list is not enabled.
<> <b>VF03 --> enter documnet number --> change or display document --> System --> Service for Object -- > Attachment List</b> <>
Could anybody help me out for this. is there any setting regarding the attachment.
Thanks in Advance
Dinesh goyal
P.S. : Helpful answers will be rewarded with gud points...
Message was edited by:
Dinesh GoyalYes after opeining the document...
Hello friends..
when I go to transaction vf03. In some invoice documents I am getting the preview of the document attached to that document.the attachemnt you can see in attachment list of 'Service for Object'. does anybody have idea about this whether it is done manually or it is done automically on the time of firing output. if there is no attachment the attachment list is not enabled.
<> VF03 --> enter documnet number --> change or display doc -->System --> Service for Object -- > Attachment List <>
Could anybody help me out for this. is there any setting regarding the attachment.
Thanks in Advance
Dinesh goyal
P.S. : Helpful answers will be rewarded with gud points... -
Doubt Regarding Collection Methods
Hello,
I am working on Oracle version 10g Release 2
I wanted to know that how can we find a particular name (person) exists in a Collection..
Below is my Code
DECLARE
TYPE nested_tab IS TABLE OF VARCHAR2(100);
l_tab nested_tab := nested_tab();
BEGIN
SELECT e.ent_id BULK COLLECT INTO l_tab
FROM entity_master e
WHERE e.ent_id IN ('N002208', 'Z002011', 'V002313', 'X002011'..... & so on);
IF l_tab.EXISTS('N002208') THEN
dbms_output.put_line('element exists');
ELSE
dbms_output.put_line('NO element ');
END IF;
END;
ORA-06502 - Numeruc or Value Error
what can be the work around for this...?Aijaz Mallick wrote:
Ok.
But It would be really helpfull if you Elaborate this Example a Bit...
I mean the I/O part because Quering table also Require I/OANY data that you need to access (in any computer system and language) requires I/O. That data needs to be read from disk (PIO or physical I/O) or buffer cache (LIO or logical I/O) and processed.
So the important part is optimising I/O. If you only need 1MB of data from a 100GB data structure, you do not want to I/O that entire data structure to find that 1MB of data that is relevant to your code.
The answer to this is three fold.
Firstly, you design that data structure optimally. In databases, that means a proper and sound relational database model.
Secondly, you implement that data structure optimally. In databases, that means using the most appropriate physical data model for storing that relational data model. Using the features like indexing, partitioning, index organised tables, and so on.
Lastly, in some cases your requirements will require scanning a large volume of that data structure. Which means that there is no option but to use a lot of I/O. In such a case, parallelising that I/O is important. I/O has inherent latency. Which means idle time for your code, waiting for data to arrive from the I/O system. Parallel processing enables one to address this and increase performance and scalability.
So what do you need to do with your "large" table?
- make sure it is correctly modelled at a logical data model level
- make sure it is optimally implemented physically in Oracle, making best use of the features that the Oracle RDBMS provide
- when your code has to deal with large volumes of data, design and code for parallel processing
& how about Java Part. ..?Java is worse than PL/SQL in this regard as the data path for data to travel from the database layer into Java is longer and slower than the same path to PL/SQL.
Storing/caching that data in the application layer is an attempt to address the cost of this data path. But this is problematic. If another application makes a change to data in the database, the cached data in the application tier is stale - and incorrect. Without the application layer knowing about it.
Storing/caching that data in the application layer means a bigger and more expensive h/w footprint for the application layer. It means that scaling also requires a cluster cache in the application layer to address scalability when more application servers are added. This is complex. And now reintroduce a data path that runs over the network and across h/w boundaries. Which is identical to the data path that existed between the database layer and application layer in the first place.
It also makes the border between the database layer and application layer quite complex as caching data in the application layer means that basic database features are now also required in the application layer. It is an architectural mess. Contains complex moving parts. Contains a lot more moving parts.
None of this is good for robustness or performance or scalability. Definitely not for infrastructure costs, development costs,and support and maintenance costs, either.
In other words, and bluntly put. It is the idiotic thing to do. Unfortunately it is also the typical thing done by many J2EE architects and developers as they have a dangerous and huge lack of knowledge when it comes to how to use databases. -
Regarding collect statement - Production report
Dear Experts,
I've the following requirement
A ) I'm creating a ALV report from Z table where i want the summary of the qty across different processing type like CT , ST , WS & FG .
B ) For each processing types i want the total qty to be displayed in different columns.
C ) When i'm trying to execute , no data is displaying..
Piece of coding is as below.. Request help to clear the below issue..
REPORT ZPP_PRD_REPORT.
TABLES : ZPP_ACTUAL_PRD.
TYPES : BEGIN OF TY_ACTUAL_PRD,
KDAUF TYPE KDAUF,
KDPOS TYPE KDPOS,
WERKS TYPE WERKS_D,
PROCTYP TYPE ZDE_PP_PROCTYP,
AUFNR TYPE AUFNR,
MEINS TYPE MEINS,
END OF TY_ACTUAL_PRD.
TYPES : BEGIN OF TY_FINAL,
KDAUF TYPE KDAUF,
KDPOS TYPE KDPOS,
WERKS TYPE WERKS_D,
PROCTYP TYPE ZDE_PP_PROCTYP,
AUFNR TYPE AUFNR,
MEINS TYPE MEINS,
END OF TY_FINAL.
DATA : GT_ACTUAL_PRD TYPE TABLE OF TY_ACTUAL_PRD,
GS_ACTUAL_PRD TYPE TY_ACTUAL_PRD,
GT_ACTUAL_PRD_COLLECT TYPE TABLE OF TY_ACTUAL_PRD.
DATA : GT_FINAL TYPE TABLE OF TY_FINAL,
GS_FINAL TYPE TY_FINAL.
DATA : GT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
GS_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
DATA : GT_EVENTS TYPE SLIS_T_EVENT.
DATA : GD_LAYOUT TYPE SLIS_LAYOUT_ALV.
DATA : GS_REPID LIKE SY-REPID.
SELECT-OPTIONS : S_KDAUF FOR ZPP_ACTUAL_PRD-KDAUF,
S_KDPOS FOR ZPP_ACTUAL_PRD-KDPOS.
START-OF-SELECTION.
PERFORM GET_DATA.
PERFORM POPULATE_DATA1.
*& Form GET_DATA
* text
* --> p1 text
* <-- p2 text
FORM GET_DATA .
SELECT
KDAUF
KDPOS
WERKS
PROCTYP
AUFNR
MEINS
FROM ZPP_ACTUAL_PRD INTO TABLE GT_ACTUAL_PRD WHERE KDAUF IN S_KDAUF AND
KDPOS IN S_KDPOS.
ENDFORM. " GET_DATA
*& Form POPULATE_DATA1
* text
* --> p1 text
* <-- p2 text
FORM POPULATE_DATA1 .
LOOP AT GT_ACTUAL_PRD INTO GS_ACTUAL_PRD.
GS_FINAL-KDAUF = GS_ACTUAL_PRD-KDAUF.
GS_FINAL-KDPOS = GS_ACTUAL_PRD-KDPOS.
GS_FINAL-WERKS = GS_ACTUAL_PRD-WERKS.
GS_FINAL-PROCTYP = GS_ACTUAL_PRD-PROCTYP.
GS_FINAL-AUFNR = GS_ACTUAL_PRD-AUFNR.
GS_FINAL-MEINS = GS_ACTUAL_PRD-MEINS.
COLLECT GS_ACTUAL_PRD INTO GT_ACTUAL_PRD_COLLECT.
ENDLOOP.
ENDFORM. " POPULATE_DATA1
*& Form BUILD_FIELDCATALOG
* text
* --> p1 text
* <-- p2 text
FORM BUILD_FIELDCATALOG .
GS_FIELDCAT-FIELDNAME = 'KDAUF'.
GS_FIELDCAT-SELTEXT_M = 'SALESORDER'.
GS_FIELDCAT-OUTPUTLEN = 10.
GS_FIELDCAT-DO_SUM = 'X'.
GS_FIELDCAT-NO_ZERO = 'X'.
APPEND GS_FIELDCAT TO GT_FIELDCAT.
CLEAR GS_FIELDCAT.
GS_FIELDCAT-FIELDNAME = 'KDPOS'.
GS_FIELDCAT-SELTEXT_M = 'SALESITEM'.
GS_FIELDCAT-OUTPUTLEN = 10.
GS_FIELDCAT-DO_SUM = 'X'.
GS_FIELDCAT-NO_ZERO = 'X'.
APPEND GS_FIELDCAT TO GT_FIELDCAT.
CLEAR GS_FIELDCAT.
GS_FIELDCAT-FIELDNAME = 'WERKS'.
GS_FIELDCAT-SELTEXT_M = 'PLANT'.
GS_FIELDCAT-OUTPUTLEN = 10.
GS_FIELDCAT-DO_SUM = 'X'.
GS_FIELDCAT-NO_ZERO = 'X'.
APPEND GS_FIELDCAT TO GT_FIELDCAT.
CLEAR GS_FIELDCAT.
GS_FIELDCAT-FIELDNAME = 'PROCTYP'.
GS_FIELDCAT-SELTEXT_M = 'TYPE'.
GS_FIELDCAT-OUTPUTLEN = 10.
GS_FIELDCAT-DO_SUM = 'X'.
GS_FIELDCAT-NO_ZERO = 'X'.
APPEND GS_FIELDCAT TO GT_FIELDCAT.
CLEAR GS_FIELDCAT.
GS_FIELDCAT-FIELDNAME = 'AUFNR'.
GS_FIELDCAT-SELTEXT_M = 'ORDER'.
GS_FIELDCAT-OUTPUTLEN = 10.
GS_FIELDCAT-DO_SUM = 'X'.
GS_FIELDCAT-NO_ZERO = 'X'.
APPEND GS_FIELDCAT TO GT_FIELDCAT.
CLEAR GS_FIELDCAT.
GS_FIELDCAT-FIELDNAME = 'MENGE'.
GS_FIELDCAT-SELTEXT_M = 'QTY'.
GS_FIELDCAT-OUTPUTLEN = 10.
GS_FIELDCAT-DO_SUM = 'X'.
GS_FIELDCAT-NO_ZERO = 'X'.
APPEND GS_FIELDCAT TO GT_FIELDCAT.
CLEAR GS_FIELDCAT.
ENDFORM. " BUILD_FIELDCATALOG
*& Form ALV_DISPLAY
* text
* --> p1 text
* <-- p2 text
FORM ALV_DISPLAY .
GS_REPID = SY-REPID.
IF GS_REPID IS NOT INITIAL.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = GS_REPID
IT_FIELDCAT = GT_FIELDCAT[]
IT_EVENTS = GT_EVENTS[]
I_SAVE = 'A'
I_DEFAULT = 'X'
TABLES
T_OUTTAB = GT_ACTUAL_PRD_COLLECT
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
ENDFORM. " ALV_DISPLAY
Z Data base table looks as below..
Best rgds/thnks,
Srikanth.Hi Sankara ,
Collect statement is used to add all the numeric components to the corresponding values of all the existing rows in an internal table , with the same key . The data type can be I , P , F .
Please ensure that there is a comman value in all the rows .
check this out and let me know if any issues
Regards,
Kavitha -
Hi ,
i need to develop parking document report.
to develop this u go to tcode fbv3 .here u find the park document no. when u double click on park document
it will show line item wise park document display.
i need to develop this report line item wise . i don't know
which table to use to make this report line item wise.
so please help me in this isue. i know the header table.
thanks in advance.
DineshHI ,
u can get Header data from VBKPF , but my suggestion is just check how SAP is getting the Item data , i am sure its using FM to display Item data.
if not check these tables.
VBKPF Document Header for Document Parking
VBSEC Document Parking One-Time Data Document Segment
VBSEGA Document Segment for Document Parking - Asset Da
VBSEGD Document Segment for Customer Document Parking
VBSEGK Document Segment for Vendor Document Parking
VBSEGS Document Segment for Document Parking - G/L Acco
VBSET Document Segment for Taxes Document Parking
VBWF09 People with Release Authorization for Document P
VBWF15 People with Release Authorization for Document P
regards
Prabhu -
Infor regarding Collections from customers
Dear SAP gurus
goodmorning
as I need some information regarding Accounts Receivable.
our client is distributing power to customers and receives the collections from the customers/consumers. Now the issues is that if a customer is not paid the bill amount (became defaultee) for the past two months and also for the current month. In the current month he paid some amount towards the settlement of arrears. We are planing to charge interest for the arrears of bill amout and it should show as open item.
Where should I configure these settings and assign them.
Is it possible to configure at the payment terms and assign a new GL account with the arrears of interest.
thanks in advance
pls suggest me in this issue
thanks and regards
Kishore
HyderabadHi,
Please check with these reports.
S_ALR_87012177 - Customer Payment History
S_ALR_87012178 - Customer Open Item Analysis by Balance of Overdue Items
Thanks
Prasada -
Collective document created in Depreciation Posting: SAP ECC 6.0
Hi experts,
We just migrated from version R/3 4.6C to SAP ECC 6.0.
In version 4.6C, when executing Depreciation Run the system created several accounting documents (one per every cost center). In new version SAP ECC 6.0, the system creates just one collective accounting document including all cost centers (in this way the document has a lot of lines).
Is there any possibility to change this setting, so the system creates several accounting documents as in version 4.6C?
We have this requirement for accounting porpouses.
Thanks a lot for your help,I got response from OSS message:
Either of these notes solve the problem:
<<< 0000888696 Unexpected Venture Splitting on Depreciation Postings >>> or
<<< 0001091477 RAPOST2000 creates docs with unexpected huge number of lines >>> -
Regarding 3 Documents in a Screen
Hi Guru's,
I am developing one report to display the Header and Item Level Reports at the same screen, For Example i am diplaying one ALV for Documents at SO Header Level, if i click on a particular delivery no, It should display the invoice and other stuff at the same screen, in a separate area, but not in grid or list format, it should be like a document. I am using OOPS concept, but i need help, can somebody give me any idea's about this?
Regards,
Khanhi Tapodipta Khan
if you are using OOPs means, define Container in SE51 as many you want for header as well as item data..
make a pass to item container based on the header data.
Regards
Deva -
Regarding billing document number ranges
hi friends
my requirement is with in one company code i am using 2 billing document types and i want the number ranges should start with the same number range
ex : 1st doc type is f1 and no range is 900000
2nd doc type is f2 and no range is 900000
in the above example if i generate the billing doc with f1 the no range should start with 900000 and after that if i generate billing doc with f2 i should get the no range should start with 900000 only
this is the requirement so is there any user exit for this requirement pls help me in this regard
thank tou
raghu<b>USEREXIT_NUMBER_RANGE , (Module pool SAPLV60A, program RV60AFZZ)</b> is used for the internal number range used in the standard system is specified in the billing type table and can be changed in this user exit. This user exit is only called when the billing documents is created.
The way you can do is create a z-table, and using the document type assign the number range and increment numbers when the billing document.
Regards,
Gauravjit.
Reward Points if helpful
Maybe you are looking for
-
Hi, I'm able to programmatically refresh my UI components in ADF 11.1.1.0.2. After migrating my application to ADF 11.1.1.1.0 using the latest Jdev, I noticed that all the programmatically PPR no longer work. I'm using ADF Faces, managed beans and EJ
-
Services won't allow users to authenticate via Open Directory
Greetings! I have been pulling my hair out for a long time over this and wondering if anyone has seen something similar or has anything I can try. It's a bit confusing so I'll try to lay it out so it's not to crazy. *The setup:* Leopard server hosing
-
Invalid column index error in sql developer
Hi, I was trying to create stored procedures, functions and packages in sql developer which is connected to Oracle 11g. My instructor is able to execute all of them without any errors in 10g. However, when I try to execute them, I get- "Invalid colum
-
How to Import pictures in iphoto on ipad with original name
How to import pictures into iphoto on my ipad air with the original filenames. IT now Seems my pictures get a new name.
-
Change in voice commands for Blackberry Assistant with version 10.3.1
The change in the voice activation commands have a massive impact in my work productivity as I can no longer voice dial without touching the screen while I am driving. Now with a voice command say "call and a name" it comes back with possible multip