Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all 8332 articles
Browse latest View live

Defined field is too small error in qas

$
0
0

Dear all ,

 

I am getting defined field is too small in qas server but in dev im not getting any error ,, error showing me problem is with 'move' statement,

 

Run time error:

 

          loop at itab to wa_tab.

 

>>>>>>>>move  corresponding wa_tab to wa_tab2.

 

 

in wa_tab i have field itemno type DEC length 8 decimal places 3 .

in wa_tab2 the same field have type P decimals 3 ,,,,,, is this a reason for a dumb ???

 

if yes , why there is no dumb in DEV server.

 

itab have 160 line items for first five line items there is no dumb that  i have debugged . dumb coming only after some line items

 

 

 

Thanks


Change in data element

$
0
0

dear all ,

 

I have changed my data element of a field in a  table , previously that was N 5 length , now i have changed to P decimal 3 ..if i move this to qas server , this table already in qas with datas,, when i try to moving that to qas i cannot move the request to qas but i can see the changes in table i mean data element changed to P in qas , but when i try to see contents in se11 , i am getting TABLE IS NOT FOUND IN DATABASE , and i tried to adjust thro SE14 , ther was error log and i tried to  unlock the table but it showing 'data will be lost ' . what should i do to rectify that .

 

Thanks

LSMW - not all lines are displayed

$
0
0

We just upgraded to ERP 6.06 and SAP Basis 731 and  I am doing the first time LSMW after this upgrade.

 

To my surprise SAP hides the ABAP coding lines if there are more than 16 coding lines and shows a line with "not all lines are displayed - double click"

A search for a string which is located in this hidden section is not found anymore, even when "in whole hierarchy" is selected in the search.

 

Anybody there who knows how to include those hidden section into the search, or how to expand all those hidden sections?

The expand icon does not work for this section, a double click just opens the coding for this one field in a new screen.

 

LSMW_hidden2.PNG

Employee Photo - Bitmap Automation (for Dynamic Employee Photos in Smartforms)

$
0
0

EMPLOYEE PHOTO - BITMAP AUTOMATION

( TO BE DISPLAYED ON SMARTFORMS )

 

Recently we needed the functionality to print Employee Photos on smartforms. As smartforms only show BMP files uploaded via SE78 and employee photos are mostly JPG files with different stories we had to make some sort of automation that gets the employee photo, converts it to bitmap file and upload this BMP file to SE78 via background processing.

 

1. Displaying Pictures Dynamically in Smartforms

 

First we create a dummy smartform and an input parameter for SE78 file name (IPERNR in our case).

 

1.jpg

 

Then we put a graphic component in our smartform  parameters as below.

 

2.jpg

 

Here; &IPERNR& variable should have the name of an SE78 GRAPHICS file with ID = BMAP and type = BCOL (for Colored Images).

 

3.jpg

 

Below screenshots are smartform test screen and SE78 display screen, IPERNR parameter has the same name as image name in SE78.

 

21.jpg

5.jpg

 

We can see and print the image succesfully.

 

6.jpg

 

2. Converting External Image Formats (JPG/GIF/TIFF/PNG) to Bitmap

 

SAP has a class CL_IGS_IMAGE_CONVERTOR for these purposes.

 

7.jpg

 

This class has below public methods that all together used to set and convert image files with extensions JPG, GIF, TIFF and PNG.

 

8.jpg

 

There is a prerequisite to use this class properly and that is IGS (Internet Graphics Server) must be up and running. If IGS is not installed and configured, you should receive RFC Destination error. IGS is explained below.

 

 

 

3. IGS (Internet Graphics Server)


"Execute" method of class CL_IGS_IMAGE_CONVERTER uses below RFC destination as default to send file to IGS for conversion so if IGS is not up and running you should get an RFC error and conversion process will not work.

 

9.jpg10.jpg

11.jpg

 

If Connection Test is succesful than we can say the IGS is up and running.

12.jpg

 

4. Note 454042 - IGS: Installing and Configuring the IGS

 

If IGS is not running than BASIS should apply this note which explains the steps clearly.

 

454042 - IGS: Installing and Configuring the IGS

 

5. Programming Step

 

