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

SO10 text how to include in bar code

$
0
0

Hello

 

I have a requirement, in which i have to display a so10 text next to bar code.

Please find the attached screenshot for the same.

 

so10 text contains : comprobante Autorizado AFIP.

 

KIndly help

 

 

Regards

Asha


Importing Cost Center Hierarchy without all Cost Centers in Cost Center Master Table (CSKS)

$
0
0

Our standard hierarchy will contain all Cost Centers present in the CSKS table. This question is in regards to importing A COGRP1 IDoc daily and updating our alternative hierarchy based on the Idoc.

 

1.Is it possible to create an alternative hierarchy  from an interface from another SAP client, even though some Cost Centers are not present in our client's CSKS table?

 

2.If its not possible, how would we go about filtering the COGRP1 IDoc Cost Centers that are not required in our client?

 

 

Background:

 

We are attempting to set up a Standard and Alternative Cost Center Hierarchies (CCH) for our client.

Our client's standard hierarchy is a flat hierarchy with a prime node under the controlling area. This standard hierarchy will be flat with one top level node, and all of our Cost Centers will fall under that one top level node. We have close to 60,000 Cost Centers under the standard flat CCH. This standard hierarchy will be built/maintained based on what Cost Centers are present in our client's CSKS table.

 

For our client's alternative hierarchy, we are receiving the standard hierarchy from our partner client system (via COGRP1 Idocs). The CCH we are importing from our partner system will have multiple nodes and groups.  We are taking our PARTNER'S standard hierarchy and loading this into our CLIENT'S  Alternative Hierarchy. We will receive the full load of our partners standard CCH daily via COGRP1 Idoc, and we will use this COGRP1 Idoc to rebuild our client's Alternative CCH daily.

 

Our issue is that our clients CSKS table is only a subset of what's present in our partner's CSKS table (they have 70,000 Centers, while we have only 60,000 of the total 70,000). Since we do not have all of the Cost Centers that they have in their system, we were concerned that this may cause issues when we load the Standard Hierarchy from their system, since we will not have all of the Cost Centers in our CSKS table that they are sending over in the COGRP1 Idoc.


Thanks for any help provided.

How to insert pushbutton in selection screen and if i click that pushbutton

$
0
0

How to insert pushbutton in selection screen and if i click that pushbutton it will clear the selection screen field plz send me coding for this.

BOM Quantities ON HAND

$
0
0

Greetings,

 

     I'm trying to find a way in SAP to run a report that will show me the quantity of each component in different levels of a BOM. I have access to CS11, CS12, and CS13 but I may not be able to use other transactions(SE37 for example). I remember running something like similar to what I'm looking for at an old job but that was 8 years ago.

 

Thanks in advance,

 

Alan

FM for password change

$
0
0

Hi All,

 

I am using FM ' BAPI_USER_CHANGE' to change the password of a user using report program.

While using this FM in IDES, I am able to change the password, but using the same FM in development client or any other client, I am unable to change the password. But the return is showing ' password successfully changed'.

 

Please help me to find the missing code.

 

Regards,

Rajan Jain

PAI in migo screen

$
0
0

Dear all

 

I have a requirement that in the migo transaction when user enter the PO no and press enter pop up needs to come , i have done this requirement in PBO screen implict enhancement(LMIGOIN1) but i want to do the same in PAI because PBO triggers everytime .how to achieve this

How to use dynamic table name in inner join querry?

$
0
0

Hi,

 

I  am trying to use dynamic table name for inner join querry but its giving me space error.

Even I tried with changing spaces. still problem remain there.

 

INTO CORRESPONDING FIELDS OF TABLE ITAB
FROM cobk AS A INNER JOIN coep AS B
ON b~belnr EQ a~belnr
INNER JOIN ( table_name1 ) AS C
ON c~paobjnr EQ b~paobjnr
WHERE b~perio IN parm1
   AND a~gjahr IN parmn
   AND a~belnr IN parm2
   AND a~cpudt IN parm3
   AND a~budat IN parmx
   AND a~usnam IN parm4
   AND b~kstar IN parm5
   AND b~bukrs IN parm6
   AND b~wrttp EQ '04'
   AND b~scope = 'PA'
   AND c~prctr IN parm7.

