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

Set Parameter ID for Obligatory Field (BUKRS)

$
0
0

Hi All ;

 

I want to call a transaction 'Z_XXX' with XBLNR field, for that transaction the XBLNR fileld ok but the BUKRS field is obligatory field and

when I call the transaction getting error 'enter the obligatory field' .The codes like below ;

 

WHEN 'XBLNR' .

 

       PERFORM DISPLAY_CORBU USING  C_BUKRS

                                                                   IT_OUTTAB_100-XBLNR.

    

FORM DISPLAY_CORBU  USING  P_BUKRS

                                                S_COR_NO-LOW .

 

      SET PARAMETER ID 'BUK' FIELD P_BUKRS.

      SET PARAMETER ID 'XBL' FIELD S_COR_NO-LOW.

       CALL TRANSACTION 'Z_XXX' AND SKIP FIRST SCREEN.

 

ENDFORM.       


What should I do ? Thanks for your answers.


Regards.


I Have Maintained TOP-OF-PAGE USING i_callback_html_top_of_page, When i am uploading into the Excel sheet I cannot able to Get top-of-page in the Excel sheet.

$
0
0

Hi Experts,

 

I Have Maintained TOP-OF-PAGE USING i_callback_html_top_of_page, When i am  uploading alv grid display into the Excel sheet I cannot able to Get top-of-page in the Excel sheet.Can, Any one suggest me the Solution for it.

 

 

Thanks,

Narendra Reddy.

Sap Gos - call custom class for standard transaction.

$
0
0

Hello ,

I want to know if it is possible to call custom class in gos for a standard transaction. Because I have to attach a pdf that is returned by a web service that was call by PI so I have to call the proxy class in the gos.

 

thanks.

Sort parameter in ALV variant is not working

$
0
0

Hello,

 

Facing a strange issue, we are using   'set_table_for_first_display' for ALV output. We are saving layout with a sort parmeter on a field.  When we are using this layout at selection screen this sort is not working. But after the ALV displayed if we select the same layout the sort is working as expected.

It will be great if someone can help on this.

 

Thanks,

Ranadev

Use HTTP_POST to send file to Windows server

$
0
0

Can anyone provide an example of the parameters to use for HTTP_POST to send a file from ECC to a particular directory on a drive other than the C drive on a Windows server?

Thanks,

Jim

Sales Quote(Pricing conditions) - Incompletion log problem

$
0
0

Hello All,

 

My requirement is to check VA00 pricing at each item level. If amount/value = '123' then append a log to incompletion log.

 

I have put my code in MV45AFZB->userexit_check_vbap as:

 

  loop at xkomv into ls_komv where kposn = vbap-posnr

                               and kschl = 'VA00'

                               and kwert = '123'

                               and kinak = ' '.

      ls_vbuvvb-mandt = sy-mandt.

      ls_vbuvvb-vbeln = vbap-vbeln.

      ls_vbuvvb-posnr = vbap-posnr.

      ls_vbuvvb-tdid  = 'ZTXT'.

      ls_vbuvvb-tbnam = 'VBAP'.

      ls_vbuvvb-fdnam = 'PRSOK'.

      ls_vbuvvb-fehgr = 'ZQ'.

      ls_vbuvvb-statg = '06'.

      ls_vbuvvb-updkz = 'X'.

      ls_vbuvvb-fcode = 'PKO1'.   "PKON

      ls_vbuvvb-sortf = '9999'.

      append ls_vbuvvb to xvbuv.

   endloop.

 

Now, my Quote is having 8 items say 10,20....80.

I have added VA00 pricing-123 for item 70. from the same screen i went to incompletion log and the log shows that item 70 is having pricing log and i select the item and clicked on complete data, cursor moved to item 70 conditions tab..all good.

 

Scenario 1) - Bigger Monitor (All line Items are visible in the screen)

VA22 -> Edit->incompletion log and the log shows that item 70 is having pricing log and i select the item and clicked on complete data...cursor moved to item 80 conditions tab..which is bad..

 

Scenario 2) - Laptop (only 4 line items visible in the screen)

VA22 -> Edit->incompletion log and the log shows that item 70 is having pricing log and i select the item and clicked on complete data...cursor moved to item 40 conditions tab..which is bad..

 

