In SAP, why update work process is listed as V and not U as it goes enque is listed E, Background as B and so on.
Why update work process is listed as V and not U
OSS notes - how to view
Hi,
Given a note number how can view the details of this OSS note. Is it always safe to download the note in SNOTE transaction. How can i know what note numbers can be viewed(downloaded) in which version of system. Please help. Thanks.
Dump in Transfer statement
Hello,
I am trying to place a file containing vendor and other information into application server. There is a dump occuring in the transfer statement
The error statement is
For the statement
"TRANSFER f TO ..."
only character-type data objects are supported at the argument position
"f".
The work area has many non character fields and i guess from the error message that is the reason for the same.
My question is, is the program dumping because it is a unicode program or even for non-unicode program if non character fields are used in the work area for TRANSFER statement the program will go for dump.
Regards,
Prem
SAP banking Information
HI experts
I am ABAP developer, i wanted the information regarding the SAP for banking industry like what are the core applications,modules,requirements,enhancement packages, workflows,etc used in sap for banking industry.
I gone through the SAP banking information but i got the overview of SAP banking, now i am searching for above mentioned topics.
please if any one of you have the details please provide me.
Thanks
Shambuling
Parking Invoice using 'PRELIMINARY_POSTING_FB01'
Hi All,
We have used the FM ' PRELIMINARY_POSTING_FB01' for parking an Vendor Invoice. With test data created in FM for BKPF and BSEG and the Transaction code as FV60 we are able to Park Document.
But when the same data is passed in FM using report program, there is message saying 'No items Transferred'.
Can any one help on this.
Actually In the tables section of FM the parameters t_bsec t_bset t_bsez are mandatory, so I created internal tables for these three different parameters and placed it in the table section of FM. These internal table doesnot contain any data they are empty.
Regards,
Mohammed
How to calculate difference between two dates and insert result into a variable.
Diff = date_today - tag
*date_today: today's date.
*tag : is always an earlier date than today's date.
tag is a field in table ztab.
i have coded:
DATA :
date_today TYPE sy-datum,
w_days TYPE i,
w_months TYPE i,
w_years TYPE i.
date_today = sy-datum .
CALL FUNCTION 'C14B_DIFF_BT_2_DATES'
EXPORTING
i_date_from = wa_ztab-tag
i_date_to = date_today
IMPORTING
e_days = w_days
e_months = w_months
e_years = w_years
EXCEPTIONS
plausibility_check_failed = 1.
WRITE /:
w_days,
w_months,
w_years.
Q) will the following code work right? if yes, then how can i insert the result into "diff" variable ??
The IN operator with "SO_NTGEW" is followed neither by an internal table nor by a value list.
Here is my program starting at the select options.
SELECT-OPTIONS:
so_zshpc for vbap-zzshipto_cust,
so_nwgew FOR vbap-ntgew,
so_name1 for kna1-name1,
so_vdatu for vbak-vdatu,
so_vbeln for vbak-vbeln.
START-OF-SELECTION.
PERFORM f_populate_table.
PERFORM f_write_list.
END-OF-SELECTION.
FORM f_populate_table.
SELECT zzshipto_cust vbeln ntgew into (int_cust_tab-zzshipto_cust, int_cust_tab-vbeln,
int_cust_tab-ntgew)
FROM vbap
WHERE zzshipto_cust in so_zshpc
AND vbeln IN so_vbeln
AND ntgew IN so_ntgew.
The syntax error is in the last line.
Any ideas?
HELP REQUIRED EXPERIENCED ABAP DEVELOPER.
Hello experts.
i am learning ABAP. i found in very interesting yet a bit confusing programming language.
i am in need of some help from an expert for my problems.
I have a flow diagram for which i have tried coding. but in some situations i am unable to find a fit solution for the problem.
the code is below and diagram is attached in a file.
I HAVE DIVIDED THE DIAGRAM IN STEPS AND CODED ACCORDINGLY.
CODE :
TABLES: ZPATCORE, ZNPAT, ZNBEW.
DATA: wa_ZPATSE TYPE ZPATSE,
wa_ZPATCORE TYPE ZPATCORE,
wa_ZNBEW TYPE ZNBEW,
wa_ZNPAT TYPE ZNPAT
date_today TYPE d,
alldays TYPE i.
DATA: ITAB1 LIKE ZPATCORE, /////// comment ////////// creating internal tables for Database tables.
ITAB2 LIKE ZNPAT,
ITAB3 LIKE ZNBEW.
SELECT * FROM ZAPTCORE INTO ITAB1.
SELECT * FROM ZNPAT INTO ITAB2.
SELECT * FROM ZNBEW INTO ITAB3.
1) Read all combination of PatID and FallID and BettNr from ZNBEW where:
Fach=’its’ and behend=”31.12.9999”
select PatID,FallID,BettNr
from ZNBEW
into wa_ZNBEW
where fach EQ ‘its’
and behend EQ “31.12.9999”
and NOT BettNr eq ‘99’. //////////// comment ////////////// the value with znbew-BettNr NOT EQ ‘99’ is not passed further.
2) If combination of PatID and FallID exists in ZPATCORE and ZNBEW-BettNr not= “99”
IF sy-subrc EQ 0 wa_ZPATCORE IS INITIAL.
Select PatID ,FallID
From ZPATCORE
Into wa_ZPATCORE
Where PatID EQ wa_ZNBEW-PatID
And FallID EQ wa_ZNBEW-FallID.
3) Read name and vorname and gebudat from ZNPAT where id=PatID
4) Read ifdnr and itstag from ZPATCORE.
IF sy-subrc EQ 0.
SELECT * FROM ZNPAT INTO TABLE ITAB2
FOR ALL ENTRIES IN ITAB1
WHERE PatID = ITAB1-PatID.
* Alldays=date _today-itstag
date_ today = sy_datum .
alldays= date_today – wa_ZPATCORE-itstag //////// as i know that days= date_1- date_2 or i should use a function module called "C14B_DIFF_BT_2_DATES "
For String output
SELECT PatID, Ifdnr, BettNr FROM ZNBEW INTO TABLE ITAB3
FOR ALL ENTRIES IN ITAB2
WHERE PatID = ITAB2-PatID. ////////////////////////// for the value of BettNr from table znbew according to PatID of table ZNPAT
LOOP AT ITAB3.
Write: / ‘ifd:’ ITAB3-Ifdnr,
‘Bett:’ ITAB3-BettNr ,
‘Name,Vorname:’ ITAB3-Name ITAB3-Vorname,
ITAB3-Gebdat,
‘Tag:’ITAB3-alldays.
END LOOP.
xxx---------------------------------------------------------------------------------------xxx
DATABASE TABLES USED FOR THE DIAGRAM AND DESCRIPTION.
Tables:
ZNBEW:
-lfdnr (integer)
-PatID (integer)
-FallID (integer)
-BettNr (integer)
-fach (string)
-behend (date)
=>Comment: There are lines with the same PatID and FallID, lfdnr is a number from 1 to n.
at every combination of PatID and FallID, lfdnr is only once there
Example:
PatID FallID lfdnr
4 1 1
4 1 2
4 1 3
4 3 1
ZPATCORE:
-PatID
-FallID
-BewID
-aufnahmestatus_vollst (char)
-entlassstatus_vollst (char)
-itstag(date)
-ifdnr
=>Comment: There Every line with PatID and FallID has a different value of BewID
ZNPAT:
-PatID
-Name(string)
-Vorname(string)
-Gebudat(date)
**alldays=date_today-itstag
alldays is the number of days beetween date_today and itstag.
itstag is allways a date earlier than date_today.
MY QUESTIONS ARE :
1) How to loop for the next combination? (from flow diagram)
2) Is it ok to use “wa_ZPATCORE-itstag” for the calculation of ‘alldays’ calculation?
(* Alldays=date _today-itstag)
3) I have used ‘FOR ALL ENTRIES’ instead of joins? So is it ok to use them or joins are more beneficial?
4) will the code work as the diagram intended it to work?
***** please note flow diagram is in a file 'img.png' attached to this post.
thank you.
Suppress Accounting View in IDOC_INPUT_MATMAS01
All of our parts have been created via IDOC_INPUT_MATMAS01 for several years. When the standard cost was not available we would default in a value (99999.99) and allow the complete part to create as before. However now we have a new requirement to NOT send in the default value and furthermore to NOT create any of the Accounting Views (the rest of the part should create as before) when we don't have the standard price. I have tried all day with WE19 to suppress sending certain values to prevent the accounting view, with no success. Whenever I leave out certain values I get messages stating those values are required (ie "Enter a valuation class"). I have tried to remove the entire E1MBEWM segment with no success (same error). Additionally, I have tried to add the PSTAT fields both at the header and the plant level to indicate I don't need the Accounting View (by leaving out the "B" value), again with no success.
I believe this should be possible because I can create a part without any plant level data via WE19, and I can also create a part via the UI with plant data but without the Accounting View. We have, and I believe need, the Accounting View required in transaction OMS2.
Does anyone have any ideas that will help me?
Thanks in advance for any help!
Mike
OO ALV Cell Merge Problem when editable fields
Hi there!
I'm using OO ALV ( CL_GUI_ALV_GRID ) and experiencing a strange problem.
I'm interested in the cells merging functionality of ALV, when i sort data for a specific field.
It works fine but only if i do not set any field as editable ( lvc_s_fcat-edit = 'X' ).
For some reason ALV loses some of its functionality when you set a field as editable.
I've noticed it also with the functionality of expanding/supressing data when using subtotals.
If any field is set as editable then subtotals come always expanded, you cannot supress them...
Has anyone else experienced somethng like this before? Any help will be appreciated!
BR
George Zervas
TEXT_SYMBOL_REPLACE not working within a class method
I am developing a class. I have a method that reads in a text object which has an HTML page. I am then trying to replace the dynamic variables by calling the function TEXT_SYMBOL_REPLACE. The function does not recognize the variables declared in the class. If I write a program and call the function, it works. I have tried passing in different values for the REPID.
* Read the HTML Template
CALL FUNCTION 'READ_TEXT'
EXPORTING
* CLIENT = SY-MANDT
id = 'ST'
language = sy-langu
name = 'MYHTMLTEXT'
object = 'TEXT'
* ARCHIVE_HANDLE = 0
* LOCAL_CAT = ' '
IMPORTING
header = ls_head
TABLES
lines = lt_lines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
IF sy-subrc <> 0.
...
ENDIF.
CALL FUNCTION 'TEXT_SYMBOL_REPLACE'
EXPORTING
* ENDLINE = 99999
header =
* INIT = ' '
* OPTION_DIALOG = ' '
PROGRAM = 'SY-REPID "also tried SY-CPROG
REPLACE_PROGRAM = 'X'
REPLACE_STANDARD = 'X'
REPLACE_SYSTEM = 'X'
REPLACE_TEXT = 'X'
* STARTLINE = 1
* IMPORTING
* CHANGED =
* NEWHEADER =
tables
lines = lt_lines
.
Is there anyway to get this function to work within a class method? Or is there another function? My text object looks like:
<TD> &v_START_DATE& </TD>
I have a variable declared as V_START_DATE within the method. I also tried putting in the program name at runtime:
<TD> &(ZCL_MYTESTCLASS=======CP)v_START_DATE& </TD>
Any help would be appreciated.
Thanks,
Jay
Open dataset, CRLF and blank lines after every record
Hello,
I need help regarding open dataset coding in couple of reports I'm developing for one of our vendors. This is my initial coding:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
CONCATENATE '/rb-sftp/' sy-sysid '/RB_MENA_KUW_Mezzan_OutletSales_' gv_date '.csv' INTO gv_filename.
IF NOT lt_final[] IS INITIAL.
* Openining the Dataset....
OPEN DATASET gv_filename FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc EQ 0.
* Moving the data to dataset.
LOOP AT lt_final INTO wa_final.
CONCATENATE wa_final-kunrg wa_final-slqty wa_final-slval wa_final-frqty wa_final-vrkme wa_final-fkdat
wa_final-matnr wa_final-rtqty wa_final-dmqty INTO gv_string SEPARATED BY '|'.
TRANSFER gv_string TO gv_filename.
CLEAR: gv_string, wa_final.
ENDLOOP.
* Closing the dataset.....
CLOSE DATASET gv_filename.
WRITE 'File is uploaded to application server'(003) .
WRITE /'Path:'(004).
WRITE gv_filename.
ELSE.
WRITE 'File is not uploaded to application server'(005).
ENDIF.
ELSE.
WRITE 'No data found for generation of file'(006).
ENDIF.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
When I open the resulting file in Notepad, the data looks like a continous line as though Word Wrapped but when I open the file normally, it shows the records one line below the other. Since it was difficult for the vendor to distinguish between records, they asked us to use the Carriage Return/Line feed to separate records. After doing the necessary changes, now in Notepad it displaying as one line below the other but when opened normally, the file has one blank line after each record. Is there any way to remove the blank lines or to prevent it from happening, yet get the records in the proper format? Below is the code I have now:
----------------------------------------------------------------------------------------------------
CONCATENATE '/rb-sftp/' sy-sysid '/RB_MENA_KUW_Mezzan_OutletSales_' gv_date '.csv' INTO gv_filename.
l_v_cr_lf = cl_abap_char_utilities=>cr_lf.
IF NOT lt_final[] IS INITIAL.
* Openining the Dataset....
OPEN DATASET gv_filename FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc EQ 0.
* Moving the data to dataset.
LOOP AT lt_final INTO wa_final.
CONCATENATE wa_final-kunrg wa_final-slqty wa_final-slval wa_final-frqty wa_final-vrkme wa_final-fkdat
wa_final-matnr wa_final-rtqty wa_final-dmqty l_v_cr_lf INTO gv_string SEPARATED BY '|'.
TRANSFER gv_string TO gv_filename.
CLEAR: gv_string, wa_final.
ENDLOOP.
* Closing the dataset.....
CLOSE DATASET gv_filename.
WRITE 'File is uploaded to application server'(003) .
WRITE /'Path:'(004).
WRITE gv_filename.
ELSE.
WRITE 'File is not uploaded to application server'(005).
ENDIF.
ELSE.
WRITE 'No data found for generation of file'(006).
ENDIF.
PDF RAW data to SAP printer
Hi All,
I have RAW data in my internal table and I can download the data to my PC and save it as PDF . I can send the RAW data as an Email Attachment .
The other Option I need to do is I need to Print the RAW data .
The Options that I have tried.
1) I tried using F/M RSPO_SX_OUTPUT_DEVICEDATA it printed the data to printer where the Borders are not coming and the Log is not coming entirely. and the 2nd Page with terms and conditions is coming junk.
2) Used the Function Module ADS_SR_OPEN, ADS_GET_PATH , ADS_SR_CONFIRM and ADS_SR_CLOSE where the output is same as above . But when I go to SP01 to see the spool , I can see the PDF looking correctly but print is not coming .
3) Download the file to Fronted on the PC and used CL_GUI_FRONTEND_SERVICES=>EXECUTE to print , it printed both the pages correctly but again the Borders are gone and Logo is not complete.
Now when I down load the raw data to front end and if I open that PDF and give it to printer then its working fine.
Now I want your help in printing this RAW data to the printer . As said options above are already tried. So please suggest me with your help and opinions.
Thanks
Venkat.
Duplicate condition record in Pricing for Sales Order
Hi Friends,
When a sales order is created from an Inbound Idoc, it is creating duplicate manual pricing condition in the Item level. In header there is no duplicate.
In the Item level one inactive (red) condition is created and which is followed by teh correct Active Pricing condition record.
It is checked for Manual Pricing - Any suggestions Please to locate the correct point where the Pricing record is created or copied ?.
Greatly appreciate the help in this.
Thanks
Swarna
HTML Email and Spanish/Portuguese Characters
Hi All,
We have written a code which fills up an internal table with email content in HTML format. The fort declaration is Arial. There is some issue with Portuguese / Spanish characters. Descrição shows up as Descrição . The best part is in SOST the mail looks messed up however when it reaches Outlook it looks ok. Now if the same mail is sent to Lotus Notes it looks bad. I have a feeling that in the end it may have to something to do with mail client. But my question is can we fix sth in SAP for this? Specially when the SOST looks messed up.
The way code is written is it creates a table with HTML coding. Then it converts the HTML code to BINARY using SCMS_TEXT_TO_BINARY FM. I am not using any encoding (but i tried using 4110 (which is for UTF-8 I believe), and it did not help).
This is SRM workflow notification email which uses CL_BCS class and methods. In debugging I see that the standard code uses BINARY table to send HTML mails.
Any pointers? Can it be a Unicode thing? The system is non-Unicode.
Thanks
Find attached asset to an equipment-nr
Hi,
i need to find the attached asset to an equipment-nr.
Is there an FUBA with which i can achieve this?
Best regards
Dynamic Action
I am defining an external routine:TRIGGER_SEP (YHRMR_TRIGGER_SEPARATION) in Dynamic Action(V_T588Z) for Infotype 0000 with FC = 04/06. I have put a BREAK-POINT in the external routine. But when I am running any action in PA30/PA40 the record gets created in PA0000 but the external routine doesn't get executed. Can anybody help me out please.. Thanks in advance.
module Pool : Table control
How can we create or show shadow in a row in table control for example
First row should be gray in color and 2nd row in different color white and third one is gray color and 4th should be gray color ad so on.
With Regards
Rajesh K Singh
SAP Script Issue
Hello SDN Experts,
Issue in SAP Script - Skips to next page by leaving the first page blank
Code Used(Code for Material Description marke in BOLD)
/E ITEM_LINE_1
TM ,,&EKPO-EBELP(Z)&,,&EKPO-EMATN&,,&TTXIT-TDTEXT&,,&EKPO-MENGE&,,
= &EKPO-MEINS&,,&EKPO-NETPR(R)&,,&EKPO-NETWR(R)&
/: INCLUDE &GS_T166P_MAT-TXNAM& OBJECT &GS_T166P_MAT-TDOBJECT&
ID &GS_T166P_MAT-TDID& LANGUAGE &EKKO-SPRAS&
PARAGRAPH MM -- ( Material Description Code )
Case 1 : Correctly Printed- Print Preview of PO in ME23N TCODE.
Case 2 : Issue - Print Preview of same PO in ME23N TCODE after addition of extra text for material description
Here in First page it left the page blank and skips to next page
I tried in many ways. Please help me out of this issue.
Thank You,
Swetha.C
Mark check box automatically in Multiple selection F4 help
Hi,
On using the below FM i can select multiple entries in the F4 POP UP..
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'P_ERNAM'
value_org = 'S'
multiple_choice = 'X'
TABLES
value_tab = it_ernam
return_tab = it_return1
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
My requirement is to auto select few entries that i send in value tab.
In the pop up screen. ( Mark the check boxes of few entries automatically when it pop's up on F4).
What is the field that is the check box ?
Thanks and regards,
Bharathi Arasu.