Quantcast
Channel: SCN : Unanswered Discussions - ABAP Development
Viewing all 8768 articles
Browse latest View live

table control - Scroll down

$
0
0

Hi Experts,

 

I have an issue in table controll scroll down, I have tried in many ways but still not yet solved.

If anyone worked with similar issues please help me...!!

 

In table control previously it will display only 10 rows, As per new requirement I have made it as scrollable. it is used create installed base(IB53 transaction). The issue is, even I am making it scrollable then also if I am entering more than 10 records then it is not getting updated in IB53 transaction. Only 10 record are being updated. It is using BDC, I have tried with p+ function code to capture the page down event. But it is not working.

 

If any further information required ask me. Appreciate your help.

 

 

Thanks.

 

Regards,

Priya Reddy



User exit before TO creation to chage MAKTX field or FM to change it after

$
0
0

Hi all,

 

     I need some WM Expertise help.

     When I create a Sales Order from program (with bapicreatefromdata2) , the system automatically create a delivery, and then, a transfer order with no immediate confirmation. The TO is manual confirmed. In bapicreatefromdata2 I completed on each item line the field ARKTX with a description (Example: red - material description ). This field is automatically completed in delivery( same field ARKTX). But I need this description also in transfer order for each line (field MAKTX). The TO is created automatically and  the field MAKTX is completed with the description from the material master.

     So, I need an user exit before TO creation to change the field MAKTX. I have tried user exit: MWMTO001 and is not working I think because the TO is created with no immediate confirmation. Also I putted break-point everywhere in program SAPML03T (standard program for TO creation)  and  I changed the settings in debugger mode. I checked System Debugging and Update Debugging. Nothing happened. I cannot find the place before TO is created.

     An alternative to this is to update LTAP (item table for TO) after TO immediate creation in include MV45AF0B_BELEG_SICHERN but I can't find a function module to update the table before TO manual confirmation. I tried L_TO_UPDATE_PREPARE but this I think is for confirmed TO.

     Any one who worked on this kind of things, Please help.

 

     Thanks in advice,

 

     Bogdan

BAPI_ENTRYSHEET_CREATE - Service Entry Sheet Creation - Unplanned service XXXXXXXXX may not be entered

$
0
0

Hi Experts,

I am using BAPI BAPI_ENTRYSHEET_CREATE for creation of Service Entry Sheet.

I am uploading an external file which contains PO,PO-ITEM,Service Text,Item Text,Quantity, Base Unit of Measure and Price value to BAPI.

For few entries from the flat file we are able to create Service Entries but for few we are unable to generate Service Entries.

 

BAPI Returns "Unplanned service XXXXXXXXX may not be entered"

 

Below is the sample code from the program

 

***BAPI Declarations for BAPI_ENTRYSHEET_CREATE
DATA: x_esheader     TYPE bapiessrc,
           gv_entrysheet  TYPE bapiessr-sheet_no,
           x_esservices   TYPE bapiesllc,
           i_esservices   TYPE TABLE OF bapiesllc,
           x_return       TYPE bapiret2,

 

**  Header Data
     x_esheader-pckg_no    = 10.
     x_esheader-short_text = x_serv_data-short_text.
     x_esheader-po_number  = lv_ebeln.
     x_esheader-po_item    = x_serv_data-po_item.
**For Service Entry Created  Acceptance
     x_esheader-doc_date   = sy-datum.
     x_esheader-post_date  = sy-datum.
     x_esheader-acceptance = 'X'.
**  Services Data
     x_esservices-pckg_no = 10.
     x_esservices-line_no = lv_line_no.
     x_esservices-outl_ind = 'X'.
     x_esservices-subpckg_no = 20.
     APPEND x_esservices TO i_esservices.
     CLEAR x_esservices.

     lv_line_no = lv_line_no + 1.
     x_esservices-pckg_no    = 20.
     x_esservices-line_no    = lv_line_no.
     x_esservices-quantity   = x_serv_data-quantity.
     x_esservices-gr_price   = x_serv_data-gross_price.
*    x_esservices-price_unit = x_serv_data-price_unit. Not required
     x_esservices-base_uom   = x_serv_data-base_uom.
     x_esservices-short_text = x_serv_data-line_text. "short_text.
     APPEND x_esservices TO i_esservices.
     CLEAR x_esservices.

