Shipment output not triggered...

Hi, I tried to find solution for this in forum, but could not... In my case,
When user creates a shipment using VT01N/VT02N and clicks the planning button and then clicks on save button, I need a custom idoc to be sent to SAP PI.
I tested sending this idoc from WE19 to PI and it is working fine...
But the output type is not triggering from VT01N/VT02N. I am not sure which of the config setting is wrong. Can someone point out which setting is missing/may have issues.
Also, I did an output determination analysis and it shows me a green entry which means it chose the custom output type and related access sequence. But then why is idoc not generated. I have put a break point in the custom function module in which I populate the custom idoc segment.
Please help to fill in the gaps ...
1. I checked in NACE, under V7 - Transportation, there is my custom output type ZEDI, with partner functions set as
EDI - LS - Logical system
EDI - CR - Carrier
I am not sure if this is correct !!
Processing routine points to RSNASTED, EDI_PROCESSING.
I checked the condition records tab...
The shipment type ZOUT is configured there, with one entry
ZOUT - DESCP - LS - logical system name i.e. PI system name - medium as 6.Date/Time as 3.
Again I am not sure if this is failing !!
Procedure tab does not have any entry related to this.
Access sequence also does not have any entry.
The partner profile (WE20) entries as as follows;
for the PI partner, Partner role is LS, message type is SHPMNT, under outbound params.When I double click that I see receiver port set, basic type has custo idoc name, Message control tab has V7 - ZEDI - process code ZSSS. And that process code is bound to the custom function module where I fill the idoc segment.
But finally I do not see any idoc generated !!
Please advise.

Hi ,
1. Does the condition record is automatically pulling up in the Vt02n transaction or no ?
2. Try first checking the IDOC trigger with the Standard Process Code SD11 to see if the Output Determination is working correct.  Once u know that part then the partner profile setup to  check with  the Process Code ZSSS, whether the output is being determined or not.  Based on the same atleast u can narrow down the root cause.
Are u working on this Interface for a Advance Shipment notification to the customer ?
Cheers
Balaji