In the debug mode, I see VBAP-POSNR value is getting from the XVBAP[] last table entry. it is not going by the selected incompletion log item number.

Do we need to do any thing in the config to point to the right item?

 

Thanks,

Sree

Help please, Passing and receiving parameters with Submit

$
0
0

Hi,

 

In a father I Report :

--------------------------------------------------->

REPORT1

 

PARAMETER: filetest(100) OBLIGATORY typec.

 

PARAMETER: nomejob(10) OBLIGATORY typec.

 

PARAMETER: Numjob OBLIGATORY type n.

 

" Controlo quanti job ho scelto e in funzione di esso eseguire il job di esecuzione

 

SELECT-OPTIONS num_ord1 FOR ZBIATESTORD-AUFNR MATCHCODE OBJECT zelenco_ord.

SELECT-OPTIONS num_ord2 FOR ZBIATESTORD-AUFNR MATCHCODE OBJECT zelenco_ord.

SELECT-OPTIONS num_ord3 FOR ZBIATESTORD-AUFNR MATCHCODE OBJECT zelenco_ord.

 

I have to pass these parameters to REPORT2 e : how do i ?

-....

         SUBMIT REPORT2

          WITH p_numjob    EQ va_jobname

           WITH p_nome      EQ space "va_nome

           WITH p_path      EQ space "p_path

           WITH p_file      EQ filetest

           ....

           ..

           VIA JOB va_jobname

           NUMBER va_jobcount

           ANDRETURN.

------------------------------------------------------------>

they describe it in the report 2: how do i ?

 

REPORT REPORT2

 

----

 

THANK YOU !!

BYE

Report tool for SBWP

$
0
0

Dear all,

 

I'm search a possibility for a report from the SBWP.

We have a PRONOVIA report tool for this, the problem is, this transaction can't all information on a line shown.


Gives for this a SE16n table?


thanks a lot.


MB90 calling a smartform

$
0
0

Hi Experts,

 

I have a requirement to revise a specific smartform in MB90.

I need to create a new smartform for document number starting with 5(ex. 5000000008)

 

But when I cehcked the program name of mb90 - MM70AMEA I cant find the line of code wherein it calls a specific smartform.

Does anyone know where I can edit the current smartform that is being called in MB90?

Smartforms Background Image not printing

$
0
0

There is a requirement to create a proforma invoice in our company which is attached to output type. Accordingly I have designed the smartform (it was required to be printed in landscape mode) and it is printing fine. However latter on the requirement was enhanced to make the document tamper proof by attaching a background image which I have attached with the below parameters. What is happening after that is that I can see the preview of the form with the background Image, but when I try to print the print out doesnt come at all. I dont understand how the image with the following parameters prevent printing of the form all together coz without the image it gets printed just fine. With the image it is not even going to the spool. Kindly check and tell me if I am missing anything.

 

Smartforms.jpg

 

Please note two things :

1.The Form needs to be printed on both in Color as well as Black and White Laser Printer.

2.The Image size is 7 MB.

Are these causing any problems?

How can I use abap/4 to get local computer disk drives?

$
0
0

Hi expert,

 

Currently, I can get the folders or files in disk drive c:\ or d:\ by FM : TMP_GUI_DIRECTORY_LIST_FILES.

 

But I can't get how many disk drive in user computer. Is there any FM or Object can get disk drive information in user computer?

 

Just like follow picture, I want to get disk drive a:\, c:\, g:\, e:\, f:\.

A.jpg

 

best regards,

Eric

Internal table sort different in every system

$
0
0

Hi,

 

We have a program that does not use any sort statement in internal table.

Why is it that in QA the internal table is sorted automatically ascending by key but in PROD the data is not sorted?

 

Thanks!

Set / Get Parameters for z t-code

$
0
0

Hi guys,

 

I posted this question yesterday after weeks of online searching and not finding an answer to my question.  Alas, this post was removed (for apparently being too simple a question) and I was pointed at the FAQ here which didn't answer my question either.

 

I am an SAP user and have requested from our ABAP team whether or not it is possible to get the 'User Profile - Own Data Prameters' populated into custom z t-codes when they are run.

 

