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

Change selection screen fields in LDB

$
0
0

Hi Team,

 

       I want to change the selection screen field in logical database- PNP. i searched so many form but could not get,

 

  when i am using the report categories it get sort the selection field by alphabetical order how can i arrange field as my requirement.

 

My selection screen order is,

 

  personnel number

  employee status

  personnel area

  personnel sub area

  employee group

  employee sub group

  payroll area

  cost center

  company code

 

but the report categories display like,

 

personnel number

  employee status

  company code

  personnel area

  personnel sub area

  employee group

  employee sub group

  payroll area

  cost center

  How can achieve my requirement please help me out.

 

Thank You.


Issue with enhancement in CO11N

$
0
0

I have add custom field on screen TCode CO11N. values or saved in but when I enter order number or confirmation no that is already saved with custom field value. all data are displayed but custom value doesnt display.

BAPI_SALESORDER_SIMULATE condition value not triggering for smaller quantity

$
0
0

Hi all,

 

When I am executing the BAPI_SALESORDER_SIMULATE the output table ORDER_CONDITION_EX is not returning COND_VALUE for small quantites.

If I am executing the same with bigger quantity it is coming.

Eg: I want to get the volume discount,Invoice condition values from BAPI_SALESORDER_SIMULATE output table ORDER_CONDITION_EX .

      If I am giving bigger quantity as example 72000 Pieces it is returning all Condition values.If I am giving smaller quantity as example 7200 pieces or lesser it is not returning the values for Volume discount and On Invoice discount percentage.On Invoice value and Tax is coming fine for small and big quantities. I checked the same in VA01 where for small and big quantites all values are showing correctly in condition tab.

 

Thanks in advance,

 

Safeer Ishack

FTP Program Background Job not working

$
0
0

Hi;

 

I create a program ,it is sending a text file to ftp. It is working manually but when i want to send with a job , its not working.

What you think about this. And  which roles the user must have?

SM35 - Icon - Being created

$
0
0

Hello

 

Does anybody know what the icon "being created" mean?

We need to process some batchs on SM35, but we see frequently this icon with no information on that (zero documents) and this status haven´t changed and some documents aren´t posted on SAP. We are not sure with this status mean could be the document are not posted on SAP.

 

Regards.

 

Renata Carrão.

I need to go more than 20 report in sap interactive report, now what can i do ?

$
0
0

I need to go more than 20 report in sap interactive report, now what can i do ?

Need info on exit to put error message on sales order line item & header partner # validation and make it editable for user action

$
0
0

Hi,

 

Requirement is to Check the new buying group entered by user is in the list of buying group maintained for the customer. If yes, proceed. If no,
provide error to user “Buying group is not maintained for the customer”. This message will be issued for any background processing and will stop the
processing.

Tried these exits: USER_EXIT_MOVE_FIELD_TO_VBAK,USER_EXIT_MOVE_FIELD_TO_VBAP , USER_EXIT_CHECK_VBAK & USER_EXIT_CHECK_VBAP sicne SAVE_DOCUMENT_PREPARE,SAVE_DOCUMENT are not the right places for validations & throwing messages.

Enhancement spots /implicit enahncements are not allowed as per our engagement standards.

Is there any way to achieve this requirement ?Also after givign error message how cna ensure further navigation and make partner number field ediatbel for user entry/correction ? Can we sue thse exits or any others like PREPARE_PRICING_TKOMK, PREPARE_PRICING_TKOMP or incompeltion log method?Will incompletion log force user to make entries or correct existign entries and prevent save of sales order until it is done?

Appreciate your help.

 

Thanks & Regards,

Savitha

Badi for tcode IW22

$
0
0

hi All,

 

i want to implement badi for iw22..

requirement is like that...

if we select any notification number and when click on display ..

then we there is "Status" field.Suppose if status field id set to any perticular Status (Ex. ATCO or OSNO or OSTS )

then all tabs for that notification number should be Disabled.

Please Suggest Needful..