Some number of approaches can be used to develop this kind of program. As SE78 and similar tcodes work on frontend services like GUI_UPLOAD, I used DATASET logic to handle data uploading and data storing. (Complete source code added at the end of the document.)

I used PNP logical database as I want to fetch Employee Photo. The logic of the program goes like this.

 

13.jpg

 

fetch_and_convert_emp_photo subroutine starts with employee photo check.

 

14.jpg

then we get the binary data for the file

 

15.jpg

then we write the binary file to /usr/sap/trans/ directory

 

16.jpg

 

then we read this file into an xstring typed variable and delete the JPG file from directory. Here I used FM - ZBMP_CREATE_FROM_EXT_FORMAT which gets the xstring file and converts to bitmap.

 

17.jpg

 

Thomas Jung has a nice article about ABAP Bitmap Image Processing Class which tells us about ZCL_ABAP_BITMAP class. This class has a method CREATE_FROM_EXT_FORMAT which this function is derived from.

 

18.jpg

19.jpg

 

The method uses standard components so you may directly create this simple FM instead of Implementing whole ZCL_ABAP_BITMAP and call this FM instead of using ZCL_ABAP_BITMAP class methods.

 

 

Source Code is as follows;

 

FUNCTION ZBMP_CREATE_FROM_EXT_FORMAT.

*"----------------------------------------------------------------------

*"*"Local Interface:

*"  IMPORTING

*"     REFERENCE(XSTREAM) TYPE  XSTRING

*"     REFERENCE(FORMAT) TYPE  STRING DEFAULT 'JPG'

*"  EXPORTING

*"     REFERENCE(BITMAP) TYPE  W3MIMETABTYPE

*"----------------------------------------------------------------------

 

  DATA: l_igs_imgconv TYPE REF TO cl_igs_image_converter,

         l_img_blob    TYPE w3mimetabtype,

         l_img_size    TYPE w3param-cont_len,

         l_bmp_xstream TYPE xstring.

 

   CREATE OBJECT l_igs_imgconv.

 

   l_img_size = XSTRLEN( xstream ).

 

   CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'

     EXPORTING

       buffer     = xstream

     TABLES

       binary_tab = l_img_blob.

 

   CALL METHOD l_igs_imgconv->set_image

     EXPORTING

       blob      = l_img_blob

       blob_size = l_img_size.

 

   DATA l_format TYPE string.

 

   l_format = format.

 

   CASE l_format.

     WHEN 'TIF'.

       l_igs_imgconv->input  = 'image/tiff'.

     WHEN 'JPG'.

       l_igs_imgconv->input  = 'image/jpeg'.

     WHEN 'PNG'.

       l_igs_imgconv->input  = 'image/png'.

     WHEN 'GIF'.

       l_igs_imgconv->input  = 'image/gif'.

     WHEN OTHERS.

       EXIT.

   ENDCASE.

 

   l_igs_imgconv->output = 'image/x-ms-bmp'.

 

   CALL METHOD l_igs_imgconv->execute

     EXCEPTIONS

       OTHERS = 1.

 

   IF sy-subrc IS INITIAL.

 

     CALL METHOD l_igs_imgconv->get_image

       IMPORTING

         blob      = l_img_blob

         blob_size = l_img_size.

 

     CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'

       EXPORTING

         input_length = l_img_size

       IMPORTING

         buffer       = l_bmp_xstream

       TABLES

         binary_tab   = l_img_blob

       EXCEPTIONS

         failed       = 1

         OTHERS       = 2.

 

     bitmap = l_img_blob.

 

   ENDIF.

 

ENDFUNCTION.


then we write this converted bitmap file to the same directory like this

 

20.jpg

 

at this point we have the bmp formatted employee photo and can upload this to Document Server. there is the subroutine "import_bitmap_bds " in standard report "saplstxbitmaps" which asks for the user for the file to be uploaded. I converted the subroutine to work with file in usr/sap/trans directory.

 

Here is the modified subroutine;

 

 

FORM import_bitmap_bds_local.

MOVE list_filename TO imagefile.
MOVE pernr-pernr   TO imagename.
MOVE pernr-pernr   TO imagedesc.

DATA: l_resolution  TYPE stxbitmaps-resolution.
DATA: l_docid     TYPE stxbitmaps-docid.

