Getting attachment information in Sales Activity ...
Hi all,
I want to know attachment information in sales activity.
for example ,
'BUS2000126' sales activity created on transaction 'CRMD_BUS2000126'.
I want to get information that is attached file.
any function module or class ?
itsmelalit wrote:
Can anyone help me with this.Any link or piece of code.After you ignored the two responses on your [_earlier post_|http://forums.sun.com/thread.jspa?threadID=5398071]? You must be joking.
db
Similar Messages
-
Which table could i get the information of Sales org. and DC relationship?
Thanks!
And could you tell in what way could i found the corresponding table corresponding to any SPRO transactions??
ThanksHi,
In the SPRO setting Press F1 and check technical details,you will find the corresponding table.
Second way is if you do any changes in settings,then the request which is getting generated...in that request you can find the table name as well
Reward points if useful
Regards,
Amrish Purohit -
I want to get the information of the attachment without get the whole body
POP3 server:
MimeMultipart mp=(MimeMultipart) message[0].getContent();
int count=mp.getCount();
//the server deliver the whole attachment when I use mp.getCount
Part part=mp.getBodyPart(0);
//when I use getBodyPart the server deliver the whole body too
I just want to get the information of the BodyPart,just like filename.
Some say FetchProfile can do it.But I try it failed.
How could I do this? Thank you!Using POP3, you can't. It's a limitation of the protocol.
-
API to get Work Item and Attached Information
Dearl all,
Is there any API to get the work items assigned to specific users and their attached information during runtime?
Thanks, JeromeHI Jerome,
This code will help you: API FM is " 'SO_NEW_DOCUMENT_ATT_SEND_API1'
DATA : w_name TYPE sos04-l_adr_name.
SELECT-OPTIONS :
Recipient address
s_name FOR w_name DEFAULT sy-uname NO INTERVALS.
START-OF-SELECTION.
E-mail Abap report
PERFORM f_send_mail.
Form f_send_mail
FORM f_send_mail.
Data Declaration
DATA:
l_datum(10),
ls_docdata TYPE sodocchgi1,
lt_objpack TYPE TABLE OF sopcklsti1 WITH HEADER LINE,
lt_objhead TYPE TABLE OF solisti1 WITH HEADER LINE,
lt_objtxt TYPE TABLE OF solisti1 WITH HEADER LINE,
lt_objbin TYPE TABLE OF solisti1 WITH HEADER LINE,
lt_reclist TYPE TABLE OF somlreci1 WITH HEADER LINE,
lt_listobject TYPE TABLE OF abaplist WITH HEADER LINE,
l_tab_lines TYPE i,
l_att_type LIKE soodk-objtp.
WRITE sy-datum TO l_datum.
List of Users According to Logon Date and Password Change
NOTE: Create ALI/OTF Document in Spool
MESSAGE ID 'ZWF' TYPE 'I' NUMBER '001'.
SUBMIT ZMM_MIR_RPT_FOR_WORKFLOW VIA SELECTION-SCREEN WITH valid = 'X'
WITH notvalid = space
WITH unlocked = 'X'
WITH locked = space
EXPORTING LIST TO MEMORY AND RETURN.
IF sy-subrc = 0.
ENDIF.
MESSAGE ID 'ZWF' TYPE 'I' NUMBER '000'.
Read list from memory into table
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = lt_listobject
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
Error in function module &1
MESSAGE ID '61' TYPE 'E' NUMBER '731'
WITH 'LIST_FROM_MEMORY'.
ENDIF.
IF sy-subrc = 0.
CALL FUNCTION 'WRITE_LIST'
TABLES
listobject = lt_listobject.
ENDIF.
IF sy-subrc = 0.
endif.
Because listobject is of size RAW(1000)
and objbin is of size CHAR(255) we make this table copy
CALL FUNCTION 'TABLE_COMPRESS'
TABLES
in = lt_listobject
out = lt_objbin
EXCEPTIONS
compress_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
Error in function module &1
MESSAGE ID '61' TYPE 'E' NUMBER '731'
WITH 'TABLE_COMPRESS'.
ENDIF.
NOTE: Creation of attachment is finished yet.
For your report, the attachment should be placed into table
objtxt for plain text or
objbin for binary content.
Now create the message and send the document.
Create Message Body
Title and Description
ls_docdata-obj_name = 'Outstanding MIR'.
CONCATENATE 'Outstanding MI-Report sent by' sy-uname l_datum "#EC *
INTO ls_docdata-obj_descr SEPARATED BY space.
Main Text
lt_objtxt = 'Outstanding MIR Report' &
'List of Outstanding Goods Receipts under inspection 103 movement'. "#EC *
APPEND lt_objtxt.
Write Packing List (Main)
DESCRIBE TABLE lt_objtxt LINES l_tab_lines.
READ TABLE lt_objtxt INDEX l_tab_lines.
ls_docdata-doc_size = ( l_tab_lines - 1 ) * 255 + STRLEN( lt_objtxt ).
lt_objpack-transf_bin = 1. " If u want to CLEAR inbox evrytime
lt_objpack-head_start = 1.
lt_objpack-head_num = 0.
lt_objpack-body_start = 1.
lt_objpack-body_num = l_tab_lines.
lt_objpack-doc_type = 'RAW'.
APPEND lt_objpack.
Create Message Attachment
Write Packing List (Attachment)
l_att_type = 'ALI'.
DESCRIBE TABLE lt_objbin LINES l_tab_lines.
READ TABLE lt_objbin INDEX l_tab_lines.
lt_objpack-doc_size = ( l_tab_lines - 1 ) * 255 + STRLEN( lt_objbin ).
lt_objpack-transf_bin = 'X'.
lt_objpack-head_start = 1.
lt_objpack-head_num = 0.
lt_objpack-body_start = 1.
lt_objpack-body_num = l_tab_lines.
lt_objpack-doc_type = l_att_type.
lt_objpack-obj_name = 'ATTACHMENT'.
lt_objpack-obj_descr = 'Outstanding MIR'. "#EC *
APPEND lt_objpack.
Create receiver list
LOOP AT s_name.
lt_reclist-receiver = s_name-low.
lt_reclist-rec_type = 'B'.
APPEND lt_reclist.
ENDLOOP.
Send Message
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = ls_docdata
put_in_outbox = ''
TABLES
packing_list = lt_objpack
object_header = lt_objhead
contents_bin = lt_objbin
contents_txt = lt_objtxt
receivers = lt_reclist
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 = 0.
Document sent
MESSAGE ID 'ZWF' TYPE 'S' NUMBER '002'.
ELSE.
Document <&> could not be sent
MESSAGE ID 'SO' TYPE 'S' NUMBER '023'
WITH ls_docdata-obj_name.
ENDIF.
ENDFORM.
Thanks and Regards,
Prabhakar Dharmala -
Problem with attaching file to Sales Order
Hello,
In my company we have the possibility to attach files to sales orders, e.g. pdf files with the printing details.
These files are added by the GUI user, this works fine.
Now we have an extra order creation stream in which a pdf file has to be added to the SO without user interaction.
I found a helpful link ( /people/rammanohar.tiwari/blog/2005/10/10/generic-object-services-gos--in-background )
This program creates URL links with no problem, but the file generation is not implemented yet.
I tried to add the file functions to his sample report but still have one problem. The file is uploaded, but not reported as a PDF file in sap. If I select the created attachment SAP allows only the saving of the attachment. After saving the created file is a good PDF file, it opens with PDF-viewers.
Why does SAP not know this is a PDF file and report it as such (and open the pdf viewer when selected).
Thanks, Frank.
source-code:
REPORT zzfb_brc .
* Report Z_RMTIWARI_ATTACH_DOC_TO_BO
* Written By : Ram Manohar Tiwari
* Function : We need to maintain links between Business Object and
* the attachment.Attachment document is basiclally a
* business object of type 'MESSAGE'.In order to maintain
* links, first the attachment will be crated as Business
* Object of type 'MESSAGE' using Message.Create method.
* Need to check if we can also use FM
* 'SO_DOC_INSERT_WITH_ORIG_API1' or SO_OBJECT_INSERT rather
* than using Message.Create method.
* I took this program and removed all the parts for adding URL's and
* notes.
* Include for BO macros
INCLUDE : <cntn01>.
* Load class.
CLASS cl_binary_relation DEFINITION LOAD.
CLASS cl_obl_object DEFINITION LOAD.
PARAMETERS:
* Object_a
p_botype LIKE obl_s_pbor-typeid DEFAULT 'BUS2032', "SO
p_bo_id LIKE obl_s_pbor-instid DEFAULT '0000757830', "example number
* Object_b
p_docty LIKE obl_s_pbor-typeid DEFAULT 'MESSAGE' NO-DISPLAY,
p_msgtyp LIKE sofm-doctp DEFAULT 'EXT' NO-DISPLAY,
* Relationship
p_reltyp LIKE mdoblrel-reltype DEFAULT 'ATTA'.
TYPES: BEGIN OF ty_message_key,
foltp TYPE so_fol_tp,
folyr TYPE so_fol_yr,
folno TYPE so_fol_no,
doctp TYPE so_doc_tp,
docyr TYPE so_doc_yr,
docno TYPE so_doc_no,
fortp TYPE so_for_tp,
foryr TYPE so_for_yr,
forno TYPE so_for_no,
END OF ty_message_key.
DATA : lv_message_key TYPE ty_message_key.
DATA : lo_message TYPE swc_object.
DATA : lt_doc_content TYPE STANDARD TABLE OF soli-line,
ls_doc_content TYPE soli-line.
* Create an initial instance of BO 'MESSAGE' - to call the
* instance-independent method 'Create'.
swc_create_object lo_message 'MESSAGE' lv_message_key.
* Upload the pdf file, for now from the frontend, in the future from
* the server.
DATA:
* dsn(40) TYPE C VALUE '/usr/sap/trans/convert/1.pdf', "server location
l_lines TYPE i. "filelenght
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = 'c:t1.pdf'
filetype = 'BIN'
IMPORTING
filelength = l_lines
TABLES
data_tab = lt_doc_content.
* no exceptions, the file is there in this example
break brouwersf.
** the coding for the server input, for later
*OPEN DATASET dsn FOR INPUT IN BINARY MODE.
*IF sy-subrc <> 0.
* EXIT.
*ENDIF.
*READ DATASET dsn INTO ls_doc_content.
*WHILE sy-subrc EQ 0.
* APPEND ls_doc_content TO lt_doc_content.
* READ DATASET dsn INTO ls_doc_content.
*ENDWHILE.
*CLEAR ls_doc_content.
*CLOSE DATASET dsn.
* define container to pass the parameter values to the method call
* in next step.
swc_container lt_message_container.
* Populate container with parameters for method
swc_set_element lt_message_container 'DOCUMENTTITLE' 'Title'.
swc_set_element lt_message_container 'DOCUMENTLANGU' 'E'.
swc_set_element lt_message_container 'NO_DIALOG' 'X'.
swc_set_element lt_message_container 'DOCUMENTNAME' p_docty.
swc_set_element lt_message_container 'DOCUMENTTYPE' p_msgtyp.
swc_set_element lt_message_container 'DocumentSize' l_lines.
swc_set_element lt_message_container 'DocumentContent' lt_doc_content.
swc_call_method lo_message 'CREATE' lt_message_container.
* Refresh to get the reference of create 'MESSAGE' object for attachment
swc_refresh_object lo_message.
* Get Key of new object
swc_get_object_key lo_message lv_message_key.
* Now we have attachment as a business object instance. We can now
* attach it to our main business object instance.
* Create main BO object_a
DATA: lo_is_object_a TYPE sibflporb.
lo_is_object_a-instid = p_bo_id.
lo_is_object_a-typeid = p_botype.
lo_is_object_a-catid = 'BO'.
* Create attachment BO object_b
DATA: lo_is_object_b TYPE sibflporb.
lo_is_object_b-instid = lv_message_key.
lo_is_object_b-typeid = p_docty.
lo_is_object_b-catid = 'BO'.
*TRY.
CALL METHOD cl_binary_relation=>create_link
EXPORTING
is_object_a = lo_is_object_a
is_object_b = lo_is_object_b
ip_reltype = p_reltyp.
* Check if everything OK...who cares!!
COMMIT WORK.Hi,
Welcome to the SDN Forums!!!
You need to supply the PC file extension in the container element 'DOCUMENTTYPE'.
swc_set_element lt_message_container 'DOCUMENTTYPE' p_msgtyp.
In your case change the above statement as below:
swc_set_element lt_message_container 'DOCUMENTTYPE' 'pdf'.
<b>OR</b> change the default value of p_msgtyp to 'PDF'.
Cheers,
Ramki Maley.
Please reward points if the answer is helpful.
For info on awarding points click on this link: https://www.sdn.sap.com/sdn/index.sdn?page=crp_help.htm
Message was edited by: Ramki Maley -
Customer with no sales activity
Hi All,
How to check the customer whoes doesn't have any sales activity at all.
Is there any Function module to find this?
Thanks,
SowmyaHi Sowmya,
I doubt that any function module exists for customer master sales summary. You can use the report program "RMCV0100" to fetch the customer sales analysis. SIS should be activated to get this work.
Regards
Ram Pedarla
Edited by: RamPedarla on Aug 7, 2009 7:01 PM -
Is there any FM or BAPI to get list of all sales orders
Hello all,
I have the requirement like below.
Is there any FM if i Pass Drawing document no, type,part,revision level which gives
the output list as.
1) all sales orders, where the above drawing document no is attached to the materials
and these materials are used as one of the lower level components in the Sales order BOM,
I need to show all those sales orders along with SO number,item,Material,Plant and BOM Item no,
2)all sales orders, where the above drawing document no is attached to the materials
and the same material is one of the item in sales order.
3)all sales orders, where the above drawing document no is used as one of the component in Sales order BOm's
Addition of 1,2,3 will be the o/p.
are there any FM or BAPI to get the above list.
Basically the above report is concatenation of report outputs of t-code CSD5 and CS15.
Awaiting reply.
Thanks.Hi venkatesh,
You can use the BAPI
BAPISDORDER_GETDETAILEDLIST
to get list of all sales orders.
Here is a lik which provides you BAPI'S regarding everything.
[http://www.saptechies.com/sap-bapi-list/]
Hope this will help you.
Regards,
Pavan. -
How to get timesheet information in a javascript (Project Server 2013)
Hi all,
In Project Server 2013, I'm trying to customize the Timesheet ribbon. This far, I've been able to add a new button and tie an event to it. All is working well. This is all done using elements.xml and a javascripts.
Now the problem is that I want to get some informations about the timesheet (the Guid for example) and, for now, I've got no success. I know that there is an object called PS.TimeSheet, but when I try to use some PS.TimeSheet's methods I get an error.
Note that i'm in the page http://servername/pwa/timesheet.aspx (there is not Guid in the address) and all the treatments should be done in the javascript (no call to another aspx page)
Thanks !Finally, I've found the solution.
My goal was to add a button in the timesheet ribbon to launch a special report showing some data about the timesheet. The report has the timesheet Guid as parameter.
To customize the Sharepoint ribbon, you have to do it via an xml file and a javascript (a lot of explanation is available in the internet that explains how to do it). So I had to call a function in the javascript to launch the report (which is a SSRS report).
When you are in a javascript you have access to many global variables. When the timesheet.aspx is displayed, there is a global variable called "timesheetComponent".
Using this variable we can call the method :
timesheetComponent.m_consumedApi.get_Impl()
to get an implementation of the current timesheet. This implementation has an attibute that has a lot of nice stuff about the current user and the current time sheet. This attribute is
_headerInfo
_headerInfo is a structure that includes tsUid which contains the timesheet Guid I was looking for.
Finally, the function attached to the button goes like this :
function _LaunchReport() {
var tsUId;
var rptPath;
var tsImpl = timesheetComponent.m_consumedApi.get_Impl();
try
if (CONST_REPORT_PATH == null || CONST_REPORT_PATH == "" ) {
alert("Constant CONST_REPORT_PATH is not defined")
else {
tsUId = tsImpl._headerInfo.tsUid;
rptPath = CONST_REPORT_PATH + 'TimesheetDetails&rs:Command=Render&rc:Parameters=false&TimesheetUID=' + tsUId;
window.open(rptPath);
catch (Err) {
alert(Err)
CONST_REPORT_PATH is the path to SSRS defined elsewhere
I hope this will help some other poeple ! -
How to get the information like IP address,Host name of connected clients v
Hi Every one,
I want to get the information like (IP Address,Hostname,Active sessions , Database Server .etc) of the connected clients
via V$Views(ORACLE).
And then I like to load these infromation into a table Client_Table.
Could some one give me suggestion that which V$ views/method I use in order to get the above information and then
how to load these information into a table Client_table?
Your suggestions will be highly appreciated.
With Regards
BILALYou could use a LOGON TRIGGER so every session insert its own environment into your client_info table.
You could use the following view and choose whatever attribute you need:
create or replace view my_userenv (
AUDITED_CURSORID ,
AUTHENTICATION_DATA ,
AUTHENTICATION_TYPE ,
BG_JOB_ID ,
CLIENT_IDENTIFIER ,
CLIENT_INFO ,
CURRENT_SCHEMA ,
CURRENT_SCHEMAID ,
CURRENT_SQL ,
CURRENT_USER ,
CURRENT_USERID ,
DB_DOMAIN ,
DB_NAME ,
ENTRYID ,
EXTERNAL_NAME ,
FG_JOB_ID ,
GLOBAL_CONTEXT_MEMORY ,
HOST ,
INSTANCE ,
IP_ADDRESS ,
ISDBA ,
LANG ,
LANGUAGE ,
NETWORK_PROTOCOL ,
NLS_CALENDAR ,
NLS_CURRENCY ,
NLS_DATE_FORMAT ,
NLS_DATE_LANGUAGE ,
NLS_SORT ,
NLS_TERRITORY ,
OS_USER ,
PROXY_USER ,
PROXY_USERID ,
SESSION_USER ,
SESSION_USERID ,
SESSIONID ,
TERMINAL
) AS SELECT
SYS_CONTEXT ('USERENV', 'AUDITED_CURSORID') ,
SYS_CONTEXT ('USERENV', 'AUTHENTICATION_DATA') ,
SYS_CONTEXT ('USERENV', 'AUTHENTICATION_TYPE') ,
SYS_CONTEXT ('USERENV', 'BG_JOB_ID') ,
SYS_CONTEXT ('USERENV', 'CLIENT_IDENTIFIER') ,
SYS_CONTEXT ('USERENV', 'CLIENT_INFO') ,
SYS_CONTEXT ('USERENV', 'CURRENT_SCHEMA') ,
SYS_CONTEXT ('USERENV', 'CURRENT_SCHEMAID') ,
SYS_CONTEXT ('USERENV', 'CURRENT_SQL') ,
SYS_CONTEXT ('USERENV', 'CURRENT_USER') ,
SYS_CONTEXT ('USERENV', 'CURRENT_USERID') ,
SYS_CONTEXT ('USERENV', 'DB_DOMAIN') ,
SYS_CONTEXT ('USERENV', 'DB_NAME') ,
SYS_CONTEXT ('USERENV', 'ENTRYID') ,
SYS_CONTEXT ('USERENV', 'EXTERNAL_NAME') ,
SYS_CONTEXT ('USERENV', 'FG_JOB_ID') ,
SYS_CONTEXT ('USERENV', 'GLOBAL_CONTEXT_MEMORY') ,
SYS_CONTEXT ('USERENV', 'HOST') ,
SYS_CONTEXT ('USERENV', 'INSTANCE') ,
SYS_CONTEXT ('USERENV', 'IP_ADDRESS') ,
SYS_CONTEXT ('USERENV', 'ISDBA') ,
SYS_CONTEXT ('USERENV', 'LANG') ,
SYS_CONTEXT ('USERENV', 'LANGUAGE') ,
SYS_CONTEXT ('USERENV', 'NETWORK_PROTOCOL') ,
SYS_CONTEXT ('USERENV', 'NLS_CALENDAR') ,
SYS_CONTEXT ('USERENV', 'NLS_CURRENCY') ,
SYS_CONTEXT ('USERENV', 'NLS_DATE_FORMAT') ,
SYS_CONTEXT ('USERENV', 'NLS_DATE_LANGUAGE') ,
SYS_CONTEXT ('USERENV', 'NLS_SORT') ,
SYS_CONTEXT ('USERENV', 'NLS_TERRITORY') ,
SYS_CONTEXT ('USERENV', 'OS_USER') ,
SYS_CONTEXT ('USERENV', 'PROXY_USER') ,
SYS_CONTEXT ('USERENV', 'PROXY_USERID') ,
SYS_CONTEXT ('USERENV', 'SESSION_USER') ,
SYS_CONTEXT ('USERENV', 'SESSION_USERID') ,
SYS_CONTEXT ('USERENV', 'SESSIONID') ,
SYS_CONTEXT ('USERENV', 'TERMINAL')
from dual; -
How do i get my information and data back onto my 4s?
Let me tell you how it happened and see if you can find an answer: I was going to the computer that i use to put music on to load some music on to my 4s. when i opened itunes, it said "set up as new iphone" or "set up from backup". i chose the "from backup" because i had an old 4s, but the speakers wern't working, so i got a new one, but the last backup to restore it from was from a couple of months back. i chose it, and it synced my iphone, but i hadn't done anything yet. when i checked my iphone, all of my contacts, notes, email accounts were gone. im desperate and how do i get this information back on?
Thanks for replying. I had to do this process in order to get ICloud activated so I don't have it there. I do have an external backup of the Itunes library, but it sounds like that would also restore the restriction password that I don't know.
Why would ICloud be different (if I had backed up there?) Does it only save data?
And It sounds like I need to keep my contacts in another source .... such as? ... No, I don't use email much and my contacts arec the phone numbers I've captured in my phone. After I have them backed up to ICloud, do I also need to make sure they are somewhere else to where I won't run into losing them again?
appreciate your experience and help. -
Interactive ALV to report to get into Material Master Sales View
Hi,
I want to know way to get into Material master Sales view from an Interactive ALV report.
In the output we have (custom report for Sales) the Sales Order item information. If the user double clicks on the material, it should directly goes to the Material Master Sales org 1 view. I can able to get to MM03 initial screen to display the list of views, but it would be better we can use the Plant, Sales Org and plant info from Sales Item to get into the material master Sales view.
I checked that this functionality is there in the standard code. If you double click on the material in Purchase order display(ME23N) from the item level, it is directly getting into Material Master Purchasing view. Is there a way to achieve this.
Your suggestions would be appreciated with points. Thanks!Hello,
Yes, it's possible using the CALL TRANSACTION command with the addition AND SKIP FIRST SCREEN. The only thing that you need is to fill the fields from the first screen (SET PARAMETER command).
DATA: carrid TYPE spfli-carrid,
connid TYPE spfli-connid.
SET PARAMETER ID: 'CAR' FIELD carrid,
'CON' FIELD connid.
CALL TRANSACTION 'FLIGHT_TA' AND SKIP FIRST SCREEN.
Regards. -
Get Attachment Name and from address of mail in bpel process
Hi All,
I am using UMS Adapter to poll email server and getting the attachment and saving it to local disk.
In Payload from UMS adapter i am getting href of the attachment but I am not able to figure out as to how to get Attachment Name and From Address of a mail in my Bpel process.
please guide me in getting them .
Thanks in Advance
Divyanshu1. Double click on your composite receive activity.
2. Go to Properties tab in your receive activity.
3. Click "+".
4. Window that pops up,scroll down and select "jca.ums.from" and store it in some variable say fromAddress (Make sure before adding this property u create fromAddress variable of string data type).
5. Click OK.
6. In the same way add property for "jca.ums.msg.content-description" from drop down and assing it to some variable.
you are good to go.
Hope this helps.
Regards,
Karan
Oracle Fusion Middleware Blog -
Why can I not use the channel name, which is obtained from the function of DAQmx Task, as the input of the channel name for the function of Get Channel Information of DAQ?
Not a lot of details here, but my guess is this isn't working for you because you are wiring in the task to the Active Channels Property and not the actual Channel Name. I have attatched a screenshot of what I believe you are trying to do. The Task has 2 channels in it, so I need to index off one of the channels and wire it into the active channels input of the Channel Property node. Then I can read information about that channel
Attachments:
channel_name.JPG 69 KB -
Entering payment cards information in sales order
Hi Folks,
I am uploading the payment cards information in sales order using transaction VA02. I need to check if there is an already existing payment card in order to know the line number to enter the new card information. I know that FPLTC table has the information about the payment cards. How can I read the already existing lines and pass the new card information in the new line?
Thanks,
RAJTables: VBAK, FPLTC, FPLA.
Hi,
I am attaching my code. It would be really helpful for me if someone can tell me what should be the exact key to read the data. Somehow only one condition is true in this case.
Data : Begin of itab occurs 0,
VBELN(10) type C, "Sales order Number
AUTWR(15) type C, "Maximum amount
end of itab.
DATA : Begin of itab1 occurs 0,
FPLNR LIKE FPLTC-FPLNR,
FPLTR LIKE FPLTC-FPLTR,
ccnum like FPLTC-CCNUM,
CCINS LIKE FPLTC-CCINS,
END OF ITAB1.
DATA : ITABH LIKE ITAB OCCURS 0 WITH HEADER LINE,
ITABI LIKE ITAB OCCURS 0 WITH HEADER LINE.
include bdcrecx1.
Parameter : PATH(128) OBLIGATORY.
start-of-selection.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
FILENAME = PATH
FILETYPE = 'DAT'
TABLES
DATA_TAB = itab.
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 ITAB1.
Select FPLTCFPLNR FPLTCFPLTR FPLTCCCNUM FPLTCCCINS into
corresponding fields of itab1 from FPLTC INNER JOIN vbak on fpltc~Fplnr
eq vbak~Rplnr.
ENDSELECT.
ITABH[] = ITAB[].
ITABI[] = ITAB[].
SORT ITABH.
DELETE ADJACENT DUPLICATES FROM ITABH COMPARING vbeln.
perform open_group.
Loop at itabh.
perform bdc_dynpro using 'SAPMV45A' '0102'.
perform bdc_field using 'BDC_CURSOR'
'VBAK-VBELN'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'VBAK-VBELN'
ITABh-VBELN.
perform bdc_dynpro using 'SAPMV45A' '4001'.
perform bdc_field using 'BDC_OKCODE'
'=KRPL'.
Read table itab1 with key FPLNR = VBAK-RPLNR.
perform bdc_dynpro using 'SAPLV60F' '4001'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'BDC_CURSOR'
'RV60F-CCBEG(03)'.
perform bdc_field using 'FPLTC-CCINS(03)'
'CHCK'.
perform bdc_field using 'FPLTC-CCNUM(03)'
'0000000000000001'.
perform bdc_field using 'CCDATE-EXDATBI(03)'
'12/2009'.
perform bdc_field using 'RV60F-CCBEG(03)'
'X'.
if sy-subrc <> 0.
perform bdc_dynpro using 'SAPLV60F' '4001'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'BDC_CURSOR'
'RV60F-FAKWR(02)'.
perform bdc_field using 'RV60F-FAKWR(02)'
ITABh-AUTWR.
perform bdc_dynpro using 'SAPLV60F' '4001'.
perform bdc_field using 'BDC_OKCODE'
'=CCMA'.
perform bdc_field using 'BDC_CURSOR'
'FPLTC-CCINS(02)'.
perform bdc_field using 'FPLTD-SELKZ(02)'
'X'.
else.
perform bdc_dynpro using 'SAPLV60F' '4001'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'BDC_CURSOR'
'RV60F-FAKWR(01)'.
perform bdc_field using 'RV60F-FAKWR(01)'
ITABh-AUTWR.
perform bdc_dynpro using 'SAPLV60F' '4001'.
perform bdc_field using 'BDC_OKCODE'
'=CCMA'.
perform bdc_field using 'BDC_CURSOR'
'FPLTC-CCINS(01)'.
perform bdc_field using 'FPLTD-SELKZ(01)'
'X'.
endif.
perform bdc_dynpro using 'SAPLV60F' '0200'.
perform bdc_field using 'BDC_CURSOR'
'FPLTC-AUTWR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'FPLTC-AUNUM'
'111'.
perform bdc_field using 'FPLTC-AUTWR'
ITABh-AUTWR.
perform bdc_dynpro using 'SAPLV60F' '0200'.
perform bdc_field using 'BDC_CURSOR'
'FPLTC-AUNUM'.
perform bdc_field using 'BDC_OKCODE'
'=BACK'.
perform bdc_dynpro using 'SAPLV60F' '4001'.
perform bdc_field using 'BDC_OKCODE'
'=S\BACK'.
perform bdc_field using 'BDC_CURSOR'
'FPLTC-CCINS(05)'.
perform bdc_dynpro using 'SAPMV45A' '4001'.
perform bdc_field using 'BDC_OKCODE'
'=SICH'.
perform BDC_TRANSACTION using 'VA02'.
ENDLOOP.
perform close_group. -
How can I get the information on the Users history in Enterprise 6.3.1
Need help on the following. Since I'm an HFM guy and havent touch Enterprise for a while, I need help on the following:
We want to have a report that indicates the Users history re: date and time users sign in and out of each Hyperion 6.3.1 application.
Where can I get that information? Was thinking to look in <application>.use file but not able to see it properly using a text editor.Enterprise does not have any logs that track login/logout information. You can potentially check the error log for the first activity a user executes for example:
data refresh or data load, which contain date and time of execution, but it will require some data filtering.
Maybe you are looking for
-
On PALM conputer display, how do I change from 24 hr. display to 12 hour display on calendar? I cannot find anything in 'prefrences' or 'settings'. My handheld is displaying the 12 hour format. Post relates to: Tungsten E
-
I've opened Bridge and selected a thumbnail in the content browser, but no image appears in the preview panel. I'm assuming it's because my processor is less than the recommended ones (Pentium 4, etc. - I get a message that Bridge may perform poorly
-
Hi ! Please can any one help me reagrding Document Flows with T-codes for below modules. PP, FICO, QM, PM, WM. Thanks in advance. Regards, Pieadad.
-
How to play online ESL games simultaneously?
Hello, I teach English to Spanish-speaking children living in an orphanage. I use screen share with the students. How can we play online ESL games simultaneously? Let's say that I click on the + to screen share and go to any online ESL game. The
-
My code is correct and I have a .class extension for each successful source code file. However, when I try to compile a successful application such as javac AccountTest.java, the command prompt says that 'javac' is not recognized as an internal or ex