One point i need to add i found one Badi "DFPS_TST", i think in this i have to change, but when i going to implemt then sap doens not allow me to do that...

 

List of BAdi's for this T.code

INST_AUTHORITY_CHECK

GOS_SRV_SELECT

NOTIF_ACTIONBOX

NOTIF_ACTIONBOX

DFPS_TST

BADI_MATN1

IWO1_WKCTR_CHANGE

 

Which badi shold i need to change??? or is there any other way???


Text being printed outside the width of main window

$
0
0

Hi Experts,

 

I printing a text in the main window of my smartform.

This text appears correctly in print preview.

But when I take a print out of the document it gets truncated and is printed outside the width of main window.

 

Please can anyone let me know how can I fix this issue.

I am not sure if this is a config issue as the text is going outsied main window.

 

Also find below the scanned copy of the printed smartform. The border seen is that of the main window.

smartform_print.JPG

 

Regards,

Shardul

Zfield in Subscreen (4900) Of VA01/VA02 not working

$
0
0

Hello,

 

Following is the problem I am facing while adding fields to Additonal Data A tab in VA01 and VA02

 

A ZTEXT  field is added in additional Data A tab(Screen 4459 and 4309) .The new field is appended in table VBAP.

ZTEXT field  is also added in main screen of VA01/VA02 (Screen 4900).

 

When I try to add any text in the  ztext column through main screen( ie 4900), it doesnot allows me to (no error shown),also it doesnot gets saved.

But If i add any text through Additional Data A screen,it gets saved in VBAP table and also the same text is displayed in the main screen (4900) in the ZTEXT column.

 

I tried debugging   USEREXIT_FIELD_MODIFICATION /  USEREXIT_MOVE_FIELD_TO_VBAP ,but was not able to find any solution.

I searched many threads on SDN, but was not able to find any Thread related to Additional Data A tab.

 

Kindly guide in this regards.

Thanks in advance.

 

 

Thanks & Regards,

MJ

Using Parallel Cursor Method showing Total Net Price of Line Items...

$
0
0

Q. My question is ...there are several Line Items's Net Price in EKPO table with the respect of Single PO document nos....Now how will I show the total Line Item Net Price with respect to Single PO Document No. using Parallel Cursor Method ?

 

Like ....   PO No     Line Item     Net Price  

 

         300000005     000300     4.50

         300000005     000400     2.50

Output.........

 

PO No              Net Price

300000005       7,00

Deleting Methods from Parent Class

$
0
0

Hello,

 

In advanced, thank you for any advice that can be offered for this basic question.

 

Problem:

I am having issues deleting custom methods and classes, that I have created using SE24 or SE80.  I am working on a development machine, so these classes may be safely deleted.  Basically, I am developing a solution for a customer and during the development stage I wanted to make sure things were working the way I expected.  So, I created many classes, inheritance methods, etc.  But now, I want to go back through and clean up my mess.  In JAVA, C#, C++, or any other language I simply find those objects and delete them and then go back through and clean up.  However, in SAP I find that the transport organizer gets in the way.  Is there a way to flush the memory of the transport organizer, so that I can activate my classes and not get bogged down in non-sense error messages?  If I try to activate the objects, while marking the methods to be deleted, then the system typically "times-out" after a long period of 15 minutes.  I would think that SAP could delete a method in under 15 minutes.....

 

Attempted so far:

1) I have tried to use all the options in Utilities-->Clean Up.

2) I have tried to release those dependent transports using SE09, but SAP tells me that some "CM00# is inactive", I think this is telling me that the methods I deleted are inactive (no kidding, I deleted them).

3) I have tried to manually add the methods back, then activate, transport, and finally delete, but I still get the same "loop dependency" problem. 

 

I have found many related issues on SCN, but never a answer.  Is this the price we pay for trying to conform ABAP to a OO language?

 

Thank you,

Greg

using TYPE abap_trans_parmbind_tab in xslt

$
0
0

hello.

i try to use

TYPE abap_trans_parmbind_tab contained in type-pool ABAP