DATA: l_object_key TYPE sbdst_object_key.
DATA: l_tab        TYPE ddobjname.
DATA: BEGIN OF l_bitmap OCCURS 0,
l
(64) TYPE x,
END OF l_bitmap.
DATA: l_filename        TYPE string,
l_bytecount      
TYPE i,
l_bds_bytecount  
TYPE i.
DATA: l_color(1)        TYPE c,
l_width_tw       
TYPE stxbitmaps-widthtw,
l_height_tw      
TYPE stxbitmaps-heighttw,
l_width_pix      
TYPE stxbitmaps-widthpix,
l_height_pix     
TYPE stxbitmaps-heightpix.
DATA: l_bds_object      TYPE REF TO cl_bds_document_set,
l_bds_content    
TYPE sbdst_content,
l_bds_components 
TYPE sbdst_components,
wa_bds_components
TYPE LINE OF sbdst_components,
l_bds_signature  
TYPE sbdst_signature,
wa_bds_signature 
TYPE LINE OF sbdst_signature,
l_bds_properties 
TYPE sbdst_properties,
wa_bds_properties
TYPE LINE OF sbdst_properties.
DATA  wa_stxbitmaps TYPE stxbitmaps.


* Enqueue
PERFORM enqueue_graphic USING 'GRAPHICS'
imagename
'BMAP'
'BCOL'.

*** Read BMP File
CLEAR list_filename.
MOVE imagefile TO list_filename.
OPEN DATASET list_filename IN BINARY MODE FOR INPUT.
IF sy-subrc EQ 0.
CLEAR xstr1.
*** Read BMP File
READ DATASET list_filename INTO xstr1.

**** Delete BMP File
DELETE DATASET list_filename.

CLEAR l_bitmap.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer        = xstr1
IMPORTING
output_length
= l_bytecount
TABLES
binary_tab   
= l_bitmap.

CASE sy-subrc.
WHEN 0.
WHEN 2.
PERFORM dequeue_graphic USING 'GRAPHICS'
imagename
'BMAP'
'BCOL'.
MESSAGE e811(td) WITH imagefile.

WHEN 3.
PERFORM dequeue_graphic USING 'GRAPHICS'
imagename
'BMAP'
'BCOL'.
MESSAGE e812(td) WITH imagefile.

WHEN OTHERS.
PERFORM dequeue_graphic USING 'GRAPHICS'
imagename
'BMAP'
'BCOL'.

MESSAGE e813(td) WITH imagefile.

ENDCASE.

l_color
= c_true.

* Bitmap conversion
CALL FUNCTION 'SAPSCRIPT_CONVERT_BITMAP_BDS'
EXPORTING
color                    = l_color
format                   = 'BMP'
resident                
= space
bitmap_bytecount        
= l_bytecount
compress_bitmap         
= space
IMPORTING
width_tw                
= l_width_tw
height_tw               
= l_height_tw
width_pix               
= l_width_pix
height_pix              
= l_height_pix
dpi                     
= l_resolution
bds_bytecount           
= l_bds_bytecount
TABLES
bitmap_file             
= l_bitmap
bitmap_file_bds         
= l_bds_content
EXCEPTIONS
format_not_supported    
= 1
no_bmp_file             
= 2
bmperr_invalid_format   
= 3
bmperr_no_colortable    
= 4
bmperr_unsup_compression
= 5
bmperr_corrupt_rle_data 
= 6
OTHERS                   = 7.
IF sy-subrc <> 0.
PERFORM dequeue_graphic USING 'GRAPHICS'
imagename
'BMAP'
'BCOL'.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING conversion_failed.
ENDIF.

* Save bitmap in BDS
CREATE OBJECT l_bds_object.

wa_bds_components
-doc_count  = '1'.
wa_bds_components
-comp_count = '1'.
wa_bds_components
-mimetype   = c_bds_mimetype.
wa_bds_components
-comp_size  = l_bds_bytecount.
APPEND wa_bds_components TO l_bds_components.

IF l_docid IS INITIAL.          " graphic is new

wa_bds_signature
-doc_count = '1'.
APPEND wa_bds_signature TO l_bds_signature.

