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

OOPs ALV -- buttons working only once

$
0
0

Hi All,

 

I am facing multiple  issues in interactive ALV.

 

1.) I am selecting some lilnes from the first report and going to the second report on clcking a button.

When I come back to first report using back button from second report and again try going back to second, the selected rows are not being read.

 

This method returns empty table the second time, even though rows are selected.

          CALL METHOD grid1->get_selected_rows
          IMPORTING
            et_index_rows = itab_rows.

 

2.) When I goto second report and come back to first report , I have to press BACK button twice to goto the selection screen.The first ttime when I press BACK it is going to the PAI of the first report screen , instead of leaving the screen. Second time it works as expected, i,e leaves the screen. I am doing LEAVE TO SCREEN 0 when sy-ucomm = BACK.

 

PLease do reply your suggestions/solutions . Thanks in advance.

 

Best Regards,

Shankarnarayan.K.


Webdynpro table popin

$
0
0

Hi Experts,

 

I have created webdynpro component displaying purchase order header data in ALV & item level data using table popin.

 

My requirement is open all table popin by default when first access to the application.

 

Please help me know how this can be achieved.

 

Thanks,

Sangeeta

How to pass the data to accounting document header from sales document?

$
0
0

The information in the below three fields is available in Sales Document. We should
copy the information from sales document and passed to accounting.

 

1.sales document

2.sold to country of customer

3.commision agent

 

Mapping:

 

          Vf01/vf02/vf03                      va03

    

  1. Document Header Text - Sold to country of Customer
  2. Reference key(head1) - Commission Agent(Dealer)
  3. Reference key(head2) – Sales Manager

 

I need exit name in which i need to add the three fields.

How to update text element in smartforms?

$
0
0

Hi Smartforms experts,

 

How to update text element in smartforms?

I tried to update the text element in the Editor but once I saved and activated it, the new text is not updated.

Am I missing any steps or anything?

Please advise.

 

Regards,

 

SJANDRK

Excel Template Missing sap_sm.xls problem. Is it abap side or basis?

$
0
0

Hi ABAP Gurus,

 

I've encountered a problem downloading a report to excel. I'm getting the error "Contact your system administrator. The following Template is missing: sap_sm.xls" when push the button.

 

 

I've read a few pages describing the solution. It describes BCALV_FULLSCREEN_DEMO, BCALV_BDS_MAINTENANCE, and BC_BDS_UPLOAD. But my issue is I don't have access for QAS and PROD.

 

Some pages explained that templates where not copied from client 000.

 

 

 

Should I refer this to a Basis or is there a solution for us abapers?

 