Similar Messages

  • PO change output not triggered after deletion of line item

    Hello SAP experts,
    I have one issue with PO output
    I have created PO with output type & we are outputing through ME9F( 3- Send with application own transaction)
    Below is the sequence,
    1.PO created & outputed thru ME9F
    2.Now ,i added the line item in the PO,Output triggred but not processed.
    3.I deleted the line item immedietely,Output not triggered.
    (My question is Why the output is not tiggered?)
    4.I outputed it through ME9F,vendor will receive only 1st output & never get the 2nd o/p for the deletion of item.
    I am clear that after processsing the 1st output,then only i can process the 2nd.
    But in business point of view,this scene created the problem.
    Please provide your valuable input.

    Hi,
    In IMG - Materials Management- Purchasing-Messages - Fields relevant to Print out of changes
    Enter Table EKPO , Reference Field LOEKZ, tick on change print relevant for purchase order,in routine enter 03.
    Now your Output will be triggered with a change indicator and you can process it using ME9F.
    Regards
    Chandra Shekhar

  • Output not triggered....

    Hi, I tried to find solution for this in forum, but could not... In my case,
    When user creates a shipment using VT01N/VT02N and clicks the planning button and then clicks on save button, I need a custom idoc to be sent to SAP PI.
    I tested sending this idoc from WE19 to PI and it is working fine...
    But the output type is not triggering from VT01N/VT02N. I am not sure which of the config setting is wrong. Can someone point out which setting is missing/may have issues.
    Also, I did an output determination analysis and it shows me a green entry which means it chose the custom output type and related access sequence. But then why is idoc not generated. I have put a break point in the custom function module in which I populate the custom idoc segment.
    Please help to fill in the gaps ...
    1. I checked in NACE, under V7 - Transportation, there is my custom output type ZEDI, with partner functions set as
    EDI - LS - Logical system
    EDI - CR - Carrier
    I am not sure if this is correct !!
    Processing routine points to RSNASTED, EDI_PROCESSING.
    I checked the condition records tab...
    The shipment type ZOUT is configured there, with one entry
    ZOUT - DESCP - LS - logical system name i.e. PI system name - medium as 6.Date/Time as 3.
    Again I am not sure if this is failing !!
    Procedure tab does not have any entry related to this.
    Access sequence also does not have any entry.
    The partner profile (WE20) entries as as follows;
    for the PI partner, Partner role is LS, message type is SHPMNT, under outbound params.When I double click that I see receiver port set, basic type has custo idoc name, Message control tab has V7 - ZEDI - process code ZSSS. And that process code is bound to the custom function module where I fill the idoc segment.
    But finally I do not see any idoc generated !!
    Please advise.

    posted this question in ERP forum.

  • Condition dependent output not triggering

    Hi,
    We created a new PO action definition. Processing time is 4 Processing when saving document. The processing time not permitted is 00XX0 Selection report. The schedule automatically flag is checked. In the action determination section, the determination technology is set at "Determination using conditions that can be transported" and the rule type is set at "Workflow conditions". This action definition has one processing type "Smart forms print".
    A condition dependent output is configured for the action definition indicated above. This condition has the default settings from action definition checked. In the processing detail tab we have a specific printer we want to use. In the schedule condition this is what I configured:
    (  " --- Vendor medium ---
         &EC Purchase Order.Sending Medium& = PRN
      ) " --- Vendor medium ---
      and    (  " --- OA address number ---
         &EC Purchase Order.Vendor Address.Address Number& = 12642
      ) " --- OA address number ---
    We have a vendor with additional ordering addresses. I got the additional address number from table BUT020. Vendor has medium "PRN" in table BBP_SENDMEDIUM.
    When I create PO using the vendor and selecting the additional address (# 12642), the immediate output to the specified printer is not triggered. I mean the condition dependet output configured is not being triggered.
    Please, can anyone give me some tips about what I am doing wrong.
    Thanks and regards, Jose Oyon.

    Hi, If you want to work with Condition-Dependent PO Output, you have
    to set the conditions for output in Define action for Purchase order
    output. Under Action determination and Action summarization you can
    choose from different option.  Also clean-up customizing inconsistencies using transaction SPPFCADM and adjust to determination technology  "Determination Using Conditions" to retest. Check note 564826 which may be helpful.
    Best Regards
    Lauren

  • Output not triggered during SAVE from Shipment

    Hi,
    We have a custom Idoc triggering from the Shipment. The output shows up in the output screen (as yellow) and it is set to trigger 'immediate - 4'. But when I save, it does not issue an output. No errors, nothing just does not trigger at all. If I go into the shipment again in change mode and then save it, then it triggers the output.
    The output is an custom idoc, transmission medium 6, attached program RSNASTED and the form routine is EDI_PROCESSING.
    I tried debugging the program (in update debug mode)...found that an internal variable XNAST-UPDAT is set to 'D' (a GERMAN comment in code says "no longer found or changed key"). The only key change I can think of is the shipment number initially with $0001 and then changes to the actual shipment #. But this should happen even for other outputs..for eg, BoL printout. It does trigger without a problem and for this this indicator is not set to 'D'.
    Any thoughts ?
    Regards,
    Anand

    Hi Anand,
    Have u resolved this issue... bcoz i m facing the same issue..
    Can u plz tell me how u resolved it..
    Regards,
    Siva Kumar S.

  • PO output not triggering

    Hi ,
    I have created a Purchase Order and the Output type is not getting triggered.
    The Condition record is maintained for document  type and partner role with PArtner value field left blank.
    The Partner role is not there in PO, so the output type is not getting triggered.
    I enterd manually partner role in Header of PO, PArtners tab.then output was triggerd,
    So, the output is looking for partner role.
    So, to avoid manually etering everytime in PO, how the solution can be approcahed.
    Please help

    First check is there  more then one  Key combination.
    Go in PO> Message->select the output line item--->Goto --> Determine analysis (Here you could find out which condition record is pulling automatically)
    Use only one key combination for your desire output.
    Please go through table B027 will help little to extract the list.

  • EDI Output not triggerring

    Hi,
    I have created an output ZINL in NACE tcode to generate an IDoc assigned partner type LS. This output should be automatically assigned when i change any invoice list (VF22). Parnter name is ZLSPAR. Logical system ZLSPAR was created first in BD54 and then it was created as a LS partner type in WE20.
    The condition record i created in VF31 is of the key combination Sales area+Bill doc type. The bill doc type is also assigned with LS partner and respective partner name.
    There is one VOFM requirement created for the output, which is passed successfully. Inspite of this, ZINL output is not getting automatically assigned in VF22 tcode.
    Is there anything else i need to be doing?
    Thanks
    Vish

    Hi,
      check the artilce for the configurations to be done in EDI.
      http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/d4ce58df-0901-0010-a4be-9ae9eda61107
      This is related to PO and Not Invoices though but could come in useful.
    cheers
    Aveek

  • Delivery Output type newly created not triggering

    Hi,
    I have created 2 new output types i;e 1 for returns Order and one when we save the Delivery order. This i have copied the standard output type (BA00 & LD00).
    so now in returns order the output type i want to trigger automatically and print. But it is not happening. In VV11 i have defined for this condition as Print immediately and in customizing also i have maintained for sales organisation. But it is NOT triggering automatically when i save the return order. If i manually go and add this output then its working. So can you please tell me what needs to be done to trigger automatically.
    Secondly for Delivery i have 2 output i;e when i save the delivery without picking and all in VL01N, it should trigger 1 output and second is when i do the picking and PGI in VL02N. Both should trigger automatically.Now both my output is triggered only when i do PGI in VL02n i;e VL01N output is not triggered.
    Please help how can i do that.

    Hi,
    Go to T-code NACE
    Application area : V2-Shipping
    Now select the condition records and select your new output types.
    Take the key combination defined by you Viz. Sales org/Delivery Type (for example
    Enter Medium as '1'
            Date/Time as '4'
    Press the communication Tab and Tick Print immediatley and release after output Check Box.
    Also maintain the output device as LOCL
    I hope this will help you
    Br,
    Tushar

  • Output Type is not triggering

    Hi,
    We have created routine in output determination(VOFM) to trigger the output type (for IDoc) when ever Sales Order is created and we have configured correctly. Access Sequence containes KOMKBV1, KOMPBV1, etc.
    When I checked in development system, I am getting values  in KOMKBV1, KOMPBV1, etc and it is serving my purpose,
    But when i tested same in quality system,  KOMPBV1 structure is not getting values and this is not serving my purpose ( i.e output type is not triggering) .
    Could any one please suggest me why it is happening.
    Regards,
    Aditya.

    There is no problem with Access sequence
    Below are the fields for the accesss sequence.
    Sales document type  KOMKBV1     AUART
    Sales organization      KOMKBV1     VKORG
    Distribution channel     KOMKBV1     VTWEG
    Division                        KOMKBV1     SPART
    Customer group 5        KOMKBV1     KVGR5
    Plant                             KOMPBV1     WERKS
    The same is working fine in Developemnt but  not in quality.
    I went to debugging mode while creating a sales order in both systems for checking where exactly KOMPBV1 is getting cleared.
    I could find in
    SAPMV45A
    MV45AF0B_BELEG_BEARBEITEN_ENDE
    FORM BELEG_BEARBEITEN_ENDE
    Call function messaging
    When the program is going in this..... the value for KOMPBV1 is getting cleared in Quality but the same this is working fine in Development...
    Hope this coulld help you in understanding the problem better.
    Edited by: Aditya K Ghanaria on Nov 30, 2010 4:13 PM

  • Custom output type is not triggering automatically

    Hi Experts,
    We have created a custom output type for Delivery idoc processing.
    it is working fine for all ship to patrys.
    but from last 2 months onwards we are facing problem for one ship to party.
    output type is not triggering automatically but for rest of ship to party's it is triggering automatically.
    we have maintained conditions and also selected trigger immediately.
    earlier it was working fine, but from last 2 months onwards we are facing this problem.
    Thanks
    Sai

    Hi,
    Goto the Delivery document  and in the Output screen check the Determine analysis for output.
    There it will clearly show what is missing .
    Please check that and revert back if you need more clarification.
    regards,
    santosh

  • THE END OF THE RECORD IS NOT TRIGGERING(urgent)

    HI ALL I HAVE WRITTEN A REPORT AND I AM DISPLAYING THE OUTPUT OF EACH DISTRICT..
    NOW THE REPORT IS SHOWING RIGHT WHEN IT IS CHANGING THE DISTRICT BUT IT IS NOT TRIGGERING AT THE END OF THE REPORT AS AFTER THAT THE DISTRICT IS NOT CHANGING..
    I TRIED WITH AT END OF BUT IT IS SOME HOW SHOWING PROBLEM SO I USED A VARIBLE CONCEPT TO GET THE REPORT....
    HERE IS THE REPORT  can anyone please look at this and let me know how can i do that..
    is there any method where i can used in the IF condition to get the last record...
    ==========================================================
    *& Report  ZDISTRICT_CUST_AUCSALES
    &--THE PROGRAM USED TO DISPLAY THE TOTAL NUMBER OF CONSUMER IN A D.C.-
    &----PROCESSED ON A PERTICULAR MONTH AND YEAR..--
    REPORT  ZDISTRICT_CUST_AUCSALES .
    *TABLE DECLARATION*****************************************************
    TABLES: /BIC/AUCSALES00,
            /BIC/TCOKEY.
    *DATA DECLARATION*****************************************************
    DATA:  BEGIN OF ITAB OCCURS 0,
           /BIC/COKEY   LIKE /BIC/TCOKEY-/BIC/COKEY,
           TXTSH        LIKE /BIC/TCOKEY-TXTSH,
           END OF ITAB.
    DATA:  BEGIN OF ITAB2 OCCURS 0,
           BILL_DATE    LIKE /BIC/AUCSALES00-BILL_DATE,
           /BIC/COKEY   LIKE /BIC/AUCSALES00-/BIC/COKEY,
           BPARTNER     LIKE /BIC/AUCSALES00-BPARTNER,
           END OF ITAB2.
    DATA:  COUNT        TYPE I,
           COKEY        TYPE I,
           COKEYNO(2)   TYPE C,
           COKEYCH(2),
           BILDT        TYPE I,
           PROCOKEY     TYPE I,
           NOTPROCOKEY  TYPE I,
           TOTCOKEYDIV  TYPE I,
           TOTCOKEYDIV1 TYPE I,
           TOTCOKEYDIV2 TYPE I,
           TOTAL        TYPE I.
    DATA: C TYPE I VALUE 4.
    SELECT OPTION FOR DATE SELECTION IN THE SELECTION SCREEN.************
    SELECTION-SCREEN BEGIN OF BLOCK DATE WITH FRAME TITLE TEXT-001.
    PARAMETERS: S_BILDT LIKE /BIC/AUCSALES00-BILL_DATE OBLIGATORY .
    SELECTION-SCREEN END OF BLOCK DATE.
    *INITIALIZATION******************************************************
    FORMAT INTENSIFIED ON COLOR = C.
    write:/  'PROCESSING DATE:',    20 S_BILDT,
         128 'TIME:',              135 SY-UZEIT.
    WRITE:/  'USER NAME      :',    20 SY-UNAME,
         142 ' '.
    WRITE SY-ULINE.
    WRITE: / 'D.C'                , 12 SY-VLINE,
             'NAME OF D.C'        , 39 SY-VLINE,
             'NUMBER OF CONSUMER' , 60 SY-VLINE,
             'REMARKS'            , 105 SY-VLINE.
    WRITE:/ SY-ULINE.
    FORMAT INTENSIFIED OFF.
    *AT SELECTION-SCREEN**************************************************
    SELECT BILL_DATE
          UP TO 1 ROWS
          INTO (/BIC/AUCSALES00-BILL_DATE)
          FROM /BIC/AUCSALES00
          WHERE BILL_DATE = S_BILDT.
    ENDSELECT.
    IF SY-SUBRC <> 0.
      WRITE:/ ' NO DATA FOUND ON THIS DATE'.
      EXIT.
    ENDIF.
    START OF  SELECTION***************************************************
    SELECT /BIC/COKEY TXTSH from /BIC/TCOKEY into table itab.
    SORT ITAB.
    IF NOT ITAB[] IS INITIAL.
      SELECT  BILL_DATE
              /BIC/COKEY
              BPARTNER
              FROM /BIC/AUCSALES00
              INTO CORRESPONDING FIELDS OF TABLE ITAB2
              FOR ALL ENTRIES IN ITAB
              WHERE /BIC/COKEY = ITAB-/BIC/COKEY
              AND BILL_DATE = S_BILDT.
      SORT ITAB BY /BIC/COKEY.
    ENDIF.
    *CHECK WHETHER THE DATA RETRIVE SUCESSFULLY OR NOT********************
    IF SY-SUBRC NE 0.
      WRITE:/ 'THIS DATE DOESNOT CONTAIN ANY DATA'.
    ENDIF.
    *DATA DISPLAY*********************************************************
    *****GET THE FIRST VALUE AND DELETE THE ADJECENT AND DUPLICATE FROM ITAB2.
    READ TABLE ITAB INDEX 1.
       IF SY-SUBRC = 0.
          COKEYNO = ITAB-/BIC/COKEY+4(2).
       ENDIF.
    READ TABLE ITAB2 WITH KEY /BIC/COKEY = itab-/BIC/COKEY.
       IF SY-SUBRC = 0.
          SORT ITAB2 BY /BIC/COKEY.
          DELETE ADJACENT DUPLICATES FROM ITAB2 COMPARING /BIC/COKEY.
       ENDIF.
    LOOP AT ITAB.
      READ TABLE ITAB2 WITH KEY /BIC/COKEY = itab-/BIC/COKEY.
    *IF THE D.C ARE NOT SAME THEN DISPLAY THE SUM***************************
      COKEYCH = ITAB-/BIC/COKEY+4(2).
      IF (  COKEYCH <> COKEYNO ).
          FORMAT COLOR = 4.
            WRITE:/ '  TOTAL NUMBER OF  D.C  IN   PERTICULAR RAO  ','(', COKEYNO,')','=',TOTCOKEYDIV.
            WRITE:/ '  TOTAL NUMBER OF CONSUMER PROCESSED IN RAO  ','(', COKEYNO,')','=',TOTAL.
            WRITE:/ '  TOTAL NUMBER OF D.C   PROCESSED    IN RAO  ','(', COKEYNO,')','=',PROCOKEY.
            WRITE:/ '  TOTAL NUMBER OF D.C  NOT PROCESSED IN RAO  ','(', COKEYNO,')','=',NOTPROCOKEY.
            WRITE:/ '', 128 'PAGE NUMBER:',   139 SY-PAGNO.
            SKIP 4.
    *******INITIALLIZE ALL THE VARIABLE*************************************
            FORMAT COLOR OFF .
            TOTCOKEYDIV = 0.
            TOTCOKEYDIV1 = 0.
            TOTCOKEYDIV2 = 0.
            TOTAL = 0.
            PROCOKEY = 0.
            NOTPROCOKEY = 0.
            WRITE:/ SY-ULINE.
            NEW-PAGE WITH-TITLE.
            NEW-PAGE WITH-HEADING.
    ENDIF.
    **END OF THE TOTAL SUM OF ALL THE D.C.**********************************
    *IF THE D.C ARE SAME THEN DISPLAY THE D.C.******************************
      IF ITAB2-/BIC/COKEY = ITAB-/BIC/COKEY.
             SELECT COUNT( DISTINCT BPARTNER )
                   INTO COUNT
                   FROM /BIC/AUCSALES00
                   WHERE /BIC/COKEY = ITAB2-/BIC/COKEY and
                   BILL_DATE = S_BILDT.
            IF SY-SUBRC = 0.
                 PROCOKEY = PROCOKEY + 1.
            ENDIF.
              TOTCOKEYDIV1 = TOTCOKEYDIV1 + 1.
              TOTAL = TOTAL + COUNT.
              COKEY = ITAB2-/BIC/COKEY.
              FORMAT INTENSIFIED ON COLOR = 2.
              WRITE:/ ITAB2-/BIC/COKEY,             SY-VLINE,
                   15 ITAB-TXTSH+1(19),         39  SY-VLINE,
                   40 COUNT,                    60  SY-VLINE,
                      ' ',                     105  SY-VLINE.
             WRITE :/ SY-ULINE.
             FORMAT INTENSIFIED ON COLOR = 2.
      ELSE.
           FORMAT INTENSIFIED ON COLOR = 2.
           COKEY = ITAB-/BIC/COKEY.
           WRITE:/ ITAB-/BIC/COKEY,               SY-VLINE,
                15 ITAB-TXTSH+1(19),           39 SY-VLINE,
                40  ' ',                       60 SY-VLINE,
                'Data Not extracted to BW',   105 SY-VLINE.
           FORMAT INTENSIFIED ON COLOR = 2.
           WRITE:/ SY-ULINE.
           TOTCOKEYDIV2 = TOTCOKEYDIV2 + 1.
      ENDIF.
          TOTCOKEYDIV = TOTCOKEYDIV1 + TOTCOKEYDIV2.
          NOTPROCOKEY = TOTCOKEYDIV - PROCOKEY.
          COKEYNO = ITAB-/BIC/COKEY+4(2).
          CLEAR: ITAB, ITAB2.
    ENDLOOP.
    ===========================================================
    please at this and let me know..
    thanks in advance,,,

    HI ALL ,
         I GOT THE ANSWER...
    THANKS TO SDNNNN AND ALL THE FRIENDS LOOKING AT THIS...
    THANKS ONCE AGAIN....

  • Driver Program Name for Shipment output form

    Hi guru's
    can anyone tell me wats the name of the driver program and the form name for a shipment output form?(for ABAP development purpose)
    Thanks in advance,
    Regards/Aryan

    Hi Aryan - What Shipment output are you referring to? LD01-Delivery Note? There are some more, which are associated with Transportation application as well.
    LD01 - V2 - Program SDADDN02. Form SD_DELNOTE_SUPPL
    LD00 - V2 - Program YMRVADDN01/RVADDN01 Form ZMLWMRVDELNOTE(customized our side)/RVDELNOTE
    Pl00 - Packing List -V2 - Program SDPACKLI, Form SD_PACKING_LIST
    CMR1 - Bill of lading - V7 - Progarm RVADTR01 Form SD_SHIPMENT_CMR.
    Best way, use transaction V/34 to view all V2 - Shipping output types and the associated program and form. V/82 to view all V7-Transportation output types and the associated program/forms.
    Thanks
    Nikhil

  • BBP_PO_SEND_XML - Not triggered during the creation of PO

    Hi All,
    We are using SRM 7.0, configuration for sending PO in the form of XML is done as suggested with the method BBP_PO_SEND_XML. The problem is, this BADI is not triggered when we save (even after order) the PO with XML option and the status is displayed as Incorrectly processed. But, when I select the Incorrectly processed output type and click on Repeat Output, the BADI is called and is processed succesfully.
    Any reasons, why the BADI is not triggered during the creation or change of PO and is getting triggered only when we select the option Repeat Output? Please help me in correcting this issue.
    Thanks,
    Phani.

    Logic inside META_PO_SEND was written in user name check. Whereas the method BBP_PO_SEND_XML is triggered with batch user. Due to this reason, custom logic is not triggered.

  • Not triggering PBO in OOABAP ALV grid

    Hi all.
    I want to create drop down for Document type BSART.for that iam using OOABAP but my program is not triggering PBO module itself.I have seen so many examples but iam unable to fetch data.what are the changes i have to do here.i have reduced some code here.i have written my final internal table select query before this stataement.
    loop at it_git_final into wa_git_final.
    APPEND wa_git_final TO it_git_final.
    ENDLOOP.
    *Call to ALV
      CALL SCREEN 600.
    MODULE status_0600 OUTPUT.
    SET PF-STATUS 'DISP'.
    SET TITLEBAR 'ALVF4'.
    ENDMODULE.                 " STATUS_0600  OUTPUT
    calling the PBO module ALV_GRID.
    MODULE pbo OUTPUT.
    *Creating objects of the container
      *  SET field for ALV
      if g_custom_container is initial.
      perform create_and_init_alv changing it_git_final
                                             gt_fieldcat.
    PERFORM alv_build_fieldcat.
      endif.
      * Set ALV attributes FOR LAYOUT
    PERFORM alv_report_layout.
       CHECK NOT c_alvgd IS INITIAL.
    Call ALV GRID
       CALL METHOD c_alvgd->set_table_for_first_display
        EXPORTING
          is_layout                     = it_layout
          i_save                        = 'A'
        CHANGING
          it_outtab                     = it_git_final
          it_fieldcatalog               = it_fcat
        EXCEPTIONS
          invalid_parameter_combination = 1
          program_error                 = 2
          too_many_lines                = 3
          OTHERS                        = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
       ENDMODULE.                 " PBO  OUTPUT
          MODULE PAI INPUT                                              *
    MODULE pai INPUT.
       ENDMODULE.                    "pai INPUT
    *subroutine to build fieldcat
    FORM alv_build_fieldcat changing pt_fieldcat type lvc_t_fcat..
       DATA lx_fcat TYPE lvc_s_fcat.
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
        EXPORTING
          i_structure_name = 'IT_GIT_FINAL'
        CHANGING
          ct_fieldcat      = gt_fieldcat.
    * To assign dropdown in the fieldcataogue
    LOOP AT gt_fieldcat INTO lx_fcat.
       DATA : lx_fcat TYPE lvc_s_fcat.
      lx_fcat-row_pos   = '1'.
      lx_fcat-col_pos   = '1'.
    lx_fcat-fieldname = 'CHECK1'.
    lx_fcat-ref_field = 'CHECK1'
      lx_fcat-EDIT = 'X'.
      lx_fcat-coltext = 'Check Box'.
    lx_fcat-seltext = text-c01.
    APPEND lx_fcat TO Gt_fieldcat.
    CLEAR lx_fcat.
    lx_fcat-row_pos   = '1'.
      lx_fcat-col_pos   = '15'.
      lx_fcat-fieldname = 'BSART'.
      lx_fcat-ref_field = 'BSART'.
      lx_fcat-ref_table = 'T161P'.
      lx_fcat-coltext = 'Document Type'.
    lx_fcat-drdn_hndl = '1'.
      lx_fcat-outputlen = 15.
      lx_fcat-edit = 'X'.
      append  lx_fcat to gt_fieldcat.
      CLEAR lx_fcat.
       DATA: lt_dropdown TYPE lvc_t_drop,
            ls_dropdown TYPE lvc_s_drop.
      ls_dropdown-handle = '1'.
      ls_dropdown-value = '01 ZFC Vesselchart Contract'.
      APPEND ls_dropdown TO lt_dropdown.
      ls_dropdown-handle = '1'.
      ls_dropdown-value = '02 ZQTY QTY Contract(SESA)'.
      APPEND ls_dropdown TO lt_dropdown.   ls_dropdown-handle = '1'.
    *method to display the dropdown in ALV
      CALL METHOD g_grid->set_drop_down_table
        EXPORTING
          it_drop_down = lt_dropdown.
    LOOP AT it_fcat INTO lx_fcat.
        CASE lx_fcat-fieldname.
    To assign dropdown in the fieldcataogue
          WHEN 'BSART'.
            lx_fcat-drdn_hndl = '1'.
            lx_fcat-outputlen = 15.
            MODIFY it_fcat FROM lx_fcat.
        ENDCASE.
      ENDLOOP.
          endform.
    form ALV_OUTPUT .
    *Create object for container
    CREATE OBJECT g_custom_container
            EXPORTING container_name = 'CCONT'.
    *create object for grid
    CREATE OBJECT g_grid
            EXPORTING i_parent = g_custom_container.
      CALL METHOD g_grid->set_table_for_first_display
        EXPORTING
          is_layout       = it_layout
        CHANGING
          it_fieldcatalog = gt_fieldcat
          it_outtab       = it_git_final.
    endform.                    " ALV_OUTPUT
    form ALV_REPORT_LAYOUT .
      it_layout-cwidth_opt = 'X'.
      it_layout-col_opt = 'X'.
      it_layout-zebra = 'X'.
    endform.                    " ALV_REPORT_LAYOUT
    form CREATE_AND_INIT_ALV  changing p_it_git_final
                                       p_gt_fieldcat.
      create object g_custom_container
             exporting container_name = g_container.
      create object g_grid
             exporting i_parent = g_custom_container.
    endform.

    Hello Raj
      Actually all the code is described in PBO module, so you need to invoke this module in PBO when defining the screen.
    For example, access transaction SE51, start in Change mode and inser line
        MODULE PBO.
    Then activate the object
    Best regards
    Carlos Machad o

  • Default shipment output type for customer

    HI ALL,
    I have 2 shipment output type. is it possible to assign one of them to the specific customer.
    Thank you & best regards,
    Saiful arif

    Dear Arif ,
    This is possible through standard SAP . Please note as given below :
    1. In customer master  sales  tab --> Additional data , where  u have some blank fields , select one of the field for this purpose  and mark this field only for special customer indictor .
    2. Then Add this filed in one of the access of the out put .
    3. Maintain out put records for this  access .
    4. Create sales order  for this special customer  , the out put is populated in the sales order.
    Sorry , i am not able to give example of the field in customer master which can be used as i am not have access presently .
    Try this out ans let me know if you have any problems
    Regards
    Veera

Maybe you are looking for

  • Liquid data type updates

    Hi everyone, With the next release (to go out on Monday) we're adding proper date format support in liquid for all modules. Besides all the improvements and additions made available with this release, one important note, which requires you to do some

  • Problem in invoking the web services

    Hi all, I am new to java web services i develoed a simple webservices here i am posting the code i generated every thing using wstools of Jboss4.0.5AS package com.javasrc.webservices.age; import java.rmi.Remote; import java.rmi.RemoteException; publi

  • Please help! How can I validate Radio Buttons and List Menu with PHP.

    Hello everyone, I have been learning PHP step by step and making little projects. The point is I find it easy to learn by doing "practical projects." I have been reading the David Powers's Book on PHP Solutions and it's really great, however there is

  • Reached my broadband limit in a day???!!

    My broadband was switched to Option 1 effective today.  I have just recieved an email saying that I am near my limit and have used 7GB of the 10GB. This is impossible.  I doubt I have used more than 100mb.  I cannot be doing with this. I have been go

  • Scan to email failure

    When I try to scan to email, the feed accepts the first 2 pages and then displays "scan canceled".  It worked fine when I first got the printer. Thank you