CALL METHOD l_bds_object->create_with_table
EXPORTING
classname 
= c_bds_classname
classtype 
= c_bds_classtype
components
= l_bds_components
content   
= l_bds_content
CHANGING
signature 
= l_bds_signature
object_key
= l_object_key
EXCEPTIONS
OTHERS     = 1.
IF sy-subrc <> 0.
PERFORM dequeue_graphic USING 'GRAPHICS'
imagename
'BMAP'
'BCOL'.

MESSAGE e285(td) WITH imagename  'BDS'.

ENDIF.
READ TABLE l_bds_signature INDEX 1 INTO wa_bds_signature
TRANSPORTING doc_id.
IF sy-subrc = 0.
l_docid
= wa_bds_signature-doc_id.
ELSE.
PERFORM dequeue_graphic USING 'GRAPHICS'
imagename
'BMAP'
'BCOL'.

MESSAGE e285(td) WITH imagename 'BDS'.

ENDIF.

ELSE.                " graphic already exists
********* read object_key for faster access *****
CLEAR l_object_key.
SELECT SINGLE * FROM stxbitmaps INTO wa_stxbitmaps
WHERE tdobject = 'GRAPHICS'
ANDtdid     = 'BMAP'
ANDtdname   = imagename
ANDtdbtype  = 'BCOL'.
SELECT SINGLE tabname FROM bds_locl INTO l_tab
WHERE classname = c_bds_classname
ANDclasstype = c_bds_classtype.
IF sy-subrc = 0.
SELECT SINGLE object_key FROM (l_tab) INTO l_object_key
WHERE loio_id = wa_stxbitmaps-docid+10(32)
ANDclassname = c_bds_classname
ANDclasstype = c_bds_classtype.
ENDIF.
******** read object_key end ********************

CALL METHOD l_bds_object->update_with_table
EXPORTING
classname    
= c_bds_classname
classtype    
= c_bds_classtype
object_key   
= l_object_key
doc_id       
= l_docid
doc_ver_no   
= '1'
doc_var_id   
= '1'
CHANGING
components   
= l_bds_components
content      
= l_bds_content
EXCEPTIONS
nothing_found
= 1
OTHERS        = 2.
IF sy-subrc = 1.   " inconsistency STXBITMAPS - BDS; repeat check in
wa_bds_signature
-doc_count = '1'.
APPEND wa_bds_signature TO l_bds_signature.

CALL METHOD l_bds_object->create_with_table
EXPORTING
classname 
= c_bds_classname
classtype 
= c_bds_classtype
components
= l_bds_components
content   
= l_bds_content
CHANGING
signature 
= l_bds_signature
object_key
= l_object_key
EXCEPTIONS
OTHERS     = 1.
IF sy-subrc <> 0.
PERFORM dequeue_graphic USING 'GRAPHICS'
imagename
'BMAP'
'BCOL'.

MESSAGE e285(td) WITH imagename 'BDS'.
ENDIF.
READ TABLE l_bds_signature INDEX 1 INTO wa_bds_signature
TRANSPORTING doc_id.
IF sy-subrc = 0.
l_docid
= wa_bds_signature-doc_id.
ELSE.
PERFORM dequeue_graphic USING 'GRAPHICS'
imagename
'BMAP'
'BCOL'.
MESSAGE e285(td) WITH imagename 'BDS'.
ENDIF.

ELSEIF sy-subrc = 2.
PERFORM dequeue_graphic USING 'GRAPHICS'
imagename
'BMAP'
'BCOL'.
MESSAGE e285(td) WITH imagename 'BDS'.
ENDIF.

ENDIF.

* Save bitmap header in STXBITPMAPS
wa_stxbitmaps
-tdname     = imagename.
wa_stxbitmaps
-tdobject   = 'GRAPHICS'.
wa_stxbitmaps
-tdid       = 'BMAP'.
wa_stxbitmaps
-tdbtype    = 'BCOL'.
wa_stxbitmaps
-docid      = l_docid.
wa_stxbitmaps
-widthpix   = l_width_pix.
wa_stxbitmaps
-heightpix  = l_height_pix.
wa_stxbitmaps
-widthtw    = l_width_tw.
wa_stxbitmaps
-heighttw   = l_height_tw.
wa_stxbitmaps
-resolution = l_resolution.
wa_stxbitmaps
-resident   = space.
wa_stxbitmaps
-autoheight = 'X'.
wa_stxbitmaps
-bmcomp     = space.
INSERT INTO stxbitmaps VALUES wa_stxbitmaps.
IF sy-subrc <> 0.
UPDATE stxbitmaps FROM wa_stxbitmaps.
IF sy-subrc <> 0.
MESSAGE e285(td) WITH imagename 'STXBITMAPS'.
ENDIF.
ENDIF.