inside xslt transformation.

the value is transported into xslt using PARAMETERS in CALL TRANSFORMATION.

my question is how to  declare sap:type  inside xslt

for this parameter ( param_tab ),

so i can use it's values in the transformation.

 

<xsl:param name="PARAM_TAB" sap:type="?"/>

 

thanks

 

Ronen

How to make particular field value to red in Table control of module pool??

$
0
0

Hi Guys ,

 

I have a client requirement. They want particular field  value should be red  in table control of a module pool program .

We have a SCREEN Structure using this we can modify particular field value to blue, but customer

Particularly asking for RED .

and I have one more query.

WHAT is the use of  FIELD ‘”COLOR”  in “SCREEN” STRUCTURE?

Please help me out .

how to create the signature in abap-proxy?

$
0
0

Hello Expert! ! ! I receive the XML file from external system, in sap system adjusted abap-proxy - the file I receive, everything works, but I need to sign the file as to make it? Into SAP through transaction of STRUST loaded the certificate but I didn't achieve result. Help. !


Purchase Order Acknowledgement

$
0
0

Hi,

 

I am working on setting up the Purchase order acknowledgement for my client.

 

To test that, I had set up the Partner profile as follows:-

 

Partner Type: LS

Partner Role: VN

Process Code: ORDR

Message Type: ORDRSP

 

In WE19, I created a test iDoc via Message type - ORSRSP, iDoc type - ORD_ID01 as it had the LABNR field that holds the "Acknoweldgement number".

 

The Processing detail shows as follows:-

Sender: SAPXID

Partner no.: <Logical system number>

Partner Type: LS

Partner Role: VN

 

Message type: ORDRSP

 

Process Code: ORDR

Function name: IDOC_INPUT_ORDRSP

 

Clicked "Standard Inbound" and the pop up said "IDoc number 0000000001895196 transferred to application"

 

When I do BD87, I get this error "Application Document not posted". When I 'force' process, it results in the error - "Application function module IDOC_INPUT_ORDRSP terminated with invalid"

 

Long text:-

 

Application function module & terminated with invalid exception.

Message no. B1045

 

Diagnosis

The application function module IDOC_INPUT_ORDRSP for the inbound IDoc reported an invalid exception.

 

Procedure

Please get in touch with your SAP consultant.

 

 

Can somebody help me in creating & testing the inbound iDoc for updating the PO acknowledgement?

 

Regards,

 

Karthik

Change selection screen fields in LDB

$
0
0

Hi Team,

 

       I want to change the selection screen field in logical database- PNP. i searched so many form but could not get,

 

  when i am using the report categories it get sort the selection field by alphabetical order how can i arrange field as my requirement.

 

My selection screen order is,

 

  personnel number

  employee status

  personnel area

  personnel sub area

  employee group

  employee sub group

  payroll area

  cost center

  company code

 

but the report categories display like,

 

personnel number

  employee status

  company code

  personnel area

  personnel sub area

  employee group

  employee sub group

  payroll area

  cost center

  How can achieve my requirement please help me out.

 

Thank You.

Need BAPI for creating RFQ (Purchase)

$
0
0

Dear All

 

I need an BAPI / FM to create RFQ in PURCHASE...

 

Can someone help me..

 

Regards,

Venkat

Line Graph

$
0
0

Hi,

 

I want to create a line graph which will have the x-axis values from an internal table . I tried with FM 'graph_stat' but it is not possible. Can someone please help me?

 

Regards,

Sharbani

Goods Receipt confirmation of Purchase Order

$
0
0

Hi,

 

I am .Net developer and working on the SAP integration with VB.Net. I am using RFC connector to connect SAP and post data.

 

I have a BAPI method already developed to post Goods Receipt transaction into SAP against Purchase Order.

 

This BAPI method is successfully creating goods receipt transaction into SAP, if I directly put values into BAPI using SE78 command inside SAP.

But the problem is when I am passing the same values from .Net application, SAP is not creating goods receipt transaction.

 