kindly revert me back.


Regards,

Venkatesh

READ_TEXT splitting lines

$
0
0

Hi Gurus,

 

The standard function module for DELVRY05 Idoc structure uses READ_TEXT function module to populate text in the Delivery Idoc. I see an issue with this function module. It splits the 1st line after 72 characters with TD = " * " and other lines are allowed for 132 characters with TD = " = ". Is this an issue in the SAP standard function module?

 

Basically, the text in my delivery is 73 characters long, so the function module splits the text into 1st line with 72 characters and 2nd line with 1 character. The Idoc as a result has two TDLINE subsegments which makes it difficult for our 3rd Party to read this. they want the text in one segment.

 

Can someone explain why this is happening?


Add ordering address partner in PO creation

$
0
0

Hi,

 

Trying to add the ordering address when creating a PO. (in particular, when copying from a PR, through ME59N). I have found user exits EXIT_SAPMM06E_013, include  ZXM06U44.

 

There are two TABLE parameters here that seem relevant:

 

XEKPALIKEUEKPANew Partners
YEKPALIKEUEKPAOld Partners

 

XEKPA already contains the Vendor partner, which is being added correctly. When I add a line in that table for type BA (ordering address), nothing happens. Table YEKPA similarly does nothing when adding lines.

 

Am I in the right spot?

On click of enter, enhancement to be triggered during PO creation and item details should be editable in rumtime

$
0
0

Hi All,

We have following business requirement

 

When user enters material number and plant during PO creation, system should automatically fetch contract number related to the material from source list. Kindly let us know which enhancement to be triggered (on click of enter  and item data should be editable  ).

 

Premise – Only one contract will be active for a material at any point of time and same will be maintained in source list

 

Regards,

Naresh

Reg: Enabling 'Save' button in Print Preview Window in Smartforms

$
0
0

Dear All,

As one my customer requested us to give a option to SAVE smartforms in print preview screen. I suggested 'PDF!' TCode, but customer requires a SAVE option to SAVE the PDF.

Though 'Save' button is available in the print preview window, its not enabled.

So, kindly requesting you that how can I enable that SAVE button or this there any other way to overcome the situation(Like providing a custome SAVE button to save the smartform).

Kindly expedite.

Thanking you in advance.

Regards,

Yohan Kanna

DMS-CV101N

$
0
0

Hi Friends ,

 

 

Can you explain how to store PDF file CONTENTS in DMS using the transaction
C01N.

 

 

THANKS & REGARDS.

pls tell what is wrong in this code. m abap fresher

$
0
0

REPORT ZFIANANCE_REPORT_DEMO.
TABLES : anlc, anlp.
type-pools : slis.
types : begin of T_anlc   ,
         bukrs type anlc-bukrs,
         anln1 type anlc-anln1,
         gjahr type anlc-gjahr,
         AFABE type anlc-AFABE,
         end of T_anlc.


data :it_anlc type standard table of T_anlc INITIAL SIZE 0,
        wa_anlc type T_anlc.

types : begin of T_anlp ,
         bukrs type anlp-bukrs,
         anln1 type anlp-anln1,
         gjahr type anlp-gjahr,
         nafap type anlp-nafap,
         end of T_anlp.

data :it_anlp type standard table of T_anlp INITIAL SIZE 0,
        wa_anlp type T_ANLP.

types : begin of T_final ,
         bukrs type anlp-bukrs,
         anln1 type anlp-anln1,
         gjahr type anlp-gjahr,
         AFABE type anlc-AFABE,
          nafap type anlp-nafap,
      end of T_final.

data :it_final type standard table of t_final INITIAL SIZE 0,
        wa_final type T_final.

select-options  s_bukrs for anlc-bukrs.
*START-OF-SELECTION.

select bukrs anln1 gjahr AFABE
          from anlc
into TABLE   it_anlc WHERE bukrs in s_bukrs.


   SELECT BUKRS ANLN1 GJAHR NAFAP FROM anlp INTO TABLE it_final FOR ALL ENTRIES IN it_anlc
     WHERE BUKRS = it_anlp-bukrs.