* Set description in BDS attributes
wa_bds_properties
-prop_name  = 'DESCRIPTION'.
wa_bds_properties
-prop_value = imagedesc.
APPEND wa_bds_properties TO l_bds_properties.

CALL METHOD l_bds_object->change_properties
EXPORTING
classname 
= c_bds_classname
classtype 
= c_bds_classtype
object_key
= l_object_key
doc_id    
= l_docid
doc_ver_no
= '1'
doc_var_id
= '1'
CHANGING
properties
= l_bds_properties
EXCEPTIONS
OTHERS     = 1.

PERFORM dequeue_graphic USING 'GRAPHICS'
imagename
'BMAP'
'BCOL'.

ENDIF.

ENDFORM.                    "import_bitmap_bds_local

 

With the use of this modified subroutine, we can batch upload converted BMP files to Document Server. We can run this report as scheduled job so that it gets the employee photo, converts it to BMP format and uploads it to Document Server.

 

You can find the source code of the sample report as attachment (bitmap automization.txt) to this document.

 

 

Hope this document helps.

 

Murat Kaya - 2014

Even though ERROR / 'E' type message, still program is executing normally!!

$
0
0

Hello,

 

We have a custom workflow, z_workflow.

 

In this z_workflow, its calling a custom FM, z_fm.

 

In this z_fm, I'm updating a custom tbale, z_table.

 

Before writing UPDATE z_table, I am locking this z_table by using 'ENQUEUE_E_TABLE', as below,

 

Pls. note this workflow is triggering in BACK GROUND by WF-BATCH user

 

                CALL FUNCTION 'ENQUEUE_E_TABLE'
                  EXPORTING
                    mode_rstable   = 'E'
                    tabname        = 'Z_TABLE'
                  EXCEPTIONS
                    foreign_lock   = 1
                    system_failure = 2
                    OTHERS         = 3.
                IF sy-subrc = 0.
                  UPDATE z_table
                   SET matnr= ls_mara-matnr
                          descr = lv_text
                    WHERE ref_id = ref_id.
                  CALL FUNCTION 'DEQUEUE_E_TABLE'
                    EXPORTING
                      mode_rstable = 'E'
                      tabname      = 'Z_TABLE'.
                 ELSE.
                     MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                         WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. =====>
==> If the lock is failing an an ERROR / 'E' type message is occuring, but still the 'Rest of the code blocks' are executing normally (where in 2nd_z_table is updating), but the workflow is ending up in 'Error state' in SWI1 (workflow log) transaction, our users who are monitoring this workflow thinking that the transaction went bad, but again they noticed that the 2nd_z_table is updating as usual!!
                         
                ENDIF.

                Rest of the code blocks ==> here another custom tbl, 2nd_z_table is updating

 

Our workflow expert said that, the error is occuring, well, but as its (z_fm) calling from / by back ground workflow user, hence the 'Rest of the code blocks' are triggering normally and the 2nd_z_table is updating as usual, but overall the workflow ends up in error state!

 

To avoide this confusing situation (workflow in error, but rest of the code blocks are executing normally), workflow expert suggested the below approach (raising of EXCEPTION in z_fm instead of ERROR message), pls. suggest me is it OK / safe / works good for me?

 

                DO 10 TIMES. => Workflow expert asking me to add all these blue lines to my code
                CALL FUNCTION 'ENQUEUE_E_TABLE'
                  EXPORTING
                    mode_rstable   = 'E'
                    tabname        = 'Z_TABLE'
                  EXCEPTIONS
                    foreign_lock   = 1
                    system_failure = 2
                    OTHERS         = 3.
                IF sy-subrc = 0.

                  UPDATE z_table

                   SET matnr= ls_mara-matnr

                          descr = lv_text

                    WHERE ref_id = ref_id.
                  CALL FUNCTION 'DEQUEUE_E_TABLE'
                    EXPORTING
                      mode_rstable = 'E'
                      tabname      = 'Z_TABLE'.
                  CLEAR lv_locking_failed_on_z_table.
                  EXIT.
                ELSE.
                  WAIT UP TO 1 SECONDS.
                  lv_locking_failed_on_z_table = abap_true.
                ENDIF.
              ENDDO.

              IF lv_locking_failed_on_z_table IS NOT INITIAL.
                RAISE exception_lock_failed===> Does the Raising EXCEPTION is solve my problem? pls. suggest me
                RETURN.
              ENDIF.