I tried lot of things and I noticed there might be the issue with Delivery Date and Document Date which I am passing in .Net string format "yyyyMMdd"

 

The problem is BAPI method is not even throwing any error or returning error message through RESULT table. Inside ABAP there is one RESULT table, which has to be filled with error message in case of any error.

 

I have another BAPI method for Transport Order Goods Issue from one plant to another plant. Same issue with this ABAPI also, but in this after executing method RESULT table is filled with error message, which is "Posting Date is Initial". So i guess some issue with Posting/Delivery date when i am passing it.

 

Kindly help me in this regard. I really appreciate it.

 

Best Regards,

 

Jawad Hussain.

 

BAPI Method Detail is as below:

 

Table   : ZBAPI_AGI_PC_TBL

Table   : ZBAPI_AGI_PO_RESULTS

FGroup : ZBAPI_AGI_PC

BAPI    : ZBAPI_AGI_PO_CONFIRMATION

 

BAPI CODE:

 

FUNCTION ZBAPI_AGI_PO_CONFIRMATION.

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

*"*"Local Interface:

*"  TABLES

*"      ITEMTAB STRUCTURE  ZBAPI_AGI_PC_TBL

*"      RESULTS STRUCTURE  ZBAPI_AGI_PO_RESULTS

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

 

DATA: gt_goodsmvt_header  LIKE bapi2017_gm_head_01,

      gt_goodsmvt_item    LIKE bapi2017_gm_item_create OCCURS 0 WITH HEADER LINE,

      gt_return           LIKE bapiret2 OCCURS 0 WITH HEADER LINE.

DATA: gt_goodsmvt_headret LIKE bapi2017_gm_head_ret,

      goodsmvt_code_tmp   TYPE bapi2017_gm_code,

      testrun             TYPE c VALUE 'X'.

    data: l_return like BAPIRET2.

 

TABLES lips.

 

* PARAMETERS p_vbeln LIKE lips-vbeln. " Delivery number

 

* START-OF-SELECTION.

  gt_goodsmvt_header-pstng_date = sy-datum.

  gt_goodsmvt_header-doc_date   = sy-datum.

 

  LOOP AT ITEMTAB.

    gt_goodsmvt_item-move_type            =  '101' .

    gt_goodsmvt_item-mvt_ind              =  'B'.

    gt_goodsmvt_item-no_more_gr           = 'X'.

    gt_goodsmvt_item-deliv_numb_to_search =  ITEMTAB-DeliveryNo.

    gt_goodsmvt_item-deliv_item_to_search =  ITEMTAB-ItemNumber.

    gt_goodsmvt_item-material             =  ITEMTAB-MaterialCode.

    gt_goodsmvt_item-entry_qnt            =  ITEMTAB-Quantity.

    gt_goodsmvt_item-entry_uom            =  ITEMTAB-UnitOfMeasure.

    gt_goodsmvt_item-Batch                =  ITEMTAB-Batch.

*    gt_goodsmvt_item-plant                =  ITEMTAB-PlantCode.

    gt_goodsmvt_item-stge_loc             =  ITEMTAB-StorageLocationCode.

*    gt_goodsmvt_item-po_number            =  ITEMTAB-ReferenceDoc.

*    gt_goodsmvt_item-po_item              =  ITEMTAB-ReferenceItem.

 

              SELECT SINGLE WERKS

              INTO gt_goodsmvt_item-plant

              FROM LIPS

              WHERE VBELN = ITEMTAB-DeliveryNo

              AND POSNR = ITEMTAB-ItemNumber.

 

    IF ITEMTAB-Batch = ''.

    SELECT SINGLE CHARG

    INTO ITEMTAB-Batch

    FROM LIPS

    WHERE VBELN = ITEMTAB-DeliveryNo

    AND POSNR = ITEMTAB-ItemNumber.

    ENDIF.

 

    IF ITEMTAB-StorageLocationCode = ''.

    SELECT SINGLE LGORT

    INTO ITEMTAB-StorageLocationCode

    FROM LIPS

    WHERE VBELN = ITEMTAB-DeliveryNo

    AND POSNR = ITEMTAB-ItemNumber.

 

    ENDIF.

    APPEND  gt_goodsmvt_item.

  ENDLOOP.

  goodsmvt_code_tmp =          '01'. "Assign code to transaction for BAPI goods movement