**For every ITEM of PO created service entrty sheet
     CALL FUNCTION 'BAPI_ENTRYSHEET_CREATE'
       EXPORTING
         entrysheetheader            = x_esheader
*       TESTRUN                     = ' '
*       NO_COMMIT                   = ' '
       IMPORTING
         entrysheet                  = gv_entrysheet
       TABLES
*       ENTRYSHEETACCOUNTASSIGNMENT =
         entrysheetservices          = i_esservices
*       ENTRYSHEETSRVACCASSVALUES   =
         return                      = i_return
*       ENTRYSHEETSERVICESTEXTS     =
*       ENTRYSHEETHEADERTEXT        =
       .


Please let me know how to rectify the error "Unplanned service XXXXXXXXX may not be entered"


Regards,

Mohammed


add csv format in scot

$
0
0

Hello all,

 

I am working on ECC 6.0 and I want add CSV file format in output file format of SCOT T-code.Can any one tell me how to add this format in SCOT.

 

Thanks in advance.

Set Position of Dialogbox Control relative to calling dynpro

$
0
0

Is it possible to set the position of the dialogbox control relativ to the calling dynpro? I found a solution to set the position in resolution to the screen size, but I don't found a solution, do set position of the dialogbox relaticv to the position of the SAP GUI window. We have also customer who using 2 displays.

 

Anyone know a solution for this püroblem?

secondary index data archiving FI_DOCUMNT

in which program is table USR41 updated?

$
0
0

Hi All,

 

can anybody please tell me in which program , the contents of table USR41 are updated?

Specifically i want to know where the field LOGON_TIME and LOGON_DATE are updated.

 

Thankyou in advance.

 

Regards,

Rohit Gupta

ALE for SAP and Non-SAP

$
0
0

Hi,

 

I am configuring IDoc for SAP and Non-SAP and create a XML HTTP port to process IDocs. I have already create a logical system for SAP and another for non-SAP system. How can I set the distribution model? I think distribution model is irrelevant in this case. What part type should I use for non-SAP?

 

Best regards,

ts   


Automatic Mail on PO final Release Nace Settings

$
0
0

Hi Everyone ,

 

 

My requirement is to send mail to vendor when ever PO final release .

 

NACE Settings :

 

Capture.PNG

 

the above screen shot is for standard program .

 

for medium 5 external send , i copied the standard program to custom one , here standard is calling script for my scenarion i am calling smart form ..

 

But the problem is when ever i release the PO from ME29N after giving message type , when click on save button mail is not going to corresponding vendors , when i clicked on printpreview button now my custom program is triggering .

 

In standard one after release release when i clicked on save mails are automatically going ..i try to debug the standard one but not getting ..

 

can u please suggest me how to approch this problem ??

 

how can we know in standard program mails are going , is there any other settings to be done ??

 

thank you ,

sandeep chennoju .

how to add new fields in MB51

$
0
0

Hi friends

       

     how to add storage bin LGPBE and unloading point ABLAD in MB51 output I has copied to z program do u guys have a any idea to find it where I need to code  it.

LSMW:-Don't see fields in the step4:Maintain Structure Relations

$
0
0


In one of the existing LSMW I have added a new segment and added a new field to this segment.

 

Now I am trying to maintain the relationship in the Maintain Structure Relations step but I don't see this newly added field in this step.

 

The object type and Import method used in step 1 is IDoc.

 

What could be the possible reason? Is there a different approach to be followed when adding a new field to the existing LSMW?

BAPI for reading CCMS values

$
0
0

Hey everyone,

 

I am currently developing a small application which reads actual values from the CCMS Monitoring, but I got a small problem.

 

I actual use the BAPI " BAPI_SYSTEM_MTE_GETPERFCURVAL" to read the values from the ccms environment (e.g CPU_Utilisation).

But for some values this is not working. A collegue told me to use " BAPI_SYSTEM_MTE_GETMLCURVAL".

But this one is also not working for all CCMS Items (eg. it is not working for CPU_Utilisation).

 