They are telling me that it isn't and I would like verification of this as it seems to me that the relevant programming would just need to be added to the z-program (and provided the Parameter in question is in the TPARA table) then it should be an easy thing to do.

 

So please, is this possible or not....?

 

 

Thanks

Darrell.

how to communicate view two different weddynpro components?

$
0
0

Hi Abapeers

 

how to communicate view two different weddynpro components?

 

comp1                                                                comp2

 

 

main view  

  create button------------------------------------------------->     Create view

                                            

display button ------------------------------------------------->     Display view

 

 

     my Reqiurement

 

the create button click it will open create view on 2nd component.

 

the display button click it will open display view on 2nd component.

Develop Tree from FM CS_BOM_EXPL_MAT_V2 for all levels.

$
0
0

Dear Friends,

 

I am trying to develop a alv tree from CS_BOM_EXPL_MAT_V2. I have seen no. of posts but I am not quite getting how exactly to build the tree. I am just stuck with the parent child relationship.

 

Does any body has the ready code to build the alv tree by using this FM then pls share with me.

 

Thanks in advance.

Rohit


DART - enhancement FTXW0001- function exit EXIT_SAPLTXW2_001 details

$
0
0

Hi friends,

I am new to the Dart development. I have gone thru the documentation provided by SAP.

 

I have found one issue during the development regarding the segment TXW_ANLA.
Some of the fields(below are few examples) which are included (by me in CI) in the structure for the segment TXW_ANLA  do not exist  in the main table ANLA.

• ERFMG
• ERFME
• BPMNG
• REWRT
• REWWR
• STTAX

note: These fields are  already been included by me for the segment TXW_FI_POS: include structure CI_FI_POS (Main table BSEG).

 

I have created all the numeric fields with CHAR data type in the CIs.

When fields do not exist in main table and exist in segment, we need to write code inside the function exit EXIT_SAPLTXW2_001 to populate the data to export structure EXPORT_RECORD.

 

Could any body help me with some sample code regarding this.

 

SAP has provided sample code in include LXTXWF01 , but they have explained with example of dealing with Numeric data fields. So it is not much useful for my requirement.

 

Please help me with sample code.

 

 

Thanks and Regards

Paramesh

SAP_CONVERT_TO_XML_FORMAT :This FM convert Internal Table to XML. Can any body help to use this FM to generate xml in custom format ?

$
0
0

SAP_CONVERT_TO_XML_FORMAT :This FM convert Internal Table to XML.

Can any body help to use this FM to generate xml in custom format ?

 

Like :

<IT_COL1>

    value..

    <IT_COL2>

        value..

        <IT_COL3>

            value..

        </IT_COL3>

    </IT_COL2>

</IT_COL1>

 

Kindly let me know if you have some suggestions.

Thank You

Arindam Dey

Issue in Goods Movement from EWM to ECC

$
0
0

Hi Experts,

 

We are doing goods movement from a zreport using Function Module /SCWM/STOCK_CHANGE in EWM system and the HUs are getting posted successfully, but in the ECC side, only one line item is getting updated (Goods Movement from Quality Inspection to Unrestricted Use) for a batch. 

 

 

Kindly suggest what to do.

 

 

Thanks and Regards

Saurabh Marwaha

Export and import not working properly in function module.?

$
0
0

Dear Experts,

 

I have 2 FMs in one ZFM I am Export internal table and Importing same data in another FM.

My issue is data is not exporting into memory id in  source FM.

 

Code : EXPORT  t_bsegc[] TO MEMORY ID 'ABC'.

          

       After this command executes  sy-subrc set to 4.

 

Can any one let me know the correct syntax of export.

 

Thanks,

Raj,,,

EXAMPLE FOR FM 'F4IF_INT_TABLE_VALUE_REQUEST'

$
0
0

Hi,

 

Does you have any example of the fm 'F4IF_INT_TABLE_VALUE_REQUEST' using the parameters tables FIELD_TAB and DYNPFLD_MAPPING?????

 

 

answers will be regarded!

 

Tks in advance!

 

Gabriel

Viewing all 8332 articles
Browse latest View live


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