workflow expert said with this raising of exception will not trigger 'Rest of the code blocks' so that user will be not confused

 

Thank you

How to change Custom fields of EMMA Case

$
0
0

I am using FM 'BAPI_EMMA_CASE_CHANGE' to change my custom fields of the EMMA Case

 

CALL FUNCTION 'BAPI_EMMA_CASE_CHANGE' "Change Clarification Case

EXPORTING

case =                      " bapi_emma_case-casenr  Clarification Case

case_change =               " bapi_emma_case_change  Modifiable Fields for Case

test_run = ' '              " bapi_emma_case-testrun  Switch to Simulation Mode for Write BAPIs

TABLES

objects_delete =            " bapi_emma_case_object  Case Objects to be Removed

objects_add =               " bapi_emma_case_object  Additional Case Objects

case_text =                 " bapi_emma_tline  Long Text

extension_in =              " bapiparex     Reference Structure for BAPI Parameter ExtensionOut

return =                    " bapiret2      Return Parameters

 

In this FM I am passing the custom field in table extension_in but when FM gets executed the fields which are not populated are getting Blank in the table also the population logic of this table is complex as follows:

CLEAR: wa_extension_in.
    wa_extension_in-structure = 'BAPI_TE_EMMA_CASE'.
    wa_extension_in-valuepart1+120(8) = gv_bpem_from_date.
    wa_extension_in-valuepart1+128(10) = lv_bpem_part_id.
    wa_extension_in-valuepart1+138(4) = lv_bpem_role.
    wa_extension_in-valuepart1+142(10) = gv_bpem_mdp.
    wa_extension_in-valuepart1+152(8) = gv_bpem_to_date.
    APPEND wa_extension_in TO lit_extension_in.

Can you please help me.

Steps involved to Configure a Smartform for printing TO Item

$
0
0

Hi,

 

I want to develop a Smartform to print TO for each Item.

 

Currently it is being done using SAP Script.

 

I checked the Configuration in OMLV and assigned my print program Z****** .

 

This thing here is I don't see any values passed to my program like TO Number, Whse Number etc when called through LT31.

 

Where as I assign the standard program RLVSDR40 and debug it all the details are being passed to this program.

 

I am not sure if I am missing any configuration.

 

Please help me to figure out the issue and let me know all the steps involved in configuring the Smartforms to print Transfer Orders.

 

Thanks in Advance.

 

MK.

ABAP REPORT using SQVI, need to hide Layout section

$
0
0

HI,

 

I have created report in Sqvi and imported in ABAP (se38) now I want to hide "Output Specification" block which asks for layout, how do I hide that? See attachment


Function "Lines(IT)" can pass value to internal table?

$
0
0

Hi,

i wonder is it possible to pass value back to its internal table after using function lines?

All i know is that after using using lines, you have to pass value to integer variable.

 

The codes below is the example that my senior use to pass value back to its own:

 

g_kfgr_cnt     = LINES( g_kfgr_cnt ).

g_kfgr_act_cnt = g_kfgr_cnt.
g_kfgr_cnt     = g_kfgr_cnt + 1.


I do not know which exact table my senior used, but its purpose is to count the number of key figure.


How to do auto miro using bapi_INCOMINGINVOICE_CREATE

$
0
0

for the first time doing BAPI. Have no idea how to do it.

 

I need to upload excel data into MIRO using BAPI.

 

Excel Contains the following field

1.invoice date

2. reference no

3.currency

4.business place

5.text

6.business Area

7.Assignment

8.Header Text

9.po number.

10.Amount

11.Ref Doc(from line item).

 

while inserting data i have to check tax code calculate tax will be calculated automatically.

 

Please Reply With code if it possible.

 

Thanks in Advance.