Is there a BAPI which can read all CCMS values. It would be great if there is an BAPI which has the same input parameters as the ones above.

 

Regards

Markus

 

 

PS: (Yes, I know in the near future there will be a new monitoring environment (MAI))

How to display Values(Numbers) over every individual Towers in 3D Graph?

$
0
0

Hi!

PFA below. Its regarding the screen shot of 3D Graph.

 

As you can see in the picture that the values are not accurate to view. So its better to display values(numbers) on top of each tower in 3D Graph.

How to display that? Kindly suggest me any solution.

 

 

With Regards,

Yarnagula Sudhir.

 

Message was edited by: Yarnagula Sudhir

Hierarchy ALV issue

$
0
0

Hi Techies,

 

I have created a Hierarchy ALV report with tables PRPS, PROJ, T005, T006 with the help of FM REUSE_ALV_HIERSEQ_LIST_DISPLAY ; but the problem is while I run the report it is showing runtime error. I have shared screenshot of this error.

Please go through the attachment. Give me some suggestion.

 

Thanks

How to give condition on string of document type

$
0
0

Hi All,

       I have ZTABLE in that these are the fields AMT_FRM,AMT_TO,ZDOCTYPE(bsart),PLANT & APPROVEL1,2,3.

 

C8.PNG

here in for eg. wa_konv1-kwert = 2600.00 ,Plant = 3000 ,Document type is NB7.

c7.PNG

but is not selecting third row ,so what changes i have to do in my code.

 

 

Thanks & Regards,

Samadhan


PO output medium as ‘External Send’ for Language BG giving '#' instead of character in PDF output

$
0
0

Hi Experts,

 

When we maintain the PO output medium as ‘External Send’ for Language ‘BG’, the PO pdf is showing # instead of character.

But, if the output medium is PRINT and language is ‘BG’, the PO pdf prints correctly in BG language.I have checked the output type

NEU and find that same smartform is maintained for both the case.

Also it is working fine in the Quality as well as in development server.. issue is coiming only in PRD.

Thanks in advance!!

 

 

Regards

Mrinal

greyed out field asset number in me51n and me21n

$
0
0


Hi all

need help my requirement is to greyed out the field asset, under tab account assignment in tcode ME51n and ME21n while creating PR or PO if total value of PO or PR is less than 500 under valuation tab.

Smartform Template creation.

$
0
0

Hi Friends,

 

There is a requirement to design below layout in smart form, Text everything is fixed no data comes from sap.  I tried to create with template am unable to split the cell which are marked. Please help me how to design this.

Thanks in advance.

 

Template.png

 

Neetha.

Password protected excel sheet using XML plus Logo addition

$
0
0

Hello , Please suggest me the way how to protect the excel using password via XML coding in ABAP. I had successfully protected the sheet using 'Protected' attribute, but when i open it in excel and click on 'Unprotect Sheet', it become open for entry . Now, I want to protect it with password, so that it will ask password while uprotecting the sheet. I had used below code :

  r_format  = l_document->create_simple_element( name = 'Protection'  parent = r_style1  ).

  r_format->set_attribute_ns( name = 'Protected'  prefix = 'ss'  value = '1' ).     "Data

  r_format->set_attribute_ns( name = 'Password'  prefix = 'ss'  value = 'Igt12#' ).    "Password

 

But it didnt worked . Please help.

Also , please suggest how to put logo (protected) in excel as well.

 

Regards,

Seema

REG: method GET_CHANGEDOCS_FOR_OWN_TABLES in BADI CUSTOMER_ADD_DATA

$
0
0

Hello All,

    I am able to display details of a Z-table in the tab of XD02/XD03 transaction using the BADIs CUSTOMER_ADD_DATA and CUSTOMER_ADD_DATA_CS.

For the Z-table I have created a change document and able to create change documents for it.

 

Now I am trying to display the change documents using the method GET_CHANGEDOCS_FOR_OWN_TABLES of BADI CUSTOMER_ADD_DATA.

 

If I addend my change document then it is displaying only the change documents of the custom one.

If I do not append the custom change document, then it is displaying all the standard change documents.

 

I want to display both the standard and custom change documents.

 

with regards,

Sandeep Akella

Viewing all 8768 articles
Browse latest View live