Thanks. (",)

SmartForms - Input & Output Parameters of Program Lines

$
0
0

When I create a program line in my form, I need to add Input Parameters and Output Parameters in its General Attributes tab. I want to know what the standard of filling this two kinds of parameters is. Many thanks!

RPTARQPOST post approved leave request befr final approval

$
0
0

Hi All,

 

RPTARQPOST Program shcduled in background every 15 mins to post Approved Leave Request.

 

Eg : My leave request is 3 Level approval.

 

Emp1

 

Approver : A, B ,C

 

Step1 : Employee submit leave request through portal. and request has been sent to Approver A inbox.

 

           Workflow status is : Sent and Intermetiate Status is : Pending for Approval A.

        

Step2 : Approver A Approved the request at the same time backgroud job was running.

 

             My issue was once Approver A click Appove the background job posted the leave request instead of sending leave request to Approver B.

 

             Status became : POSTED and Intermetidate Status was Pending for Approval B.

 

             But Approver B not receive mail.

 

My analyze was,

  • once Approver Approved the immediate status was APPROVED. Based on the approvel level APPROVED status changed to SENT
  • If background job executed together with Approval process, it consider only the status APPROVED and POST the leave request before the status changed to SENT.

Kindly help me resolve the issue.

 

Thanks,

Mouli.

Comparing tables in two SAP systems

$
0
0

HI,

 

I have two SAP systems where in one is ECC 6.0 and the other is ECC 4.6C. I need to write a program to compare tables in both the systems and display the messages if there is a conflict in the values(table entries) in both the tables. Moreover, the requirement is to compare multiple tables in the two systems(not just comparing a single table used in both the systems). Can anyone suggest a way as to how this can be achieved? Thanks in advance!

 

Regards,

Pavan


Reduction of Data in SAP Query

$
0
0

Hi Experts,

 

I have an Infoset query which have multiple table joins on Material master data. All these tables are linked only by Material number.

Due to this there are many duplicate records coming in the output.

 

We use the SAP List viewer as output type for our Queries here.

 

I have tried writing a piece of code to remove the duplicates in Infoset Query -> Code section. I have written my logic in the event END-OF-SELECTION (Before List). All mu data declarations are in DATA section.

 

But my problem is I am not able to trigger the code I have written. Any idea on how to trigger this code or how to reduce the duplicates?

Or is there any BAdi or User exits available?

 

 

Thanks in Advance,

Abhinay

How to fill data in XMSEG internal table in BADI?

$
0
0

HI experts,

I'm using badi for goods movement in which XMSEG is an import parameter .Now I want to populate data from mseg to xmseg but as xmseg is an internal table without header line so I can't use  select statement to retrieve data. I also tried by declaring wa_xmseg and tried to append to xmseg but niether works, so can someone please help me out with this.

 

 

regards Suhas.

PDF/XString to Image conversion

$
0
0

Hello experts,

 

There is a requirement in my project to convert the pdf (getting generated from Smartform) as an image format so that we can send it to any other device too and all indentations can be contained as it is. Any help will be appreciated!!

 

 

Thanks,

Garima

Modifying selection screen block using application toolbar pushbutton

$
0
0

Hi Gurus,

 

Please help know how to modify the selection screen block on click of the application toolbar push button. I want to hide block2 and block3 on click of button1 and so on. Below is my code but for some reason its not working, i tried several options like using 'AT SELECTION-SCREEN OUTPUT" event as well. However please find my code below and let me know how can i achieve this. I tried searching ABAP forum too.

 

TABLES:MARA,SSCRFIELDS.

SELECTION-
SCREENbeginofBLOCK b1 withFRAMETITLEtext-001.
SELECT-OPTIONS:s_option1 for mara-matnr MODIF ID M1,
                s_option2
for
mara-matnr MODIF ID M1.
SELECTION-
SCREENendofBLOCK b1.

SELECTION-
SCREENbeginofBLOCK b2 withframeTITLEtext-002.
select-OPTIONS:s_option3 for
mara-matnr MODIF ID M2,
                s_option4
for
mara-matnr MODIF ID M2.
SELECTION-
SCREENendofblock b2.

SELECTION-
SCREENbeginofBLOCK b3 WITHFRAMETITLEtext-003.
Select-OPTIONS:s_option5 for
mara-matnr MODIF ID M3,
                s_option6
for
mara-matnr MODIF ID M3.
SELECTION-
SCREENendofBLOCK b3.

SELECTION-
SCREEN: FUNCTIONKEY1,
                  
FUNCTIONKEY2,
                  
FUNCTIONKEY3,
                  
FUNCTIONKEY4.

INITIALIZATION.
Move'Button1'to SSCRFIELDS-FUNCTXT_01.
MOVE'Button2'to SSCRFIELDS-FUNCTXT_02.
MOVE'Button3'to SSCRFIELDS-FUNCTXT_03.
MOVE'Button4'to SSCRFIELDS-FUNCTXT_04.

AT SELECTION-SCREEN.
  
CASE SSCRFIELDS-UCOMM.
    
WHEN'FC01'.
      
LOOPATSCREEN.
      
Ifscreen-group1 = 'M1'.
           
screen-invisible = 0.
           
screen-active    = 1.
      
ELSE.
           
screen-invisible = 1.
           
screen-active    = 0.
        
MODIFYSCREEN.
      
ENDIF.
      
ENDLOOP.

      
WHEN'FC02'.
      
LOOPATSCREEN.
      
Ifscreen-group1 = 'M2'.
           
screen-invisible = 0.
           
screen-active    = 1.
      
ELSE.
           
screen-invisible = 1.
           
screen-active    = 0.
        
MODIFYSCREEN.
      
ENDIF.
      
ENDLOOP.

      
WHEN'FC03'.
      
LOOPATSCREEN.
      
Ifscreen-group1 = 'M3'.
           
screen-invisible = 0.
           
screen-active    = 1.
      
ELSE.
           
screen-invisible = 1.
           
screen-active    = 0.
        
MODIFYSCREEN.
      
ENDIF.
      
ENDLOOP.

    
WHEN'FC04'.
  
ENDCASE.

Finding FG for SFG

$
0
0

Dear Folks,

 

Is there any FM or BAPI to find FG for SFG like BOM explore fm CSAP_MAT_BOM_READ.Kindly refer below my sfg is 30005307 and fg is 40002156.

 

Kindly help me in this.Early response will be highly appriciated.

 

 

 

 

293

0

0

40002156

40002156

40002156

293

1

0

40002156

50004526

40002156

293

2

1

50004526

30004540

40002156

293

3

2

30004540

30004394

40002156

293

4

3

30004394

30004536

40002156

293

5

4

30004536

30004392

40002156

293

6

5

30004392

30004860

40002156

293

7

6

30004860

30004395

40002156

293

8

7

30004395

30004393

40002156

293

9

8

30004393

30004397

40002156

293

10

9

30004397

30005308

40002156

293

11

10

30005308

30004396

40002156

293

12

11

30004396

30005307

 

Regards

  1. Srinivas.K

Getting error - Transfer Order XXXX Does not Exist in the warehouse number XX

$
0
0

Hi Guys,

 

I have created a transfer order in LT01 T-Code.

After getting a message of "Transfer Order XXXX Created", I am tryign to display the same.

Here I am getting error as "Transfer Order XXXX Does not Exist in the warehouse number XX (Check Entry)

 

What can be the issue?

 

Please and Give your valuable inputs.

 

 

Regards-

Mangesh Kelkar

BADI for customer interest calculation.

$
0
0

Hi

 

We have the business requirement that we whenever the the number of credit days exceed for the customer, Instead of normal interest

penalty interest will be applied on the customer line items. there is a note 835277 that i have searched saying me to implement the BADI

FI_INT_CUS01 and implement the method INT_CHANGE_ITEMS and change the interest rate there which is stored in INT_RATE.

 

Has anyone implemented this scenario.

 

What other fields need to be checked before implementing it.

 

regards

Nikhil Jain


Tab strip in a container?

$
0
0

Hi Experts,

I have a requirement to put tabstrip (not vertical) in a container. Please suggest me a way to do it.

Thanks and Regards,

Suman

BAPI for IM42 / IM52

$
0
0

Hello Gurus,

 

I wanted to distribute budget in Internal Orders using BAPI. In system tcode KO22 is locked through config and only used is IM42/IM52.

 

I used 'BAPI_EXPENDITUREPROGTREE_CHVAL' for distributing amount in all Positions in Budgeting Program. But it does not distribute at Internal Order level, As Internal Order does not have any Position Id assigned in IMPR table.

 

Could you please suggest appropriate BAPI for Distributing Budget at Internal Order level.

 

 

Thanks in advance,

Swapnil

"At end of " is not working properly

$
0
0

Hi,

      Can anyone tell me why at end of matnr is not working in given below code.It is inserting all  reapeating matnr.

 

sort it_final1 by MATNR MONTH .

LOOP AT IT_FINAL1 INTO WA_FINAL1   WHERE NAME1 IN P_TRANS

                                 AND ERDAT IN S_DATE

                                 AND MATNR IN S_MATNR

                                 AND MTART IN S_MTYPE

                                 AND MATKL IN S_MGROUP

                                 AND LIKP_KUNNR IN S_SHIP.

 

      temp  = temp + WA_FINAL1-FKIMG.

      kemp  = kemp + WA_FINAL1-BRGEW.

      remp  = remp + WA_FINAL1-NETWR .

      WA_FINAL2-MONTH    = WA_FINAL1-MONTH.

       AT END OF MATNR.

       WA_FINAL2-MATNR    = WA_FINAL1-MATNR.

       WA_FINAL2-NETWR    = remp.

       WA_FINAL2-BRGEW = KEMP.

       WA_FINAL2-FKIMG = TEMP.

      APPEND WA_FINAL2 TO IT_FINAL2.

      ENDAT.

     ENDLOOP.

Is there any FM available for source code comparison in 2 server

$
0
0

hai

I have to write a report all unmatchmed sources codes between development and production server

is there any Function module available for this

 

Regards

Jayaanand

module pool insert and update

$
0
0

Dear sir/madam,

 

   I have write the queries of data insert and update to ztable but it is inserted.please give me solution.

this is the code,

 

 

 

  CASE ok_code.

    WHEN 'SAVE'.

      INSERT zcust_master FROM wa_master.

      IF sy-subrc EQ 0.

        MESSAGE 'Saved Sucessfully' TYPE 'S'.

      ENDIF.

      CLEAR wa_master.

*    WHEN 'UPDATE'.

*      MODIFY zcust_master FROM wa_master.

*      IF sy-subrc EQ 0.

*        MESSAGE 'Saved Sucessfully' TYPE 'S'.

*      ENDIF.

*      CLEAR wa_master.

Viewing all 8332 articles
Browse latest View live


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