GUI Status for Selection-screen

$
0
0

Hello Everyone,

 

I have a customized GUI status for the selection-screen.

I have 5 push buttons(not in toolbar) in the first selection-screen. Upon selecting one button, another selection-screen is called upon.

 

This customized GUI status is making all buttons deactivated in the second selection-screen and also F8 is not working in the second selection-screen.

How to make the GUI status in first selection-screen to be active in the second selection-screen and also make F8 to work.

 

Thank you.

 


Floorplan manager - Subview ID

$
0
0

Hello Experts,

 

I am not able to rename the subview id, long string gets auto generated while saving the configuration.

 

BUS_WKSP_822B59D9EF031EE5D67G54F89CB532CF

My requirement is have subview id of less than 10 char to use somewhere in the SPRO configuration.

 

I don't want red long string in my subview id.

 

Anyone come across such situation, any help would be appreciated.

 

 

 

Thanks,

Sangeeta

Header batch no copy to component batch in Process order

$
0
0

Hi,

I have following requirement...

 

we create process orders with COR1 in PP module.. then we assign the batch no to in the goods receipt tab as shown below..

 

 

Now when we save the Process order system has to automatically assign the same batch no to one of the component automatically as shown below..

 

What user exit or enhancement I can use for this..If anybody worked on this can you help me out...

 

Thanks

Kumar

SCMP checkbox purpose?

$
0
0


Hello,

 

I'm on a 740 Netweaver system and am new to tcode SCMP - when I run it and it outputs the differences between two tables and it's output has the first column as a checkbox but I can't figure out what it's used for... I can double click on entries to get the detail veiw comparison so I don't need the checkbox for that. Any help is appreciated.

 

Steve

SAP 4.6C Limitation

$
0
0

Good day everyone!

 

Please share your ideas the limitation if I keep using 4.6C, this is not comparison to ECC5 or ECC6.

For example: xlsx format with SAP GUI 7.20 is not supported in 4.6C.

 

Thank you very much and appreciate your answer!

 

BR,

Khanh


Get Time Data ID Type value entered after save in PTMW

$
0
0

I want to set an 'X' in PTM_DETAIL_INDEX-SPRPS depending on value captured in PTM_DETAIL_INDEX-TDTYPE in PTMW,

I have enhancements in include LPT_GUI_SAP_TMW_DETAILF50 at form  pbo_index and  pai_index, but I can't find value 'ABC'

any idea how can I read that value?

 

Thanks in advance,

 

Karina Hurtado

BD64 Filtering Value (Sale org/ Distri Channel) need to get in EXIT_SAPLMV01_002

$
0
0

IHi ,

 

In BD64, Under MATMAS Data filtration is set on Sales Org and Distribution Channel. When I am sending material from BD10 , I need to get these values ( Sale Org / Distribu Channel ). B'cos on the basis of these values I need to fetch PLANT from MVKE table by passing SOrg and Dchl .

 

I am reading Segment value in exit EXIT_SAPLMV01_002, but , these values are present at MVKE Segment but I need those values at MARC Segment and MVKE Segment trigger at last where MARC segment trigger initially , So I am not able capture values in Segment also.

 

On the basis on MARC-MATERIAL & MVKE-PLANT , I need to fetch TRLT (Lead Time) from MARC.

 

How to retrieve Sale Org/ Dch either from Filtration Set at BD64 or from MVKE Segment that is triggering later then MARC Segemnt??

 

 

 

 

Regards

Ankesh

How do I configure the information to display in the overview screen of PA20/30?

$
0
0

How do I configure the information to display in the overview screen of PA20/30?

 

For eg: When I go to PA20 and click on the overview of infotype 6 (Address), I see the information for Type, Name, Start Date, Street and House Number... etc.

 

How do I remove or add another field?

 

I have tried searching in the SPRO->Personnel Management -> Personnel Administration ->Customzing Procedure. However, doesn't seems to find any information.

PO for Release Code

$
0
0

Hi All

 

Can anyone explain the table relation between the  Release Code and Related PO s for that Release code.

 

 

Rgds

PP

Change authorization in Debugging mode

$
0
0

Hi,

 

If it is not allowed to go to specific transaction, how I change authorization in debugging mode?

 

Thanks.

Viewing all 8332 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>