*loop at it_anlc into wa_anlc.

     LOOP AT it_final into wa_final.
       WRITE :/
       wa_final-BUKRS,
        wa_final-ANLN1,
        wa_final-GJAHR,
         final-NAFAP,
        wa_final-AFABE.
ENDLOOP.

SE03 not finding objects of program ID LANG

$
0
0

I have been using transaction SE03 --> Search objects to find transports related to my object.

 

I have come across an object with program ID LANG which is nothing but Report texts translation, I couldn't use SE03 for this.

 

One thing I noticed is SE03 --> Search objects supports only objects of program ID R3TR, LIMU and CORR.

 

Why it has been designed in a way to support only these objects, Is there any reason behind it?

 

Is it possible to enhance SE03 with other program ID's?

 

Can this be worth enough to post it in IDEAS forum?

 

Regards,

TP

How to do Item proposal is mandotary option in sale order creation?

$
0
0

Hi Gurus,

 

Hope you are doing well.

 

I have an urgent requirement in my company. like this " Item proposal should be mandatory while creating sales order".

 

I mean to say that, Only that line item can able to create in sale order which line item is in item proposal, If they will choose other line item then system wont allow to create sale order.

 

Please help me to out this problem.

 

Advance thanks & regards

 

 

Your brother

Ranjit


How to get object list display details for abap report from table

$
0
0

Hi all,

 

Anyone aware about how object list displayed for any report, which displays all information like forms, variables, tables, includes used in report?

Does this information avalaible in database table level?

 

Regards,

Patil

HCM - function module to get Manager - pernr

$
0
0

Dear All

 

Is there any function module that gives the Manager of Employee by providing Pernr as input.

 

We are maintaining the relationship A/B 002 in infotype 1001.

 

Regards,

Venkat

Exception raised CX_SEND_REQ_BCS while sending mails.

$
0
0

Hello Experts,

 

I have a issue with my mail sending program.I  am sending mails to two customers  two different sales order details as pdf attachment.

But mail is going for 1st customer without any errors when loop comes  to the 2nd customer this exception raised.

I debugged it and found a reason that SR_STATE variable is sets 'S'.

 

Sample code :

 

loop     it_mail.

 

* Pass the document to send request

   TRY.

       CALL METHOD wo_send_request->set_document( wo_document ).

     CATCH cx_send_req_bcs INTO bcs_error.

       bcs_mess = bcs_error->get_text( ).

   ENDTRY.

 

endloop.

Fax Sending issue

$
0
0

Hi Experts,

 

1) I am getting error in SOST when sending  PO document FAX. error message is XS812. For same FAx no I had sent fax , which sent successfully. I am getting PAGE_SEND_ERR , May I know the cause for this.

 

2) For another FAX no I am getting NOFAX_DIS error. Error XS812

 

3) For third fax no , getting RING_TO error. Error XS812.

 

Please help. I serch on SDN , but not found exact reason.

SAP_CONVERT_TO_XLS_FORMAT not working when there is an == sign in the table I_TAB_SAP_DATA

$
0
0

I have come across a scenario that function module SAP_CONVERT_TO_XLS_FORMAT not working when there is an == sign in the table I_TAB_SAP_DATA.

 

Let me explain in detail.

 

I_TAB_SAP_DATA is having data like below, where it is having == sign at line number 4.

 

Capture.PNG

When this same is downloaded into the file it is downloading only 3 rows, rows after == are not downloaded into the sheet.

 

Capture.PNG

 

Below is the code which I used.

 

CALL FUNCTION SAP_CONVERT_TO_XLS_FORMAT

    EXPORTING

     i_line_header              = 'X'

     i_filename                 = file_name

    TABLES

     i_tab_sap_data             = itab "Internal table as shown above

    EXCEPTIONS

     conversion_failed          = 1

     OTHERS                     = 2.

 

When there is a single = sign there is no problem, there is an issue only when there is two == sign.

 

Is this a problem in the function module?

 

Regards,

TP

Viewing all 8332 articles
Browse latest View live


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