****<<<<<<<Post goods movements with MB_CREATE_GOODS_MOVEMENT>>>>>>>>>>>>>>>>>>>

  CALL FUNCTION 'BAPI_GOODSMVT_CREATE'

    EXPORTING

      goodsmvt_header          = gt_goodsmvt_header

      goodsmvt_code            = goodsmvt_code_tmp

*      testrun                  = testrun

   IMPORTING

     goodsmvt_headret          =  gt_goodsmvt_headret

    TABLES

      goodsmvt_item            = gt_goodsmvt_item

*   GOODSMVT_SERIALNUMBER       =

      return                   = gt_return.

 

  IF gt_return[] IS INITIAL.

    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

     EXPORTING

       WAIT          = 'X'

     IMPORTING

       RETURN        = l_return.

 

*    WRITE:/3  'ASN Number', gt_goodsmvt_item-deliv_numb_to_search,

*          /3  'Item',gt_goodsmvt_item-deliv_item_to_search.

    ENDIF.

    read table gt_return.

 

 

* ----------------------------------------------------------------------------

LOOP AT gt_return.

 

* WRITE:/ gt_return-Type,gt_return-ID, gt_return-NUMBER, gt_return-MESSAGE.

 

RESULTS-TYPE      = gt_return-TYPE.

RESULTS-ID        = gt_return-ID.

RESULTS-V_NUMBER    = gt_return-NUMBER.

RESULTS-MESSAGE   = gt_return-MESSAGE.

RESULTS-LOG_NO      = gt_return-LOG_NO.

RESULTS-LOG_MSG_NO  = gt_return-LOG_MSG_NO.

RESULTS-MESSAGE_V1  = gt_return-MESSAGE_V1.

RESULTS-MESSAGE_V2  = gt_return-MESSAGE_V2.

RESULTS-MESSAGE_V3  = gt_return-MESSAGE_V3.

RESULTS-MESSAGE_V4  = gt_return-MESSAGE_V4.

RESULTS-V_PARAMETER  = gt_return-PARAMETER.

RESULTS-V_ROW        = gt_return-ROW.

RESULTS-FIELD      = gt_return-FIELD.

RESULTS-V_SYSTEM      = gt_return-SYSTEM.

 

 

APPEND RESULTS.

 

ENDLOOP.

 

 

* ---------------------------------------------------------------------------

 

ENDFUNCTION.

 

 

.NET CODE:

 

func = SAPsession.ImportCall("ZBAPI_AGI_PO_CONFIRMATION")

 

Row = func.Tables("ITEMTAB").Rows.AddRow()

Row("DELIVERYNO").value = Convert.ToString(TbRow("DeliveryNo"))

Row("DOCUMENTDATE").value = Convert.ToDateTime(TbRow("DocumentDate")).ToString("yyyyMMdd")

Row("POSTINGDATE").value = Convert.ToDateTime(TbRow("PostingDate")).ToString("yyyyMMdd")

Row("ITEMNUMBER").value = Convert.ToInt32(TbRow("ItemNumber")).ToString()

Row("BARCODE").value = Convert.ToString(TbRow("MaterialBarcode"))

Row("MATERIALCODE").value = Convert.ToInt64(TbRow("MaterialCode")).ToString()

Row("QUANTITY").value = CDec(TbRow("Quantity"))

Row("UNITOFMEASURE").value = Convert.ToString(TbRow("UnitOfMeasure"))

Row("BATCH").value = Convert.ToString(TbRow("Batch"))

Row("STORAGELOCATIONCODE").value = Convert.ToString(TbRow("StorageLocationCode"))

SAPsession.CallFunction(func)

Viewing all 8332 articles
Browse latest View live


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