Issue with Structure
Hi Friends,
I have couple of Keyfigures under my structure , but the report from this gives me the total of both the keyfigures , but I want to have a details of this total. How can I do this in a structure , please advice,
thanks alot in advance,
Hi,
It's not because of KF structure.If i am not wrong,you must be having a characteristic structure in your Query..right?thats why you are getting aggregated values of Keyfigures.
Just drag and drop required Chars into Query designer instead of having them in structure.
Hope this helps
Similar Messages
-
Issues with 'Structure Refresh' of OLAP Universe!
I have a report based on .unv which in turn is based on a BEx query. I need to update the universe to retrieve objects I recently added to my Bex query. I am facing the following issues while refreshing the universe structure through Universe Design Tool.
When the option ‘Delete Obsolete objects’ is checked in the update wizard, UDT closes out. I then have to restart UDT.
When the option ‘Delete Obsolete objects’ is checked, UDT hides almost all objects and classes with the exception of 1/2 classes and affixes ## before their name.
I am attaching a screengrab after the refresh is complete when the ‘hide obsolete objects’ option was checked. (No objects in the below screenshot were modified in BEx. This may help you make sense of the error.
The same issue has been reported in this thread. http://scn.sap.com/thread/3374159
I understand I can create a new universe on Bex query and copy the new objects onto my existing universe. This way I wouldnt have to deal with refreshing structure of the universe. However, I need to find the cause of this issue and see if it can be fixed. I am using BO 4.0 SP5.
Thank you.Hi Venkatzeus,
I tried many times but I still cannot reproduce the issue.
In my environment (SharePoint2013+SP1), I insert a list webpart in a web part page within "Pages" library, then enable the web part properties as you mentioned and save the page, then use first user account(e.g. Administrator)
to edit/change the webparty "selected view" property option and click "Apply", and meanwhile the second user account with full control permission keeps this webpart page opening in view mode with IE browser on another
machine, 30 seconds later, the webpart content refreshed, however it doesn't change to Edit mode for the second user.
Could you please provide more information/step to let us reproduce this issue?
Does that "When one of the user is editing the list view" mean change the list view of the web part on webpart page?
Have you tried creating another pages library and pages, then insert another test list web part in your environment, see if it could be reproduce and compare the diference?
Thanks,
Daniel Yang
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Daniel Yang
TechNet Community Support -
Hi All,
i am having a requirement where i need to create 10 restricted key figures and need to place in the rows, i am unable to place them in the row without structure, is der any alternate solution for this. another thing is i had created a structure using year and calmonth when i am checking for the query its giving an error stating that its an empty structure.
plz thru some light on this
Thanx in advance
KKHi
If you are creating a structure you have to add key figure in that structure. Please try to add key figure with month in that structure. -
Issue with stock qty of component in Structured Articles in SAP BI
Dear Experts,
We are extracting stock in BI through SAP standard data source. We have used 2lis_03_bx and 2lis_03_bf data sources. We are facing issue with stock data validation due to structure articles (pre-pack) available in SAP source system.
We have stock of structure articles available at DC in source system. When we extract this information in BI, this article gets split into its components automatically. Due to which stock of components articles gets increased with huge amounts.
To analysis it in further detail, we have created below scenario:
Article Document Number: 4900000827
Article Number (Pre-pack): 300000082901
Article Number (Component): 300000082002
Stock of pre- pack article at this article document number: 174 pc
Stock of component article at this article document number: 348 pc (due to splitting of pre-pack article) + 151 (its own stock movement). Total stock for this article is 499. But actually total stock for this article should be 151 only.
As per our Business requirement, pre-pack article should not be split into its components. And stock in BI should be totally in sync with SAP stock.
I kindly request you to suggest the solution to rectify the same.
Thanks in advance.
--VikasHi Vikas,
Check the OSS note L 1320386 - Frequently asked questions regarding BW Trade Foundation too.
Regards,
Rajesh -
Issue with the new COPA field added into the BBSEG Structure
Hello All,
I have an issue with the new COPA field added into the BBSEG Structure.
I think its added becuase of test Operationa Conern Created by somebody.
Can you please let me know how to remove that structure from BBSEG Structure.
Thanks
vsrHi Monohar & Ankur,
Thanks for your answers..
main issue is suddenly new field called RKE_COPA_KOSTL has been added to the BBESG Structure..
Because of this RFBIBL00 Upload is not working. I heard that this new fields will come by generating Operating Concerns by Transaction KEA0.I found an operating concern which was created as a test in developemt system..
But I am not sure how to delete that operating concern.Even i am not sure if we delete the Operating Concern ..is it going to delete that field in BBESG Structure or not??
Please advise me..
Thanks
sathi -
SAP BI 7.0 Transport issue with HR Structural Authorization DSO
Hi,
I am trying to transport HR Structural Authorization DSO Objects in BI 7.0 from Dev to QA system. The Data sources are 0PA_DS02 and 0PA_DS03. ( I am sure that there are lots of changes in Authrorization concept in BI 7.0),.
1. Please suggest me if I need to make any changes and tests before moving these authorization objects to QA system.
2. Also, do I need to take any pre-cautions while activating business content objects 0TCTAUTH and 0TCTAUTH_T (Datasources look like are from 3.x) as I am getting issue with the activation of the transfer structure for these objects?
Thanks a lot for your valuable inputs.
Regards
Paramesh
Edited by: paramesh kumar on May 5, 2009 12:45 AMHi Paramesh.
You can use the DSOs 0PA_DS02 and 0PA_DS03 in BI7.0 as well. You just need to use the new generation of analysis authorizations in transaction RSECADMIN.
You can use 0TCTAUTH and 0TCTAUTH_T in BI7.0, however we have experienced som problems with the 0TCTAUTH_T extractor, which dumped because of a poorly designed SELECT statement that was unable to cope with 10000 records. We have replaced it with a generic data source that uses table RSECTEXT directly.
Regards,
Lars -
Issues with Bex query structures and Crystal Reports/Webi
Hi experts,
I'm having an issue with Bex Query structures and nulls. I've built a Crystal Report against a Bex query that uses a Bex Query structure. The structure looks like the following
Budget $
Budget %
Actual $
Actual %
Budget YTD
etc
if I drag the structure into the Crystal Report detail section with a key figure it displays like this
Budget $ <null>
Budget % <null>
Actual $ 300
Actual % 85
Budget YTD 250
the null values are displayed (and this is what is required). However if I filter using a Record selection or group on a profit centre then the nulls along with the associated structure component are not displayed.
Actual $ 300
Actual % 85
Budget YTD 250
Webi is also behaving similarly. Can anyone explain why the above is happening and suggest a solution either on the Bex side of things or on the Crystal Reports side of things? I'm confused as to why nulls are displayed in the first example and not the second.
Business Objects Edge 3.1 SP2
SAP Int Kit SP2
OS: Linux
BW 701 Level 6
Crystal Reports 2008 V1
Thanks
KeithHi,
Crystal Reports and Web Intelligence will only show data which is in the cube. You could have an actual 0 or Null entry whithout grouping but by changing the selection / grouping in the report the data does not include such entry anymore.
ingo -
Issue with Contract Replication from SRM to MDM - XML structure
Hi
We are having an issue with trnsfering a contract to MDM. We have released the contract for update to MDM in the contract through the distribute to catalog option. An XML is generated in SRM that gets sucessfully passed to PI through Catalogupdatenotification_out. In PI the XML fails in the Interface Determination step. the issue that has been noticed is that the XML that is generated in SRM does not contain product category or product ID which is basically what the condition mapping in PI checks for. The conditions in PI were setup as per SAP.
But now the XML fails in PI because it does not find a combination for Catalog type code = 03 and product category. Please find the XML structure in SRM and you will see that it does not have a product category even though the contract has one.
<?xml version="1.0" encoding="utf-8" ?>
- <n0:CatalogTransmission xmlns:n0="http://sap.com/xi/EBP" xmlns:prx="urn:sap.com:proxy:SS1:/1SAI/TASDE808778FFEB81012891:701:2010/10/07">
- <StandardBusinessDocumentHeader>
<ID schemeID="0080">56000004100000000220110616202243</ID>
<CreationDateTime>2011-06-16T20:22:43Z</CreationDateTime>
- <SenderParty>
<InternalID schemeID="PartyID" schemeAgencyID="SS1CLNT100">143</InternalID>
</SenderParty>
</StandardBusinessDocumentHeader>
- <Catalog>
<ID>5600000410</ID>
<CatalogTypeCode>03</CatalogTypeCode>
- <NameList>
<Name>(Copy of Contract 5600000395)</Name>
</NameList>
<ActionCode>04</ActionCode>
<CompleteTransmissionIndicator>true</CompleteTransmissionIndicator>
- <ValidityDateTimePeriod>
<StartDateTime>2011-06-13T12:00:00Z</StartDateTime>
<EndDateTime>2012-06-12T12:00:00Z</EndDateTime>
</ValidityDateTimePeriod>
- <CatalogContent>
- <ItemList>
- <Item>
<ID>1</ID>
<ActionCode>04</ActionCode>
<CompleteTransmissionIndicator>false</CompleteTransmissionIndicator>
- <PropertyValuationList>
- <PropertyValuation>
<PropertyReference>/CCM/PRICE</PropertyReference>
- <PropertyValues>
- <MultipleValue>
<Index>1</Index>
- <SimpleValue>
<AmountSpecification currencyCode="USD">1.0</AmountSpecification>
</SimpleValue>
</MultipleValue>
</PropertyValues>
</PropertyValuation>
- <PropertyValuation>
<PropertyReference>/CCM/PRICE_BASIS_QUANTITY</PropertyReference>
- <PropertyValues>
- <SimpleValue>
<QuantitySpecification unitCode="EA">1.0</QuantitySpecification>
</SimpleValue>
</PropertyValues>
</PropertyValuation>
- <PropertyValuation>
<PropertyReference>CCM/PMNTTRMS</PropertyReference>
- <PropertyValues>
- <SimpleValue>
<NameSpecification>0002</NameSpecification>
</SimpleValue>
</PropertyValues>
</PropertyValuation>
</PropertyValuationList>
</Item>
- <Item>
<ID>2</ID>
<ActionCode>04</ActionCode>
<CompleteTransmissionIndicator>false</CompleteTransmissionIndicator>
- <PropertyValuationList>
- <PropertyValuation>
<PropertyReference>/CCM/PRICE</PropertyReference>
- <PropertyValues>
- <MultipleValue>
<Index>1</Index>
- <SimpleValue>
<AmountSpecification currencyCode="USD">12.0</AmountSpecification>
</SimpleValue>
</MultipleValue>
</PropertyValues>
</PropertyValuation>
- <PropertyValuation>
<PropertyReference>/CCM/PRICE_BASIS_QUANTITY</PropertyReference>
- <PropertyValues>
- <SimpleValue>
<QuantitySpecification unitCode="EA">1.0</QuantitySpecification>
</SimpleValue>
</PropertyValues>
</PropertyValuation>
- <PropertyValuation>
<PropertyReference>CCM/PMNTTRMS</PropertyReference>
- <PropertyValues>
- <SimpleValue>
<NameSpecification>0002</NameSpecification>
</SimpleValue>
</PropertyValues>
</PropertyValuation>
</PropertyValuationList>
</Item>
</ItemList>
</CatalogContent>
</Catalog>
</n0:CatalogTransmission>
Edited by: vishakhrajeev123 on Jun 20, 2011 6:49 PMDear Krupa,
Thank you for your quick reply.
So we should consider the scenario where SRM is the central repository for the contracts, and all the changes done in SRM should be replicated to ERP.
In this scenario, do you know which steps should be done to allow contract replication from SRM to ERP? I already created a central contract in SRM but there is no message sent to PI.
Thanks in advance.
Regards,
Andreia -
SAP BW structure/table name change issue with BODS Jobs promotion
Dear All, One of my client has issue with promotion of BODS jobs from one environment to another. They move SAP BW projects/tables along with BODS jobs (separately) from DEV to QA to Prod.
In SAP-BW the structures and tables get a different postfix when they are transported to the next environment. The promotion in SAP-BW (transport) is an automated process and it is the BW deployment mechanism that causes the postfixes to change. As a result with the transport from Dev to QA in SAP-BW we end up with table name changes (be they only suffixes), but this does mean that when we deploy our Data Services jobs we immediately have to change them for the target environments.
Please let me know if someone has deployed some solution for this.
ThanksThis is an issue with SAP BW promotion process. SAP BASIS team should not turn on setting to suffix systemid with the table names during promotion.
Thanks, -
Performance issues with FDK in large XML documents
In my current project with FrameMaker 8 I'm experiencing severe performance issues with some FDK API calls.
The documents are about 3-8 MBytes in size. Fortmatted they cover 150-250 pages.
When importing such an XML document I do some extensive "post-processing" using FDK. This processing happens in Sr_EventHandler() during the SR_EVT_END_READER event. I noticed that some FDK functions calls which modify the document's structure, like F_ApiSetAttribute() or F_ApiNewElementInHierarchy(), take several seconds, for the larger documents even minutes, to complete one single function call. I tried to move some of these calls to earlier events, mostly to SR_EVT_END_ELEM. There the calls work without a delay. Unfortunately I can't rewrite the FDK client to move all the calls that are lagging to earlier events.
Does anybody have a clue why such delays happen, and possibly can make a suggestion, how to solve this issue? Thank you in advance.
PS: I already thought of splitting such a document in smaller pieces by using the FrameMaker book function. But I don't think, the structure of the documents will permit such an automatic split, and it definitely isn't an option to change the document structure (the project is about migrating documents from Interleaf to XML with the constraint of keeping the document layout identical).FP_ApplyFormatRules sounds really good--I'll give it a try on Monday. Wonder how I could miss it, as I already tried FP_Reformatting and FP_Displaying at no avail?! By the way, what is actually meant with FP_Reformatting (when I used it I assumed it would do exactly what FP_ApplyFormatRules sounds to do), or is that one another of Lynne's well-kept secrets?
Thank's for all the helpful suggestions, guys. On Friday I already had my first improvements in a test version of my client: I did some (not all necessary) structural changes using XSLT pre-processing, and processing went down from 8 hours(!) to 1 hour--Yeappie! I was also playing with the idea of writing a wrapper to F_ApiNewElementInHierarchy() which actually pastes an appropriate element created in a small flow on the reference pages at the intended insertion location. But now, with FP_ApplyFormatRules on the horizon, I'm quite confident to get even the complicated stuff under control, which cannot be handled by the XSLT pre-processing, as it is based on the actual formatting of the document at run-time and cannot be anticipated in pre-processing.
--Franz -
ISSUE WITH SERVICE PURCHASE ORDER STATUS
Hi
There is an issue with a Service PO.When I created a service p.o the
p.o value was 1,543,695.60 USD . I created service entry sheet and GR
for 1,029,130.40 USD.
The still to be delivered amount should be 1,543,695.60-1,029,130.40 =514565.20 USD
But the Amount Still to be delivered in p.o STATUS HEADER DATA screen shows 191,761.60 USD.
Actually the system should show the delivered status as 514565.20 USD.
What should be the cause for this???
I checked the invoice also.Invoicing is done for 1,029,130.40 USD.
Apperciate ur immediate feedback on this.Hi
S012 is updated by the Purchase Order creation date, not the Goods Receipt date. e.g. a Purchase Order is created in January and good receipt is in February and March, S012 will shows the values in period January.
try Transaction MC26
Info structure S012 Update group (stats) SAP
Double click on Goods received qty
In the section Date field for period determination
check regarding date or change accordingly
hope it helps. -
Hi ,
We are working on BO on top of BW pilot version and finding different issues with different tools.
1) Used existing BW queries/created universe.When we run the report using Web Intelligence, not able to get the way Hierachies displays in BEx.(Tree like structure).
If we enable drill up and down option, the summary level disappeas only we can see the lower level.Which I think is a useless information to the user as it appears like a flat file data.
We created the report with possible Hierarchies upfront like a canned report, but doesn't give any option to drill up/down further, doesn't allow the user any other activity, other than dragging/dropping some columns.
2) Tried to create the report in Crystal, but because of the page limitations, I cannot get all my columns in the same page( I have 35 columns)
3) To derive the reports in XCelicius, my business partner tells me that they need to create queries on Excel to use that functionality.They are preferring to go with R/3, rather than BW, which will be again significant amount of work.
I wonder if anyone encountered these kind of issues ?
Providing these limitations, I don't see much value of having this tool on top of BW.Any comments?
I agree, it is a great tool on top of relational databases, as we are using this tool on relational databases and didn't find these many issues.
Can someone provide me the list of advantages of having BO on top of BW? I mean what BO can offer when compared to BEx( We only use BEx, no Web)
Thanks
Priyahi,
perhaps I can bring in some clarifications :
- Crystal Reports is able to leverage the hierarchies and use a parent child relationship and show the hierarchical levels from BW. It looks like the challenge you have in Crystal Reports is that you have a lot of columns that you would like to have in your report. Crystal Reports is layout driven so you could actually set a size of the report by configuring the page setup.
- web Intelligence is exposing a hierarchy based on levels so that the user can leverage the levels in the report. when enabling the drill down you could actually go from a top level down to multiple levels of the hierarchy
- Xcelsius can leverage multiple different sources: Web Services, Crystal reports, web Intelligence. Xcelsius can use Live Office to connect to existing reports from Crystal Reports and web Intelligence.
Feel free to provide your comments / questions in case this doesn't answer your questions
Ingo Hilgefort -
Issue with Formula on Brand Family Level
Hi Friends,
we are facing issue with the formula while showing the report output.
Following is the scenario.
BrandFamily(Char),Material(Char),Comp(Char), Kf1(Keyfig) ,Kf2(Keyfig)
Data Records:
1st Record -
> B1, M1, 200, 100
2nd Record -
> B1, M2, 500, 400
3rd Record -
> B2, M3, 100, 300
4th Record -
> B2, M4, 600, 200
Formual --> If Kf1>Kf2 then Kf1 Elseif Kf1<Kf2 then Kf2
1) Report displayed based on the BrandFamily and Material , then the report shows correctly as below
Report Structure :- Brandfamily , Material are in Rows and the Colum has the Formula (that was mentioned above)
Report Output :-
B1 M1 200
B1 M2 500
B2 M3 300
B2 M4 600
On Summing , For B1 , Value is 700. For B2, Value is 900.
2) 1) Report displayed based on the BrandFamily , then the report shows wrongly for the formula value as shown below
Report Structure :- Brand Family is in Rows and the Colum has the Formula (that was mentioned above)
Report Output:-
B1 700
B2 700
Here For B1, Value is 700 which is matching with the earlier output
Whereas For B2, Value is 700 which is not matching with the earlier output.
The Value for B2 is wrong because the formula has not processed correctly the 3rd record .
The report summed up the 3rd and 4th records and then applied the formula , because of which the issue.
This is because the Values kf1 and Kf2 are based on the material and as the material is not part of the Rows .
Thankyou in advance.
LNVa more simpler solution.
open the kf in edit mode which has the condition
create two formula variables as follows.
BRANDFAMILY
replacement path , reference characteristic brand famility
got replacement path tab-> replacevaue with as ' infobject' replace with as 'attribute value' , attribute constant 1.
MATERIAL
replacement path , reference characteristic material.
got replacement path tab-> replacevaue with as ' infobject' replace with as 'attribute value' , attribute constant 1.
MODIFY the KF as
BRANDFAMILY * MATERIAL * condition.
had exactly same requirement -
E-mail of PDF issue TLINE structure but SOLISTI1 needed
Hi,
So far I have done the following. I have prepared a SMARTFORM and an ABAP. My ABAP calls the Smartform and gives the data to the function module CONVERT_OTF. This function creates a PDF file from the Smartform data. The output of "CONVERT_OTF" is a table with the format of structure TLINE. In a first step I save these data into a PDF file with the function module "GUI_DOWNLOAD".
Now the issue.
In the second step I am trying to send the output with the function SO_DOCUMENT_SEND_API1. The function is recommended by SAP for release 6.4 instead of the former function "SO_NEW_DOCUMENT_ATT_SEND_API1".
The attachment must be delivered either with the structure SOLISTI1 or SOLIX to be sent with the e-mail function SO_DOCUMENT_SEND_API1. I have tried to put my data with structure TLINE into the function. In these case I get short dumps. If I put the output of the function CONVERT_OTF in a table with the format SOLISTI1 instead of a table with structure TLINE a PDF file is still created and also send out with the e-mail function, but the file cant be opened anymore. Acrobat delivers an error message that the file is damaged.
I have tried to convert the file with structure TLINE in a hexadecimal file with structure SOLIX. For this purpose I used the function TABLE_COMPRESS. This worked fine. But the file which has been sent by the e-mail was still damaged. Even if I have downloaded the file I got the message that the file was damaged.
Are there any other suggestions how the attachment could be sent instead of using the function SO_DOCUMENT_SEND_API1? Is there a function available, which could be used to sent attachments with structure TLINE? Or are there any suggestions, how I can convert my smartform output in a SOLIX or SOLISTI1 structure?
Thank you and best regards
KarstenHi Arold,
<b>1</b>.
Have a look at this program.
This program is sending PDF file as attachment thru mail
<b>2</b>.
REPORT zvenkat_mail.
TABLES :
tsp01.
Itabs and variables .
*Tables
DATA:
BEGIN OF i_mard OCCURS 0,
matnr TYPE mard-matnr,
werks TYPE mard-werks,
lgort TYPE mard-lgort,
labst TYPE mard-labst,
umlme TYPE mard-umlme,
insme TYPE mard-insme,
einme TYPE mard-einme,
END OF i_mard.
DATA :
g_sy_spono LIKE sy-spono.
Mail related Variables and i tabs.
DATA:
w_subject LIKE sodocchgi1,
i_pack_list LIKE sopcklsti1 OCCURS 1 WITH HEADER LINE,
i_objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE,
i_contents_text LIKE solisti1 OCCURS 10 WITH HEADER LINE,
i_cont_bin LIKE solisti1 OCCURS 10 WITH HEADER LINE,
i_objhex LIKE solix OCCURS 10 WITH HEADER LINE,
i_receiver LIKE somlreci1 OCCURS 1 WITH HEADER LINE,
i_listobject LIKE abaplist OCCURS 1 WITH HEADER LINE,
pdf LIKE tline OCCURS 100 WITH HEADER LINE,
content_out LIKE solisti1 OCCURS 0 WITH HEADER LINE.
DATA:
tab_lines TYPE i,
doc_size TYPE i,
att_type LIKE soodk-objtp,
obj_desc LIKE w_subject-obj_descr,
sent_to_all LIKE sonv-flag,
client LIKE tst01-dclient,
name LIKE tst01-dname,
objtype LIKE rststype-type,
type LIKE rststype-type,
is_otf TYPE c ,
no_of_bytes TYPE i,
pdf_spoolid LIKE tsp01-rqident,
jobname LIKE tbtcjob-jobname,
jobcount LIKE tbtcjob-jobcount,
pn_begda LIKE sy-datum,
val(1) TYPE c,
pripar TYPE pri_params,
arcpar TYPE arc_params,
lay TYPE pri_params-paart,
lines TYPE pri_params-linct,
cols TYPE pri_params-linsz,
spool_name TYPE pri_params-plist.
*& START-OF-SELECTION.
START-OF-SELECTION.
PERFORM get_data_from_database.
PERFORM output_for_pdf.
*& END-OF-SELECTION.
END-OF-SELECTION.
PERFORM send_mail..
*& Form get_data_from_database
FORM get_data_from_database .
SELECT matnr
werks
lgort
labst
umlme
insme
einme
FROM mard
INTO TABLE i_mard
UP TO 20 ROWS.
ENDFORM. " get_data_from_database
*& Form output_for_pdf
FORM output_for_pdf .
PERFORM get_print_params.
LOOP AT i_mard.
WRITE:/ sy-vline, i_mard-matnr,
sy-vline, i_mard-werks,
sy-vline, i_mard-lgort,
sy-vline, i_mard-labst,
sy-vline, i_mard-umlme,
sy-vline, i_mard-insme,
sy-vline, i_mard-einme,
sy-vline.
ENDLOOP.
ULINE .
g_sy_spono = sy-spono.
NEW-PAGE PRINT OFF.
CALL FUNCTION 'ABAP4_COMMIT_WORK'.
ENDFORM. " output_for_pdf
*& Form send_mail
FORM send_mail .
PERFORM mail_without_attachment.
PERFORM mail_with_pdf_attachment.
PERFORM mail_with_exel_attachment.
PERFORM mail_with_text_attachment.
ENDFORM. " send_mail
*& Form mail_with_pdf_attachment
FORM mail_with_pdf_attachment .
CLEAR :w_subject,
sent_to_all,
i_pack_list[],
i_objhead[],
i_cont_bin[],
i_contents_text[],
i_receiver[].
i_cont_bin = ' | '.
APPEND i_cont_bin.
Subject of the mail.
obj_desc = 'Hello SDN Friends ' .
w_subject-obj_name = 'MAIL_ALI'.
w_subject-obj_descr = obj_desc.
Body of the mail
DATA :head_desc LIKE i_contents_text,
body_desc LIKE i_contents_text.
i_contents_text = space.
APPEND i_contents_text.
CLEAR i_contents_text.
CONCATENATE
'This mail has been generated for Test purpose.'
'Please dont hesitate to ask any type of question in the forum.'
INTO body_desc
SEPARATED BY space.
i_contents_text = body_desc.
APPEND i_contents_text.
CLEAR i_contents_text.
CLEAR body_desc.
i_contents_text = 'Thank You.'.
APPEND i_contents_text.
CLEAR i_contents_text.
i_contents_text = 'Fellow SDN member,'.
APPEND i_contents_text.
CLEAR i_contents_text.
i_contents_text = 'Venkat.O'.
APPEND i_contents_text.
CLEAR i_contents_text.
i_contents_text = space.
APPEND i_contents_text.
CLEAR i_contents_text.
CONCATENATE '(Note: This is system generated message, please'
'do not reply'
'to this Email.)'
INTO i_contents_text
SEPARATED BY space.
APPEND i_contents_text.
CLEAR i_contents_text.
Write Packing List (Body)
DESCRIBE TABLE i_contents_text LINES tab_lines.
READ TABLE i_contents_text INDEX tab_lines.
w_subject-doc_size = ( tab_lines - 1 ) * 255 + STRLEN(
i_contents_text ).
CLEAR i_pack_list-transf_bin.
i_pack_list-head_start = 1.
i_pack_list-head_num = 0.
i_pack_list-body_start = 1.
i_pack_list-body_num = tab_lines.
i_pack_list-doc_type = 'RAW'.
APPEND i_pack_list.
CLEAR i_pack_list.
Create receiver list
i_receiver-receiver = '[email protected]'..
i_receiver-rec_type = 'U'.
APPEND i_receiver.
CLEAR i_receiver.
Select query for Spool requests
REFRESH content_out.
IF sy-subrc = 0.
SELECT SINGLE *
FROM tsp01
WHERE rqident = g_sy_spono.
IF sy-subrc <> 0.
MESSAGE s000(0k) WITH 'Spool Number does not exist'.
EXIT.
ELSE.
client = tsp01-rqclient.
name = tsp01-rqo1name.
ENDIF.
ENDIF.
CALL FUNCTION 'RSTS_GET_ATTRIBUTES'
EXPORTING
authority = 'SP01'
client = client
name = name
part = 1
IMPORTING
type = type
objtype = objtype
EXCEPTIONS
fb_error = 1
fb_rsts_other = 2
no_object = 3
no_permission = 4
OTHERS = 5.
IF objtype(3) = 'OTF'.
is_otf = 'X'.
ELSE.
is_otf = space.
ENDIF.
Convert Spool job to PDF
IF is_otf = 'X'.
CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = tsp01-rqident "Spool req number
no_dialog = ' '
IMPORTING
pdf_bytecount = no_of_bytes
pdf_spoolid = pdf_spoolid
btc_jobname = jobname
btc_jobcount = jobcount
TABLES
pdf = pdf
EXCEPTIONS
err_no_otf_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_dstdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12.
CASE sy-subrc.
WHEN 0.
WHEN 1.
MESSAGE s000(0k) WITH 'No OTF Spool Job'.
EXIT.
WHEN 2.
MESSAGE s000(0k) WITH 'Spool Number does not exist'.
EXIT.
WHEN 3.
MESSAGE s000(0k) WITH 'No permission for spool'.
EXIT.
WHEN OTHERS.
MESSAGE s000(0k) WITH 'Error in Function CONVERT_OTFSPOOLJOB_2_PDF'.
EXIT.
ENDCASE.
ELSE.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = tsp01-rqident
no_dialog = ' '
IMPORTING
pdf_bytecount = no_of_bytes
pdf_spoolid = pdf_spoolid
btc_jobname = jobname
btc_jobcount = jobcount
TABLES
pdf = pdf
EXCEPTIONS
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12.
CASE sy-subrc.
WHEN 0.
WHEN 1.
MESSAGE s000(0k) WITH 'No ABAP Spool Job'.
EXIT.
WHEN 2.
MESSAGE s000(0k) WITH 'Spool Number does not exist'.
EXIT.
WHEN 3.
MESSAGE s000(0k) WITH 'No permission for spool'.
EXIT.
WHEN OTHERS.
MESSAGE s000(0k)
WITH 'Error in Function CONVERT_ABAPSPOOLJOB_2_PDF'.
EXIT.
ENDCASE.
ENDIF.
CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
EXPORTING
line_width_src = 134
line_width_dst = 255
TABLES
content_in = pdf
content_out = content_out
EXCEPTIONS
err_line_width_src_too_long = 1
err_line_width_dst_too_long = 2
err_conv_failed = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE s000(0k) WITH 'Conversion Failed'.
EXIT.
ENDIF.
---------------------Create Message Attachment
DESCRIBE TABLE i_cont_bin LINES tab_lines.
i_pack_list-transf_bin = 'X'.
i_pack_list-head_start = tab_lines + 1.
i_pack_list-head_num = 0.
i_pack_list-body_start = tab_lines + 1.
APPEND LINES OF content_out[] TO i_cont_bin[].
DESCRIBE TABLE content_out LINES tab_lines.
i_pack_list-doc_size = tab_lines * 255.
i_pack_list-body_num = tab_lines.
i_pack_list-doc_type = 'PDF'.
i_pack_list-obj_name = 'ATTACHMENT'.
i_pack_list-obj_descr = 'Materials and their Quantities' .
APPEND i_pack_list.
CLEAR i_pack_list.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = w_subject
put_in_outbox = 'X'
commit_work = 'X'
IMPORTING
sent_to_all = sent_to_all
TABLES
packing_list = i_pack_list
object_header = i_objhead
contents_bin = i_cont_bin
contents_txt = i_contents_text
receivers = i_receiver
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
IF sy-subrc NE 0.
ENDIF.
ENDFORM. " mail_with_pdf_attachment
*& Form get_print_params
FORM get_print_params .
lay = 'X_65_132'.
lines = 65.
cols = 132.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
in_archive_parameters = arcpar
in_parameters = pripar
layout = lay
line_count = lines
line_size = cols
no_dialog = 'X'
IMPORTING
out_archive_parameters = arcpar
out_parameters = pripar
valid = val
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
IF val <> space AND sy-subrc = 0.
pripar-prrel = space.
pripar-primm = space.
NEW-PAGE PRINT ON
NEW-SECTION
PARAMETERS pripar
ARCHIVE PARAMETERS arcpar
NO DIALOG.
ENDIF.
ENDFORM. " get_print_params
I hope it helps u .
<b>Thanks,
Venkat.O</b> -
Issue with custom fields mapping from CRM to ECC.
Hi all,
I have issues with replicating custom fields in a Service order. I have created new fields with EEWB and EEWC. Now the structure has been changed in ECC and CRM. But i have to map this fields to correct structures. Also i need some logic to apply.
But i have addressed in couple of threads about the custom function module as in user exit for FI generation.
But i didnt understand the concept of this custom function module. why is this been used?
Could anyone let me know with an good example on how this has to be acheived.
Points are highly awarded.
Kindly reply me.
Thanks,
Kiran...Hi,
Here you go,
After you create custom characteristics.
1. Do Assign category.
2. Map contents.
3. Double check your master catalog has the mapped content.
4. Publish master catalog.
As per your message, you are not having any error message during import, which tells me that you are one step to close.
Cheers, Renga
Maybe you are looking for
-
Adobe Reader X tries to print when I open a PDF.
Windows 8.1 Adobe Reader X (10.1.9) Whenever i double click on a PDF in explorer, Adobe Reader opens the PDF and tries to print it. The print dialog box comes up as soon as the file is opened. I had assumed the command line for the default action had
-
Weblogic Bridge Batch Size setting ?
What is the per-requisite to set JMS bridge batch size in weblogic 10.3.3 Customer setting in production: QoS --> Exactly once Asynchronous Mode Enabled --> True Batch Size --> 1 From weblogic console "A messaging bridge instance provides transaction
-
Hi, Can anyone show me an example for setting and executing a parameter sweep in Labview? (with Multisim Automation API). Is it actually possible to do something like that? Thanks, Ussr123.
-
I cant update itunes as the system has not been modified
i am unable to upgrade to itunes11. there is an unspesified error as the system has not been modifed. how do i fix this?
-
Making sure Network High Speed Cable is being used
Hey all, I have a quick question. I have a new iMac 24 inch Alum computer. I have a highspeed internet system already. My modem is both wireless and linked with cables. I have the cable linked into my Mac. How can I make sure that my iMac is using th